Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase |
||
27 | public function process( File $phpcs_file, $stack_ptr ) { |
||
28 | |||
29 | $tokens = $phpcs_file->getTokens(); |
||
30 | |||
31 | if ( 'JETPACK_MASTER_USER' === $tokens[ $stack_ptr ]['content'] ) { |
||
32 | $phpcs_file->addWarning( |
||
33 | 'JETPACK_MASTER_USER constant should not be used. Use the blog token to make requests instead, or use the current user token when needed.', |
||
34 | $stack_ptr, |
||
35 | 'ShouldNotBeUsed' |
||
36 | ); |
||
37 | } |
||
38 | |||
39 | } |
||
40 | |||
42 |
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.