Fork me on GitHub
a Sensio Labs Product

I ate three cookies πŸͺ (v3.40.2) edition

Rule no_blank_lines_before_namespaceΒΆ

There should be no blank lines before a namespace declaration.

WarningΒΆ

This rule is deprecated and will be removed in the next major versionΒΆ

You should use blank_lines_before_namespace instead.

ExamplesΒΆ

Example #1ΒΆ

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

Source classΒΆ

PhpCsFixer\Fixer\NamespaceNotation\NoBlankLinesBeforeNamespaceFixer