Fork me on GitHub
a Sensio Labs Product

Brazilian Kangaroo (v3.17.0) 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:

@PER

Using the @PER rule set will enable the line_ending rule.

@PSR2

Using the @PSR2 rule set will enable the line_ending rule.

@PSR12

Using the @PSR12 rule set will enable the line_ending rule.

@PhpCsFixer

Using the @PhpCsFixer rule set will enable the line_ending rule.

@Symfony

Using the @Symfony rule set will enable the line_ending rule.

The logo is © 2010-2022 Sensio Labs