Skip to content

Commit fdc4698

Browse files
committed
Inline control structures should be errors
1 parent 167e1ef commit fdc4698

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

phpcs.xml.dist

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@
6868
<rule ref="PSR2.Files.EndFileNewline"/>
6969
<rule ref="Zend.Files.ClosingTag"/>
7070

71+
<!-- PEAR uses warnings for inline control structures, so switch back to errors -->
72+
<rule ref="Generic.ControlStructures.InlineControlStructure">
73+
<properties>
74+
<property name="error" value="true"/>
75+
</properties>
76+
</rule>
77+
7178
<!-- We use custom indent rules for arrays -->
7279
<rule ref="Generic.Arrays.ArrayIndent"/>
7380
<rule ref="Squiz.Arrays.ArrayDeclaration.KeyNotAligned">

0 commit comments

Comments
 (0)