Lines Matching refs:commentStart
111 $commentStart = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
114 if ($tokens[$commentStart]['code'] === T_DECLARE) {
115 $semicolon = $phpcsFile->findNext(T_SEMICOLON, ($commentStart + 1));
116 $commentStart = $phpcsFile->findNext(T_WHITESPACE, ($semicolon + 1), null, true);
120 if ($tokens[$commentStart]['code'] === T_COMMENT) {
121 if (strstr($tokens[$commentStart]['content'], 'vim:') !== false) {
122 $commentStart = $phpcsFile->findNext(
124 ($commentStart + 1),
136 if ($tokens[$commentStart]['code'] === T_CLOSE_TAG) {
139 } else if ($tokens[$commentStart]['code'] === T_COMMENT) {
144 } else if ($commentStart === false
145 || $tokens[$commentStart]['code'] !== T_DOC_COMMENT_OPEN_TAG
152 $commentEnd = $tokens[$commentStart]['comment_closer'];
187 for ($i = ($commentStart + 1); $i < $commentEnd; $i++) {
204 $this->processTags($phpcsFile, $stackPtr, $commentStart);
218 * @param int $commentStart Position in the stack where the comment started.
222 protected function processTags(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $commentStart) argument
232 $commentEnd = $tokens[$commentStart]['comment_closer'];
236 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
298 …$phpcsFile->addError($error, $tokens[$commentStart]['comment_tags'][$pos], ucfirst(substr($tag, 1)…