
single_blank_line_at_eof
¶A PHP file without end tag must always end with a single empty line feed.
--- Original
+++ New
<?php
-$a = 1;
\ No newline at end of file
+$a = 1;
--- Original
+++ New
<?php
$a = 1;
-
The rule is part of the following rule sets:
Using the @PER rule set will enable the single_blank_line_at_eof
rule.
Using the @PSR2 rule set will enable the single_blank_line_at_eof
rule.
Using the @PSR12 rule set will enable the single_blank_line_at_eof
rule.
Using the @PhpCsFixer rule set will enable the single_blank_line_at_eof
rule.
Using the @Symfony rule set will enable the single_blank_line_at_eof
rule.