Lines Matching refs:tag
92 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
93 if ($tokens[$tag]['content'] === '@see') {
95 $string = $phpcsFile->findNext(T_DOC_COMMENT_STRING, $tag, $commentEnd);
96 if ($string === false || $tokens[$string]['line'] !== $tokens[$tag]['line']) {
98 $phpcsFile->addError($error, $tag, 'EmptySees');
129 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
130 if ($tokens[$tag]['content'] === '@return') {
133 $phpcsFile->addError($error, $tag, 'DuplicateReturn');
137 $return = $tag;
174 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
175 if ($tokens[$tag]['content'] !== '@throws') {
181 if ($tokens[($tag + 2)]['code'] === T_DOC_COMMENT_STRING) {
183 preg_match('/([^\s]+)(?:\s+(.*))?/', $tokens[($tag + 2)]['content'], $matches);
192 $phpcsFile->addError($error, $tag, 'InvalidThrows');
216 foreach ($tokens[$commentStart]['comment_tags'] as $pos => $tag) {
217 if ($tokens[$tag]['content'] !== '@param') {
227 if ($tokens[($tag + 2)]['code'] === T_DOC_COMMENT_STRING) {
229 …tch('/([^$&.]+)(?:((?:\.\.\.)?(?:\$|&)[^\s]+)(?:(\s+)(.*))?)?/', $tokens[($tag + 2)]['content'], $…
259 for ($i = ($tag + 3); $i < $end; $i++) {
267 $phpcsFile->addError($error, $tag, 'MissingParamComment');
271 $phpcsFile->addError($error, $tag, 'MissingParamName');
275 $phpcsFile->addError($error, $tag, 'MissingParamType');
279 'tag' => $tag,