We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32b2002 commit 25e0a9eCopy full SHA for 25e0a9e
php-mode.el
@@ -636,8 +636,11 @@ might be to handle switch and goto labels differently."
636
(defun php-lineup-cascaded-calls (langelem)
637
"Line up chained methods using `c-lineup-cascaded-calls',
638
but only if the setting is enabled"
639
- (when php-mode-lineup-cascaded-calls
640
- (c-lineup-cascaded-calls langelem)))
+ (if php-mode-lineup-cascaded-calls
+ (c-lineup-cascaded-calls langelem)
641
+ (save-excursion
642
+ (beginning-of-line)
643
+ (if (looking-at-p "\\s-*->") '+ nil))))
644
645
(c-add-style
646
"php"
0 commit comments