Skip to content

Commit

Permalink
Use Slevomat.ControlStructures.RequireYodaComparison instead of YodaC…
Browse files Browse the repository at this point in the history
…onditions
  • Loading branch information
mmoll committed Jul 10, 2021
1 parent 3dec7d9 commit a0e64dd
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 169 deletions.
97 changes: 0 additions & 97 deletions Symfony/Sniffs/ControlStructure/YodaConditionsSniff.php

This file was deleted.

9 changes: 0 additions & 9 deletions Symfony/Tests/ControlStructure/YodaConditionsUnitTest.inc

This file was deleted.

63 changes: 0 additions & 63 deletions Symfony/Tests/ControlStructure/YodaConditionsUnitTest.php

This file was deleted.

1 change: 1 addition & 0 deletions Symfony/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,5 @@
</rule>

<rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators" />
<rule ref="SlevomatCodingStandard.ControlStructures.RequireYodaComparison" />
</ruleset>

0 comments on commit a0e64dd

Please sign in to comment.