Skip to content

Commit 3c5b41f

Browse files
committed
Ruleset: don't force ternary operator
1 parent d9807c6 commit 3c5b41f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@
343343
<exclude name="SlevomatCodingStandard.ControlStructures.RequireMultiLineTernaryOperator.MultiLineTernaryOperatorNotUsed"/>
344344
</rule>
345345
<rule ref="SlevomatCodingStandard.ControlStructures.RequireShortTernaryOperator"/>
346-
<rule ref="SlevomatCodingStandard.ControlStructures.RequireTernaryOperator"/>
347346
<rule ref="SlevomatCodingStandard.ControlStructures.UselessIfConditionWithReturn"/>
348347
<rule ref="SlevomatCodingStandard.ControlStructures.UselessTernaryOperator"/>
349348
<rule ref="SlevomatCodingStandard.Functions.StaticClosure">
@@ -381,6 +380,7 @@
381380
</properties>
382381
</rule>
383382
<rule ref="SlevomatCodingStandard.Variables.UselessVariable"/>
383+
<!-- <rule ref="SlevomatCodingStandard.ControlStructures.RequireTernaryOperator"/> -->
384384
<!--<rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit"/>-->
385385
<!--<rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/>-->
386386
<!--<rule ref="SlevomatCodingStandard.ControlStructures.DisallowShortTernaryOperator"/>-->

0 commit comments

Comments
 (0)