| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 8 | class MethodFlagParameterSniff implements PHP_CodeSniffer_Sniff |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * The two token types we're looking for. |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $booleans = ['T_FALSE', 'T_TRUE']; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Returns the token types that this sniff is interested in. |
||
| 19 | * @return array |
||
| 20 | */ |
||
| 21 | public function register(): array |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Processes the tokens that this sniff is interested in. |
||
| 28 | * |
||
| 29 | * @param PHP_CodeSniffer_File $phpcsFile The file where the token was found. |
||
| 30 | * @param integer $stackPtr The position in the stack where |
||
| 31 | * the token was found. |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
||
| 50 |