Commit 0471ea4
committed
BadFunctions/EasyRFI: use the build-in PHPCS functionality [2]
The PHPCS native `PHP_CodeSniffer\Util\Tokens` class contains a number of useful token groups.
For this particular sniff, the `Tokens::$includeTokens` applies and contains all the relevant tokens.
It is generally a good idea to use the build-in token groups, as when something would change in how PHP and/or PHPCS tokenizes certain constructs, those groups will be updated too.1 parent 437c7f6 commit 0471ea4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments