Fork me on GitHub
a Sensio Labs Product

I ate three cookies πŸͺ (v3.40.2) 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:

Source classΒΆ

PhpCsFixer\Fixer\Import\SingleLineAfterImportsFixer