Fork me on GitHub
a Sensio Labs Product

I ate three cookies πŸͺ (v3.40.2) edition

Rule line_endingΒΆ

All PHP files must use same line ending.

ExamplesΒΆ

Example #1ΒΆ

--- Original
+++ New
 <?php $b = " $a ^M
- 123"; $a = <<<TEST^M
-AAAAA ^M
- |^M
+ 123"; $a = <<<TEST
+AAAAA
+ |
 TEST;

Rule setsΒΆ

The rule is part of the following rule sets:

Source classΒΆ

PhpCsFixer\Fixer\Whitespace\LineEndingFixer