Commit d6998ac
committed
Generic/UnusedFunctionParameter: remove unreacheable if condition
At this point in the code, there should always be a non-empty token
after the return statement 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 ee237b4 commit d6998ac
File tree
1 file changed
+0
-3
lines changed- src/Standards/Generic/Sniffs/CodeAnalysis
1 file changed
+0
-3
lines changedLines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | 177 | | |
181 | 178 | | |
182 | 179 | | |
| |||
0 commit comments