line_ending.rst 700 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. ====================
  2. Rule ``line_ending``
  3. ====================
  4. All PHP files must use same line ending.
  5. Examples
  6. --------
  7. Example #1
  8. ~~~~~~~~~~
  9. .. code-block:: diff
  10. --- Original
  11. +++ New
  12. <?php $b = " $a ^M
  13. - 123"; $a = <<<TEST^M
  14. -AAAAA ^M
  15. - |^M
  16. + 123"; $a = <<<TEST
  17. +AAAAA
  18. + |
  19. TEST;
  20. Rule sets
  21. ---------
  22. The rule is part of the following rule sets:
  23. - `@PER <./../../ruleSets/PER.rst>`_
  24. - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_
  25. - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_
  26. - `@PSR2 <./../../ruleSets/PSR2.rst>`_
  27. - `@PSR12 <./../../ruleSets/PSR12.rst>`_
  28. - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_
  29. - `@Symfony <./../../ruleSets/Symfony.rst>`_