Skip to content

Commit 4e3b9f5

Browse files
committed
Fixed build with older PHPCS
1 parent 40fd4fa commit 4e3b9f5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

build/phpcs-consistence.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
<!-- copy of https://github.com/consistence/coding-standard/blob/master/Consistence/ruleset.xml for local checking usage -->
55

6-
<rule ref="Generic.Arrays.ArrayIndent">
7-
<exclude name="Generic.Arrays.ArrayIndent.CloseBraceNotNewLine"/><!-- multiline items causes evaluation as multiline array https://github.com/squizlabs/PHP_CodeSniffer/issues/1791 -->
8-
</rule>
6+
<!--<rule ref="Generic.Arrays.ArrayIndent">-->
7+
<!--<exclude name="Generic.Arrays.ArrayIndent.CloseBraceNotNewLine"/>&lt;!&ndash; multiline items causes evaluation as multiline array https://github.com/squizlabs/PHP_CodeSniffer/issues/1791 &ndash;&gt;-->
8+
<!--</rule>-->
99
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
1010
<rule ref="Generic.Classes.DuplicateClassName"/>
1111
<rule ref="Generic.CodeAnalysis.EmptyStatement">

build/phpcs.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions"/>
1212
</rule>
1313
<rule ref="./phpcs-consistence.xml">
14-
<exclude name="Generic.Arrays.ArrayIndent"/><!-- Buggy -->
1514
<exclude name="Generic.CodeAnalysis.EmptyStatement.DetectedIF"/><!-- Allow empty if statements - usually with a comment -->
1615
<exclude name="Generic.CodeAnalysis.EmptyStatement.DetectedELSEIF"/><!-- Allow empty elseif statements - usually with a comment -->
1716
<exclude name="Squiz.Commenting.FunctionComment.IncorrectParamVarName"/><!-- Throws error with short type hint for integer and boolean -->

0 commit comments

Comments
 (0)