Skip to content

Latest commit

 

History

History
64 lines (46 loc) · 1.22 KB

single_line_after_imports.rst

File metadata and controls

64 lines (46 loc) · 1.22 KB

Rule 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.

Examples

Example #1

--- Original
+++ New
 <?php
 namespace Foo;

 use Bar;
 use Baz;
+
 final class Example
 {
 }

Example #2

--- Original
+++ New
 <?php
 namespace Foo;

 use Bar;
 use Baz;

-
 final class Example
 {
 }

Rule sets

The rule is part of the following rule sets:

@PER
Using the @PER rule set will enable the single_line_after_imports rule.
@PSR12
Using the @PSR12 rule set will enable the single_line_after_imports rule.
@PSR2
Using the @PSR2 rule set will enable the single_line_after_imports rule.
@PhpCsFixer
Using the @PhpCsFixer rule set will enable the single_line_after_imports rule.
@Symfony
Using the @Symfony rule set will enable the single_line_after_imports rule.