File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 60
60
<rule ref =" Squiz.WhiteSpace.SuperfluousWhitespace" />
61
61
<rule ref =" Generic.Arrays.DisallowLongArraySyntax" />
62
62
<rule ref =" Generic.Commenting.Todo" />
63
+ <rule ref =" Generic.ControlStructures.DisallowYodaConditions" />
63
64
<rule ref =" Generic.ControlStructures.InlineControlStructure" />
64
65
<rule ref =" Generic.Formatting.DisallowMultipleStatements" />
65
66
<rule ref =" Generic.Formatting.SpaceAfterCast" />
Original file line number Diff line number Diff line change @@ -2529,7 +2529,7 @@ public function findExtendedClassName($stackPtr)
2529
2529
2530
2530
$ classOpenerIndex = $ this ->tokens [$ stackPtr ]['scope_opener ' ];
2531
2531
$ extendsIndex = $ this ->findNext (T_EXTENDS , $ stackPtr , $ classOpenerIndex );
2532
- if (false === $ extendsIndex ) {
2532
+ if ($ extendsIndex === false ) {
2533
2533
return false ;
2534
2534
}
2535
2535
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ public function __construct(Config $config)
143
143
}
144
144
145
145
$ reportClass = new $ reportClassName ();
146
- if (false === ($ reportClass instanceof Report)) {
146
+ if (($ reportClass instanceof Report) === false ) {
147
147
throw new RuntimeException ('Class " ' .$ reportClassName .'" must implement the "PHP_CodeSniffer\Report" interface. ' );
148
148
}
149
149
You can’t perform that action at this time.
0 commit comments