Skip to content

Commit a0e64dd

Browse files
committed
Use Slevomat.ControlStructures.RequireYodaComparison instead of YodaConditions
1 parent 3dec7d9 commit a0e64dd

File tree

4 files changed

+1
-169
lines changed

4 files changed

+1
-169
lines changed

Symfony/Sniffs/ControlStructure/YodaConditionsSniff.php

Lines changed: 0 additions & 97 deletions
This file was deleted.

Symfony/Tests/ControlStructure/YodaConditionsUnitTest.inc

Lines changed: 0 additions & 9 deletions
This file was deleted.

Symfony/Tests/ControlStructure/YodaConditionsUnitTest.php

Lines changed: 0 additions & 63 deletions
This file was deleted.

Symfony/ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,5 @@
114114
</rule>
115115

116116
<rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators" />
117+
<rule ref="SlevomatCodingStandard.ControlStructures.RequireYodaComparison" />
117118
</ruleset>

0 commit comments

Comments
 (0)