File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -131,11 +131,6 @@ public function processMemberVar(File $phpcsFile, $stackPtr)
131
131
return ;
132
132
}
133
133
134
- if (stripos ($ tokens [$ isShortDescriptionPreviousVar ]['content ' ], $ tokens [$ string ]['content ' ]) !== false ) {
135
- $ error = 'Short description duplicates class property name. ' ;
136
- $ phpcsFile ->addWarning ($ error , $ isShortDescriptionPreviousVar , 'AlreadyHaveMeaningfulNameVar ' );
137
- return ;
138
- }
139
134
$ regularExpression = '/
140
135
# Split camelCase "words". Two global alternatives. Either g1of2:
141
136
(?<=[a-z]) # Position is after a lowercase,
@@ -145,9 +140,9 @@ public function processMemberVar(File $phpcsFile, $stackPtr)
145
140
/x ' ;
146
141
$ varTagParts = preg_split ($ regularExpression , $ tokens [$ string ]['content ' ]);
147
142
148
- if (stripos ($ tokens [$ isShortDescriptionPreviousVar ]['content ' ], implode (' ' , $ varTagParts )) === false ) {
149
- return ;
150
- }
143
+ if (stripos ($ tokens [$ isShortDescriptionPreviousVar ]['content ' ], implode ('' , $ varTagParts )) === false ) {
144
+ return ;
145
+ }
151
146
$ error = 'Short description duplicates class property name. ' ;
152
147
$ phpcsFile ->addWarning ($ error , $ isShortDescriptionPreviousVar , 'AlreadyHaveMeaningfulNameVar ' );
153
148
}
You can’t perform that action at this time.
0 commit comments