| 1 | <?php |
||
| 21 | class PHPCompatibility_Sniffs_PHP_ForbiddenNegativeBitshiftSniff extends PHPCompatibility_Sniff |
||
| 22 | { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * If true, an error will be thrown; otherwise a warning. |
||
| 26 | * |
||
| 27 | * @var bool |
||
| 28 | */ |
||
| 29 | protected $error = true; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Returns an array of tokens this test wants to listen for. |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function register() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Processes this test, when one of its tokens is encountered. |
||
| 44 | * |
||
| 45 | * @param PHP_CodeSniffer_File $phpcsFile The file being scanned. |
||
| 46 | * @param int $stackPtr The position of the current token |
||
| 47 | * in the stack passed in $tokens. |
||
| 48 | * |
||
| 49 | * @return void |
||
| 50 | */ |
||
| 51 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
||
| 63 | |||
| 64 | }//end class |
||
| 65 |