Commit e881193
Generic/UnusedFunctionParameter: remove unreacheable if condition
At this point in the code, there should always be a non-empty token
after the return statement, even if only the scope closer, and thus the
if condition will never be true.
If there is a syntax error and there is nothing after the return, the
code will never reach this point as in the beginning of the method the
code checks if `$token['scope_opener']` is set and this only happens
when there is also a scope_closer.1 parent f8dd4aa commit e881193
File tree
1 file changed
+0
-5
lines changed- src/Standards/Generic/Sniffs/CodeAnalysis
1 file changed
+0
-5
lines changedLines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | 177 | | |
183 | 178 | | |
184 | 179 | | |
| |||
0 commit comments