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 6060 <rule ref =" Squiz.WhiteSpace.SuperfluousWhitespace" />
6161 <rule ref =" Generic.Arrays.DisallowLongArraySyntax" />
6262 <rule ref =" Generic.Commenting.Todo" />
63+ <rule ref =" Generic.ControlStructures.DisallowYodaConditions" />
6364 <rule ref =" Generic.ControlStructures.InlineControlStructure" />
6465 <rule ref =" Generic.Formatting.DisallowMultipleStatements" />
6566 <rule ref =" Generic.Formatting.SpaceAfterCast" />
Original file line number Diff line number Diff line change @@ -2529,7 +2529,7 @@ public function findExtendedClassName($stackPtr)
25292529
25302530 $ classOpenerIndex = $ this ->tokens [$ stackPtr ]['scope_opener ' ];
25312531 $ extendsIndex = $ this ->findNext (T_EXTENDS , $ stackPtr , $ classOpenerIndex );
2532- if (false === $ extendsIndex ) {
2532+ if ($ extendsIndex === false ) {
25332533 return false ;
25342534 }
25352535
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ public function __construct(Config $config)
143143 }
144144
145145 $ reportClass = new $ reportClassName ();
146- if (false === ($ reportClass instanceof Report)) {
146+ if (($ reportClass instanceof Report) === false ) {
147147 throw new RuntimeException ('Class " ' .$ reportClassName .'" must implement the "PHP_CodeSniffer\Report" interface. ' );
148148 }
149149
You can’t perform that action at this time.
0 commit comments