Fork me on GitHub
a Sensio Labs Product

Jump & Run (v3.28.0) edition

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:

The logo is © 2010-2022 Sensio Labs