Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 716 Bytes

no_blank_lines_before_namespace.rst

File metadata and controls

33 lines (24 loc) · 716 Bytes

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