method_chaining_indentation.rst 560 B

1234567891011121314151617181920212223242526272829
  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. <?php
  14. $user->setEmail('voff.web@gmail.com')
  15. - ->setPassword('233434');
  16. + ->setPassword('233434');
  17. Rule sets
  18. ---------
  19. The rule is part of the following rule set:
  20. - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_