@@ -210,7 +210,7 @@ enabled."
210210 :type 'hook )
211211
212212(defcustom php-mode-force-pear nil
213- " Normally PEAR coding rules are enforced only when the filename contains \" PEAR. \"
213+ " Normally PEAR coding rules are enforced only when the filename contains \" PEAR\" .
214214Turning this on will force PEAR rules on all PHP files."
215215 :group 'php-mode
216216 :tag " PHP Mode Force Pear"
@@ -226,7 +226,7 @@ have any tags inside a PHP string, it will be fooled."
226226 :type '(choice (const :tag " Warn" t ) (const " Don't warn" nil )))
227227
228228(defcustom php-mode-coding-style 'pear
229- " Select default coding style to use with php-mode.
229+ " Select default coding style to use with ` php-mode' .
230230This variable can take one of the following symbol values:
231231
232232`Default' - use a reasonable default style for PHP.
@@ -248,7 +248,7 @@ This variable can take one of the following symbol values:
248248; ; Since this function has a bad influence on the environment of many users,
249249; ; temporarily disable it
250250(defcustom php-mode-enable-project-coding-style nil
251- " When set to true override php-mode-coding-style by php-project-coding-style.
251+ " When set to true override ` php-mode-coding-style' by ` php-project-coding-style' .
252252
253253If you want to suppress styles from being overwritten by directory / file
254254local variables, set NIL."
@@ -591,7 +591,8 @@ might be to handle switch and goto labels differently."
591591 (group " {" ))))
592592
593593(defun php-c-lineup-arglist (langelem )
594- " Line up the current argument line under the first argument using `c-lineup-arglist' LANGELEM."
594+ " Line up the current argument line under the first argument using
595+ `c-lineup-arglist' LANGELEM."
595596 (let (in-return-typed-closure)
596597 (when (and (consp langelem)
597598 (eq 'arglist-cont-nonempty (car langelem)))
@@ -606,7 +607,7 @@ might be to handle switch and goto labels differently."
606607
607608(defun php-lineup-cascaded-calls (langelem )
608609 " Line up chained methods using `c-lineup-cascaded-calls' ,
609- but only if the setting is enabled"
610+ but only if the setting is enabled. "
610611 (if php-mode-lineup-cascaded-calls
611612 (c-lineup-cascaded-calls langelem)
612613 (save-excursion
@@ -669,7 +670,7 @@ a backward search limit."
669670 (tab-width . 4 )))
670671
671672(defun php-enable-pear-coding-style ()
672- " Set up php-mode to use the coding styles preferred for PEAR code and modules."
673+ " Set up ` php-mode' to use the coding styles preferred for PEAR code and modules."
673674 (interactive )
674675 (php-set-style " pear" ))
675676
@@ -684,7 +685,7 @@ a backward search limit."
684685 (php-style-delete-trailing-whitespace . t )))
685686
686687(defun php-enable-drupal-coding-style ()
687- " Make php-mode use coding styles that are preferable for working with Drupal."
688+ " Make ` php-mode' use coding styles that are preferable for working with Drupal."
688689 (interactive )
689690 (php-set-style " drupal" ))
690691
@@ -698,7 +699,8 @@ a backward search limit."
698699 (fill-column . 78 )))
699700
700701(defun php-enable-wordpress-coding-style ()
701- " Make php-mode use coding styles that are preferable for working with Wordpress."
702+ " Make `php-mode' use coding styles that are preferable for working with
703+ Wordpress."
702704 (interactive )
703705 (php-set-style " wordpress" ))
704706
@@ -711,7 +713,7 @@ a backward search limit."
711713 (fill-column . 78 )))
712714
713715(defun php-enable-symfony2-coding-style ()
714- " Make php-mode use coding styles that are preferable for working with Symfony2."
716+ " Make ` php-mode' use coding styles that are preferable for working with Symfony2."
715717 (interactive )
716718 (php-set-style " symfony2" ))
717719
@@ -726,7 +728,7 @@ a backward search limit."
726728 (php-style-delete-trailing-whitespace . t )))
727729
728730(defun php-enable-psr2-coding-style ()
729- " Make php-mode comply to the PSR-2 coding style."
731+ " Make ` php-mode' comply to the PSR-2 coding style."
730732 (interactive )
731733 (php-set-style " psr2" ))
732734
@@ -942,7 +944,8 @@ this ^ lineup"
942944 " Regular expression for the start of a PHP heredoc." ))
943945
944946(defun php-heredoc-end-re (heredoc-start )
945- " Build a regular expression for the end of a heredoc started by the string HEREDOC-START."
947+ " Build a regular expression for the end of a heredoc started by the string
948+ HEREDOC-START."
946949 ; ; Extract just the identifier without <<< and quotes.
947950 (string-match " \\ _<.+?\\ _>" heredoc-start)
948951 (concat " ^\\ s-*\\ (" (match-string 0 heredoc-start) " \\ )\\ W" ))
@@ -983,7 +986,7 @@ this ^ lineup"
983986 (put-text-property start (1+ start) 'syntax-table (string-to-syntax " ." ))))
984987
985988(defvar-local php-mode--propertize-extend-region-current nil
986- " Prevent undesirable recursion in PHP-SYNTAX-PROPERTIZE-EXTEND-REGION" )
989+ " Prevent undesirable recursion in PHP-SYNTAX-PROPERTIZE-EXTEND-REGION. " )
987990
988991(defun php-syntax-propertize-extend-region (start end )
989992 " Extend the propertize region if START or END falls inside a PHP heredoc."
@@ -1013,7 +1016,7 @@ this ^ lineup"
10131016 (setq php-mode--propertize-extend-region-current
10141017 (delete pair php-mode--propertize-extend-region-current))))))
10151018
1016- (easy-menu-define php-mode-menu php-mode-map " PHP Mode Commands"
1019+ (easy-menu-define php-mode-menu php-mode-map " PHP Mode Commands. "
10171020 (cons " PHP" (c-lang-const c-mode-menu php)))
10181021
10191022(defun php-mode-get-style-alist ()
@@ -1076,7 +1079,7 @@ After setting the stylevars run hooks according to STYLENAME
10761079 ((equal stylename " psr2" ) (run-hooks 'php-mode-psr2-hook ))))
10771080
10781081(defun php-mode--disable-delay-set-style (&rest _args )
1079- " Disable php-mode-set-style-delay on after hook. ` ARGS' be ignore."
1082+ " Disable ` php-mode-set-style-delay' on after hook. ARGS be ignore."
10801083 (setq php-mode--delayed-set-style nil )
10811084 (advice-remove #'php-mode--disable-delay-set-style #'c-set-style ))
10821085
0 commit comments