Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
11 | class NoElseSniff implements PHP_CodeSniffer_Sniff |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * Returns the token types that this sniff is interested in. |
||
16 | * @return array |
||
17 | */ |
||
18 | public function register(): array |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Processes the tokens that this sniff is interested in. |
||
25 | * |
||
26 | * @param PHP_CodeSniffer_File $phpcsFile The file where the token was found. |
||
27 | * @param integer $stackPtr The position in the stack where |
||
28 | * the token was found. |
||
29 | * @return void |
||
30 | */ |
||
31 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
||
36 |