File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ public function process(File $phpcsFile, $stackPtr)
3131 {
3232 $ tokens = $ phpcsFile ->getTokens ();
3333
34- if ($ tokens [$ stackPtr ]['code ' ] != T_CONST
35- && !($ tokens [$ stackPtr ]['content ' ] == 'define ' && $ tokens [$ stackPtr+ 1 ]['code ' ] == T_OPEN_PARENTHESIS )
34+ if ($ tokens [$ stackPtr ]['code ' ] !== T_CONST
35+ && !($ tokens [$ stackPtr ]['content ' ] === 'define ' && $ tokens [$ stackPtr + 1 ]['code ' ] = == T_OPEN_PARENTHESIS )
3636 ) {
3737 return ;
3838 }
Original file line number Diff line number Diff line change 4444 <severity >10</severity >
4545 <type >error</type >
4646 </rule >
47- <rule ref =" Magento2.Commenting.ConstantsPHPDocFormatting" >
48- <severity >5</severity >
49- <type >warning</type >
50- </rule >
5147 <rule ref =" Magento2.PHP.FinalImplementation" >
5248 <severity >10</severity >
5349 <type >error</type >
500496 </rule >
501497
502498 <!-- Severity 5 warnings: PHPDoc formatting and commenting issues. -->
499+ <rule ref =" Magento2.Commenting.ConstantsPHPDocFormatting" >
500+ <severity >5</severity >
501+ <type >warning</type >
502+ </rule >
503503 <rule ref =" Squiz.Commenting.DocCommentAlignment" >
504504 <severity >5</severity >
505505 <type >warning</type >
You can’t perform that action at this time.
0 commit comments