
single_line_after_imports
¶Each namespace use MUST go on its own line and there MUST be one blank line after the use statements block.
--- Original
+++ New
<?php
namespace Foo;
use Bar;
use Baz;
+
final class Example
{
}
--- Original
+++ New
<?php
namespace Foo;
use Bar;
use Baz;
-
final class Example
{
}
The rule is part of the following rule sets:
Using the @PER rule set will enable the single_line_after_imports
rule.
Using the @PSR2 rule set will enable the single_line_after_imports
rule.
Using the @PSR12 rule set will enable the single_line_after_imports
rule.
Using the @PhpCsFixer rule set will enable the single_line_after_imports
rule.
Using the @Symfony rule set will enable the single_line_after_imports
rule.