Skip to content

Commit 2b13703

Browse files
committed
Slevomat Coding Standard 5.x
1 parent a070b18 commit 2b13703

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Consistence/ruleset.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
<rule ref="PSR2.Namespaces.UseDeclaration"/>
7979
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
8080
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility"/>
81+
<rule ref="SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces"/>
8182
<rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements"/>
8283
<rule ref="SlevomatCodingStandard.Commenting.EmptyComment"/>
8384
<rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration"/>
@@ -94,6 +95,7 @@
9495
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses">
9596
<properties>
9697
<property name="caseSensitive" value="true"/>
98+
<property name="psr12Compatible" value="false"/>
9799
</properties>
98100
</rule>
99101
<rule ref="SlevomatCodingStandard.Namespaces.DisallowGroupUse"/>
@@ -148,7 +150,6 @@
148150
</rule>
149151
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"/>
150152
<rule ref="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint"/>
151-
<rule ref="SlevomatCodingStandard.Types.EmptyLinesAroundTypeBraces"/>
152153
<rule ref="Squiz.Arrays.ArrayBracketSpacing">
153154
<exclude name="Squiz.Arrays.ArrayBracketSpacing.SpaceBeforeBracket"/><!-- does not handle nested array access across multiple lines -->
154155
</rule>

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"require": {
1414
"php": "~7.1",
1515
"squizlabs/php_codesniffer": "~3.4.0",
16-
"slevomat/coding-standard": "~4.7"
16+
"slevomat/coding-standard": "~5.0"
1717
},
1818
"require-dev": {
1919
"jakub-onderka/php-console-highlighter": "0.4",

0 commit comments

Comments
 (0)