| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase |
||
| 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.', |
||
| 36 | $stack_ptr, |
||
| 37 | 'ShouldNotBeUsed' |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | |||
| 41 | } |
||
| 42 | |||
| 44 |
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.