Lines Matching refs:tag

236         foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
237 $name = $tokens[$tag]['content'];
248 … $phpcsFile->addError($error, $tag, 'Duplicate'.ucfirst(substr($name, 1)).'Tag', $data);
252 $tagTokens[$name][] = $tag;
254 $string = $phpcsFile->findNext(T_DOC_COMMENT_STRING, $tag, $commentEnd);
255 if ($string === false || $tokens[$string]['line'] !== $tokens[$tag]['line']) {
261 $phpcsFile->addError($error, $tag, 'Empty'.ucfirst(substr($name, 1)).'Tag', $data);
268 foreach ($this->tags as $tag => $tagData) {
269 if (isset($tagTokens[$tag]) === false) {
273 $tag,
276 … $phpcsFile->addError($error, $commentEnd, 'Missing'.ucfirst(substr($tag, 1)).'Tag', $data);
281 $method = 'process'.substr($tag, 1);
284 call_user_func(array($this, $method), $phpcsFile, $tagTokens[$tag]);
292 if ($foundTags[$pos] !== $tag) {
296 $tag,
298 …rror($error, $tokens[$commentStart]['comment_tags'][$pos], ucfirst(substr($tag, 1)).'TagOrder', $d…
303 while (isset($foundTags[$pos]) === true && $foundTags[$pos] === $tag) {
322 foreach ($tags as $tag) {
323 if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING) {
328 $content = $tokens[($tag + 2)]['content'];
346 $phpcsFile->addError($error, $tag, 'InvalidCategory', $data);
364 foreach ($tags as $tag) {
365 if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING) {
370 $content = $tokens[($tag + 2)]['content'];
382 $phpcsFile->addError($error, $tag, 'InvalidPackageValue', $data);
399 $phpcsFile->addError($error, $tag, 'InvalidPackage', $data);
417 foreach ($tags as $tag) {
418 if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING) {
423 $content = $tokens[($tag + 2)]['content'];
444 $phpcsFile->addError($error, $tag, 'InvalidSubpackage', $data);
461 foreach ($tags as $tag) {
462 if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING) {
467 $content = $tokens[($tag + 2)]['content'];
473 $phpcsFile->addError($error, $tag, 'InvalidAuthors');
491 foreach ($tags as $tag) {
492 if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING) {
497 $content = $tokens[($tag + 2)]['content'];
504 $phpcsFile->addError($error, $tag, 'CopyrightHyphen');
509 $phpcsFile->addWarning($error, $tag, 'InvalidCopyright');
514 $phpcsFile->addError($error, $tag, 'IncompleteCopyright');
532 foreach ($tags as $tag) {
533 if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING) {
538 $content = $tokens[($tag + 2)]['content'];
543 $phpcsFile->addError($error, $tag, 'IncompleteLicense');
561 foreach ($tags as $tag) {
562 if ($tokens[($tag + 2)]['code'] !== T_DOC_COMMENT_STRING) {
567 $content = $tokens[($tag + 2)]['content'];
575 $phpcsFile->addWarning($error, $tag, 'InvalidVersion', $data);