Fork me on GitHub
a Sensio Labs Product

BoY42 (v3.15.1) edition

Rule method_chaining_indentation

Method chaining MUST be properly indented. Method chaining with different levels of indentation is not supported.


Example #1

--- Original
+++ New
-         ->setPassword('233434');
+    ->setPassword('233434');

Rule sets

The rule is part of the following rule set:


Using the @PhpCsFixer rule set will enable the method_chaining_indentation rule.

The logo is © 2010-2022 Sensio Labs