Lines Matching refs:tag
62 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
63 if ($tokens[$tag]['content'] === '@return') {
66 $phpcsFile->addError($error, $tag, 'DuplicateReturn');
70 $return = $tag;
194 foreach ($tokens[$commentStart]['comment_tags'] as $pos => $tag) {
195 if ($tokens[$tag]['content'] !== '@throws') {
201 if ($tokens[($tag + 2)]['code'] === T_DOC_COMMENT_STRING) {
203 preg_match('/([^\s]+)(?:\s+(.*))?/', $tokens[($tag + 2)]['content'], $matches);
212 $phpcsFile->addError($error, $tag, 'InvalidThrows');
215 $phpcsFile->addError($error, $tag, 'EmptyThrows');
224 for ($i = ($tag + 3); $i < $end; $i++) {
234 $phpcsFile->addError($error, ($tag + 2), 'ThrowsNotCapital');
240 $phpcsFile->addError($error, ($tag + 2), 'ThrowsNoFullStop');
272 foreach ($tokens[$commentStart]['comment_tags'] as $pos => $tag) {
273 if ($tokens[$tag]['content'] !== '@param') {
283 if ($tokens[($tag + 2)]['code'] === T_DOC_COMMENT_STRING) {
285 …tch('/([^$&.]+)(?:((?:\.\.\.)?(?:\$|&)[^\s]+)(?:(\s+)(.*))?)?/', $tokens[($tag + 2)]['content'], $…
309 'token' => ($tag + 2),
320 for ($i = ($tag + 3); $i < $end; $i++) {
337 $phpcsFile->addError($error, $tag, 'MissingParamComment');
342 $phpcsFile->addError($error, $tag, 'MissingParamName');
346 $phpcsFile->addError($error, $tag, 'MissingParamType');
350 'tag' => $tag,