We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
when
if
1 parent cce786c commit 2db01f5Copy full SHA for 2db01f5
php-mode.el
@@ -1192,11 +1192,10 @@ After setting the stylevars run hooks according to STYLENAME
1192
1193
(php-set-style (symbol-name php-mode-coding-style))
1194
1195
- (if (or php-mode-force-pear
1196
- (and (stringp buffer-file-name)
1197
- (string-match "PEAR\\|pear"
1198
- (buffer-file-name))
1199
- (string-match "\\.php$" (buffer-file-name))))
+ (when (or php-mode-force-pear
+ (and (stringp buffer-file-name)
+ (string-match "PEAR\\|pear" buffer-file-name)
+ (string-match "\\.php\\'" buffer-file-name)))
1200
(php-set-style "pear"))
1201
1202
(setq indent-line-function 'php-cautious-indent-line)
0 commit comments