Skip to content

Commit 59bd389

Browse files
committed
[Fix] Correctly indent chained method calls in PSR2 style
GitHub-Issue: #370 Signed-off-by: Eric James Michael Ritz <[email protected]>
1 parent 151ae71 commit 59bd389

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

php-mode.el

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
(defconst php-mode-version-number "1.18.3"
1313
"PHP Mode version number.")
1414

15-
(defconst php-mode-modified "2017-06-22"
15+
(defconst php-mode-modified "2017-09-02"
1616
"PHP Mode build date.")
1717

1818
;;; License
@@ -700,9 +700,9 @@ working with Wordpress."
700700
(default-value 'show-trailing-whitespace)))
701701

702702
(c-add-style
703-
"symfony2"
704-
'("php"
705-
(c-offsets-alist . ((statement-cont . php-lineup-hanging-semicolon)))))
703+
"symfony2"
704+
'("php"
705+
(c-offsets-alist . ((statement-cont . php-lineup-hanging-semicolon)))))
706706

707707
(defun php-enable-symfony2-coding-style ()
708708
"Makes php-mode use coding styles that are preferable for
@@ -719,9 +719,10 @@ working with Symfony2."
719719
(default-value 'show-trailing-whitespace)))
720720

721721
(c-add-style
722-
"psr2"
723-
'("php"
724-
(c-offsets-alist . ((statement-cont . +)))))
722+
"psr2"
723+
'("php"
724+
(c-offsets-alist . ((statement-cont . +)
725+
(arglist-cont . +)))))
725726

726727
(defun php-enable-psr2-coding-style ()
727728
"Makes php-mode comply to the PSR-2 coding style"

0 commit comments

Comments
 (0)