Commit 46bddcd
authored
Helper::findVariableScope(): performance tweak (#139)
Using `isset()` is significantly faster than a call to `in_array()` and as the PHPCS native `Tokens` class already contains a property representing the tokens being checked for here, we may as well use it.1 parent cf89bb2 commit 46bddcd
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| |||
0 commit comments