Commit 7397539
committed
File/utility methods: minor clean up
The `T_DOC_COMMENT` token is a PHP native token.
For PHP files, however, all `T_DOC_COMMENT` tokens are split up and re-tokenized via the `PHP_CodeSniffer\Tokenizer\Comment` class to more "sniffable" smaller tokens, so the `T_DOC_COMMENT` token should not exist in PHP files after the PHPCS tokenizer has finished processing the file.
By the looks of it, this may not have been the same for JS files. Then again, references to `T_DOC_COMMENT` - outside of the Tokenizer classes + the `Tokens` class - may also have been from long forgotten times before the `Comment` class existed.
Either way, now the JS and CSS tokenizers have been removed, it seems safe enough to remove references to `T_DOC_COMMENT` (outside of the Tokenizer context).1 parent c3ce193 commit 7397539
1 file changed
+16
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1607 | 1607 | | |
1608 | 1608 | | |
1609 | 1609 | | |
1610 | | - | |
1611 | | - | |
1612 | | - | |
1613 | | - | |
1614 | | - | |
1615 | | - | |
1616 | | - | |
1617 | | - | |
1618 | | - | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
1619 | 1618 | | |
1620 | 1619 | | |
1621 | 1620 | | |
1622 | | - | |
1623 | | - | |
1624 | | - | |
1625 | | - | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
1626 | 1624 | | |
1627 | 1625 | | |
1628 | 1626 | | |
| |||
1981 | 1979 | | |
1982 | 1980 | | |
1983 | 1981 | | |
1984 | | - | |
1985 | | - | |
1986 | | - | |
1987 | | - | |
1988 | | - | |
1989 | | - | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
1990 | 1987 | | |
1991 | 1988 | | |
1992 | 1989 | | |
| |||
0 commit comments