Skip to content

Commit e2abc50

Browse files
committed
Simplify multiline array rules
1 parent c6e661f commit e2abc50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

phpcs.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
<exclude name="Squiz.Commenting.FunctionComment.WrongStyle" />
3232
<!-- Results in false positives with comments used to denote include blocks after functions -->
3333
<exclude name="Squiz.WhiteSpace.FunctionSpacing.After" />
34+
<!-- The following three excludes allow for more compact single-item array declarations -->
35+
<exclude name="Squiz.Arrays.ArrayDeclaration.IndexNoNewline" />
36+
<exclude name="Generic.Arrays.ArrayIndent.CloseBraceNotNewLine" />
37+
<exclude name="Squiz.Arrays.ArrayDeclaration.CloseBraceNewLine" />
3438

3539
<!-- *********************************** -->
3640
<!-- Exclude sniffs that cause BC breaks -->

0 commit comments

Comments
 (0)