Lines Matching refs:phpcsFile

197      * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where the
206 public final function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
208 $file = $phpcsFile->getFilename();
215 $tokens = $phpcsFile->getTokens();
218 $this->processSupplementary($phpcsFile, $stackPtr);
236 $errors = $this->processPattern($patternInfo, $phpcsFile, $stackPtr);
254 $phpcsFile->addError($error, $stackPtr, 'Found');
267 * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where the
276 PHP_CodeSniffer_File $phpcsFile, argument
279 $tokens = $phpcsFile->getTokens();
316 $prev = $phpcsFile->findPrevious(
331 $tokenContent = $phpcsFile->getTokensAsString(
355 $next = $phpcsFile->findPrevious(
384 $startComment = $phpcsFile->findPrevious(
395 $tokenContent = $phpcsFile->getTokensAsString(
405 if ($tokens[$stackPtr]['content'] !== $phpcsFile->eolChar) {
411 if (($tokens[($stackPtr - 1)]['content'] !== $phpcsFile->eolChar)
429 … $prev = $phpcsFile->findPrevious($ignoreTokens, ($stackPtr - 1), null, true);
474 $next = $phpcsFile->findNext(
481 $tokenContent = $phpcsFile->getTokensAsString(
518 $next = $phpcsFile->findNext(
601 $next = $phpcsFile->findNext(
616 $next = $phpcsFile->findPrevious(
653 for ($j = $stackPtr; $j < $phpcsFile->numTokens; $j++) {
654 if (strpos($tokens[$j]['content'], $phpcsFile->eolChar) !== false) {
662 $next = ($phpcsFile->numTokens - 1);
677 $next = $phpcsFile->findNext(
694 $found .= $phpcsFile->getTokensAsString(
769 * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where to
778 PHP_CodeSniffer_File $phpcsFile, argument