1 | <?php |
||
28 | class GetClassNullSniff extends AbstractFunctionCallParameterSniff |
||
29 | { |
||
30 | |||
31 | /** |
||
32 | * Functions to check for. |
||
33 | * |
||
34 | * @var array |
||
35 | */ |
||
36 | protected $targetFunctions = array( |
||
37 | 'get_class' => true, |
||
38 | ); |
||
39 | |||
40 | |||
41 | /** |
||
42 | * Do a version check to determine if this sniff needs to run at all. |
||
43 | * |
||
44 | * @return bool |
||
45 | */ |
||
46 | protected function bowOutEarly() |
||
50 | |||
51 | |||
52 | /** |
||
53 | * Process the parameters of a matched function. |
||
54 | * |
||
55 | * @param \PHP_CodeSniffer_File $phpcsFile The file being scanned. |
||
56 | * @param int $stackPtr The position of the current token in the stack. |
||
57 | * @param string $functionName The token content (function name) which was matched. |
||
58 | * @param array $parameters Array with information about the parameters. |
||
59 | * |
||
60 | * @return int|void Integer stack pointer to skip forward or void to continue |
||
61 | * normal file processing. |
||
62 | */ |
||
63 | public function processParameters(\PHP_CodeSniffer_File $phpcsFile, $stackPtr, $functionName, $parameters) |
||
79 | }//end class |
||
80 |