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)
140
140
/x ' ;
141
141
$ varTagParts = preg_split ($ regularExpression , $ tokens [$ string ]['content ' ]);
142
142
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 ' );
145
146
}
146
- $ error = 'Short description duplicates class property name. ' ;
147
- $ phpcsFile ->addWarning ($ error , $ isShortDescriptionPreviousVar , 'AlreadyHaveMeaningfulNameVar ' );
148
147
}
149
148
150
149
/**
You can’t perform that action at this time.
0 commit comments