| 1 | <?php declare(strict_types = 1); |
||
| 8 | class ForbiddenMethodsSniff implements PHP_CodeSniffer_Sniff |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The methods that are forbidden. |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | public $forbiddenMethods = ['raw', 'statement']; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Returns the token types that this sniff is interested in. |
||
| 18 | * @return array |
||
| 19 | */ |
||
| 20 | public function register(): array |
||
| 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 integer $stackPtr The position in the stack where |
||
| 30 | * the token was found. |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
||
| 48 | } |
||
| 49 |