Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1017 Bytes

File metadata and controls

36 lines (25 loc) · 1017 Bytes

Rule method_chaining_indentation

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

Examples

Example #1

--- Original
+++ New
 <?php
 $user->setEmail('voff.web@gmail.com')
-         ->setPassword('233434');
+    ->setPassword('233434');

Rule sets

The rule is part of the following rule set:

References

The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.