| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 8 | class ExtendsSniff implements PHP_CodeSniffer_Sniff |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The file where the token was found. |
||
| 12 | * @var PHP_CodeSniffer_File |
||
| 13 | */ |
||
| 14 | private $phpcsFile; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Returns the token types that this sniff is interested in. |
||
| 18 | * @return array |
||
| 19 | */ |
||
| 20 | public function register(): array |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Processes the tokens that this sniff is interested in. |
||
| 27 | * |
||
| 28 | * @param PHP_CodeSniffer_File $phpcsFile The file where the token was found. |
||
| 29 | * @param int $stackPtr The position in the stack where |
||
| 30 | * the token was found. |
||
| 31 | * @return void |
||
| 32 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||
| 33 | */ |
||
| 34 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
||
| 39 | } |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Handle the incoming token. |
||
| 44 | * @param array $token Token data. |
||
| 45 | * @return void |
||
| 46 | */ |
||
| 47 | protected function handleToken($token) |
||
| 56 |