Lines Matching refs:tag
62 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
63 if ($tokens[$tag]['content'] === '@api') {
68 $phpcsFile->addError($error, $tag, 'ApiNotFirst');
74 … $prev = $phpcsFile->findPrevious(array(T_DOC_COMMENT_STRING, T_DOC_COMMENT_TAG), ($tag - 1));
75 if ($tokens[$prev]['line'] !== ($tokens[$tag]['line'] - 2)) {
77 $phpcsFile->addError($error, $tag, 'ApiSpacing');
79 } else if (substr($tokens[$tag]['content'], 0, 5) === '@api-') {
82 … $prev = $phpcsFile->findPrevious(array(T_DOC_COMMENT_STRING, T_DOC_COMMENT_TAG), ($tag - 1));
83 if ($tokens[$prev]['line'] !== ($tokens[$tag]['line'] - 1)) {
85 $data = array($tokens[$tag]['content']);
86 $phpcsFile->addError($error, $tag, 'ApiTagSpacing', $data);
91 if ($hasApiTag === true && substr($tokens[$tag]['content'], 0, 4) !== '@api') {