We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f63bb8 commit a551255Copy full SHA for a551255
php-mode.el
@@ -590,7 +590,15 @@ might be to handle switch and goto labels differently."
590
"Line up chained methods using `c-lineup-cascaded-calls',
591
but only if the setting is enabled"
592
(if php-lineup-cascaded-calls
593
- (c-lineup-cascaded-calls langelem)))
+ (c-lineup-cascaded-calls langelem)
594
+ (when (string= c-indentation-style "psr2")
595
+ (save-excursion
596
+ (back-to-indentation)
597
+ (unless (php-in-string-or-comment-p)
598
+ (when (looking-at-p "-\\s-*>")
599
+ (goto-char (cdr langelem))
600
+ (let ((col (current-indentation)))
601
+ (vector (+ col c-basic-offset)))))))))
602
603
(c-add-style
604
"php"
0 commit comments