Skip to content

Commit 98dc423

Browse files
committed
Do not require single line for long simple conditions
Simple conditions that exceeds the maximum line length. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.com.br>
1 parent 4074d88 commit 98dc423

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎PhpMyAdmin/ruleset.xml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
<rule ref="Generic.WhiteSpace.LanguageConstructSpacing"/>
2424

2525
<!-- Enforces conditions to be on a single line when it fit on the line. -->
26-
<rule ref="SlevomatCodingStandard.ControlStructures.RequireSingleLineCondition"/>
26+
<rule ref="SlevomatCodingStandard.ControlStructures.RequireSingleLineCondition">
27+
<properties>
28+
<property name="alwaysForSimpleConditions" value="false"/>
29+
</properties>
30+
</rule>
2731

2832
<!-- Enforces function call to be on a single line when it fits on the line. -->
2933
<rule ref="SlevomatCodingStandard.Functions.RequireSingleLineCall"/>

0 commit comments

Comments
 (0)