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