1 | <?php |
||
28 | class AssignmentInConditionSniff implements Sniff |
||
29 | { |
||
30 | /** |
||
31 | * A list of tokenizers this sniff supports. |
||
32 | * |
||
33 | * @var array |
||
34 | */ |
||
35 | public $supportedTokenizers = array('PHP'); |
||
36 | |||
37 | |||
38 | /** |
||
39 | * Returns an array of tokens this test wants to listen for. |
||
40 | * |
||
41 | * @return array |
||
42 | */ |
||
43 | 1 | public function register() |
|
50 | |||
51 | |||
52 | /** |
||
53 | * Processes this test, when one of its tokens is encountered. |
||
54 | * |
||
55 | * @param File $phpcsFile The file being scanned. |
||
56 | * @param int $stackPtr The position of the current token in the |
||
57 | * stack passed in $tokens. |
||
58 | * |
||
59 | * @return void |
||
60 | */ |
||
61 | 1 | public function process(File $phpcsFile, $stackPtr) |
|
85 | }//end class |
||
86 |