Fork me on GitHub
a Sensio Labs Product

Persian Successor (v3.65.0) edition

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:

References

The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.