The doc-type array(int) could not be parsed: Expected "|" or "end of type", but got "(" at position 5. (view supported doc-types)
This check marks PHPDoc comments that could not be parsed by our parser. To see
which comment annotations we can parse, please refer to our documentation on
supported doc-types.
Loading history...
17
*/
18
public function register() {
19
return array( T_STRING );
20
}
21
22
23
/**
24
* Processes the tokens that this sniff is interested in.
25
*
26
* @param File $phpcs_file The file where the token was found.
27
* @param int $stack_ptr The position in the stack where the token was found.
28
*/
29
public function process( File $phpcs_file, $stack_ptr ) {
30
31
$tokens = $phpcs_file->getTokens();
32
33
if ( 'JETPACK_MASTER_USER' === $tokens[ $stack_ptr ]['content'] ) {
34
$phpcs_file->addWarning(
35
'JETPACK_MASTER_USER constant should not be used. Use the blog token to make requests instead, or use the current user token when needed.',
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.