Lines Matching refs:commentStart
91 $commentStart = $tokens[$commentEnd]['comment_opener'];
92 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
103 $this->processReturn($phpcsFile, $stackPtr, $commentStart);
104 $this->processThrows($phpcsFile, $stackPtr, $commentStart);
105 $this->processParams($phpcsFile, $stackPtr, $commentStart);
116 … * @param int $commentStart The position in the stack where the comment started.
120 protected function processReturn(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $commentStart) argument
129 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
153 $phpcsFile->addError($error, $tokens[$commentStart]['comment_closer'], 'MissingReturn');
165 … * @param int $commentStart The position in the stack where the comment started.
169 protected function processThrows(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $commentStart) argument
174 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
205 … * @param int $commentStart The position in the stack where the comment started.
209 protected function processParams(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $commentStart) argument
216 foreach ($tokens[$commentStart]['comment_tags'] as $pos => $tag) {
253 if (isset($tokens[$commentStart]['comment_tags'][($pos + 1)]) === true) {
254 $end = $tokens[$commentStart]['comment_tags'][($pos + 1)];
256 $end = $tokens[$commentStart]['comment_closer'];
432 $phpcsFile->addError($error, $commentStart, 'MissingParamTag', $data);