File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -140,11 +140,10 @@ public function processMemberVar(File $phpcsFile, $stackPtr)
140140 /x ' ;
141141 $ varTagParts = preg_split ($ regularExpression , $ tokens [$ string ]['content ' ]);
142142
143- if (stripos ($ tokens [$ isShortDescriptionPreviousVar ]['content ' ], implode ('' , $ varTagParts )) === false ) {
144- return ;
143+ if (stripos ($ tokens [$ isShortDescriptionPreviousVar ]['content ' ], implode ('' , $ varTagParts )) !== false ) {
144+ $ error = 'Short description duplicates class property name. ' ;
145+ $ phpcsFile ->addWarning ($ error , $ isShortDescriptionPreviousVar , 'AlreadyHaveMeaningfulNameVar ' );
145146 }
146- $ error = 'Short description duplicates class property name. ' ;
147- $ phpcsFile ->addWarning ($ error , $ isShortDescriptionPreviousVar , 'AlreadyHaveMeaningfulNameVar ' );
148147 }
149148
150149 /**
You can’t perform that action at this time.
0 commit comments