Skip to content

Commit 3305c57

Browse files
committed
Make Namespaces.UseSpacing PSR-12 compatiable
From https://www.php-fig.org/psr/psr-12/: The header of a PHP file may consist of a number of different blocks. If present, each of the blocks below MUST be separated by a single blank line
1 parent 3c1778f commit 3305c57

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

IxDFCodingStandard/ruleset.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,11 @@
343343
</rule>
344344
<rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash"/>
345345
<rule ref="SlevomatCodingStandard.Namespaces.UseFromSameNamespace"/>
346-
<rule ref="SlevomatCodingStandard.Namespaces.UseSpacing"/>
346+
<rule ref="SlevomatCodingStandard.Namespaces.UseSpacing">
347+
<properties>
348+
<property name="linesCountBetweenUseTypes" value="1"/>
349+
</properties>
350+
</rule>
347351
<rule ref="SlevomatCodingStandard.Namespaces.UselessAlias"/>
348352
<rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators"/>
349353
<rule ref="SlevomatCodingStandard.Operators.NegationOperatorSpacing"/>

0 commit comments

Comments
 (0)