no_multiple_statements_per_line.rst 698 B

12345678910111213141516171819202122232425262728293031323334
  1. ========================================
  2. Rule ``no_multiple_statements_per_line``
  3. ========================================
  4. There must not be more than one statement per line.
  5. Examples
  6. --------
  7. Example #1
  8. ~~~~~~~~~~
  9. .. code-block:: diff
  10. --- Original
  11. +++ New
  12. <?php
  13. -foo(); bar();
  14. +foo();
  15. +bar();
  16. Rule sets
  17. ---------
  18. The rule is part of the following rule sets:
  19. - `@PER <./../../ruleSets/PER.rst>`_
  20. - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_
  21. - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_
  22. - `@PSR2 <./../../ruleSets/PSR2.rst>`_
  23. - `@PSR12 <./../../ruleSets/PSR12.rst>`_
  24. - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_
  25. - `@Symfony <./../../ruleSets/Symfony.rst>`_