method_chaining_indentation.rst 630 B

123456789101112131415161718192021222324252627282930
  1. ====================================
  2. Rule ``method_chaining_indentation``
  3. ====================================
  4. Method chaining MUST be properly indented. Method chaining with different levels
  5. of indentation is not supported.
  6. Examples
  7. --------
  8. Example #1
  9. ~~~~~~~~~~
  10. .. code-block:: diff
  11. --- Original
  12. +++ New
  13. @@ -1,3 +1,3 @@
  14. <?php
  15. $user->setEmail('voff.web@gmail.com')
  16. - ->setPassword('233434');
  17. + ->setPassword('233434');
  18. Rule sets
  19. ---------
  20. The rule is part of the following rule set:
  21. @PhpCsFixer
  22. Using the ``@PhpCsFixer`` rule set will enable the ``method_chaining_indentation`` rule.