Lines Matching refs:phpcsFile
54 * @param PHP_CodeSniffer_File $phpcsFile The file where this token was found.
60 … protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope) argument
64 $previousThrow = $phpcsFile->findPrevious(T_THROW, ($stackPtr - 1), $currScope);
69 $tokens = $phpcsFile->getTokens();
74 $commentEnd = $phpcsFile->findPrevious($find, ($currScope - 1), null, true);
94 if ($phpcsFile->hasCondition($currPos, T_CLOSURE) === false) {
111 $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($currPos + 1), null, true);
113 $currException = $phpcsFile->findNext(
126 $endException = $phpcsFile->findNext(
141 … $throwTokens[] = $phpcsFile->getTokensAsString($currException, ($endException - $currException));
146 $catch = $phpcsFile->findPrevious(
157 $currException = $phpcsFile->findNext(
171 $endException = $phpcsFile->findNext(
182 $thrownVar = $phpcsFile->findNext(
193 … $throwTokens[] = $phpcsFile->getTokensAsString($currException, ($endException - $currException));
201 $currPos = $phpcsFile->findNext(T_THROW, ($currPos + 1), $currScopeEnd);
231 $phpcsFile->addError($error, $commentEnd, 'Missing');
249 $phpcsFile->addError($error, $commentEnd, 'WrongNumber', $data);
257 $phpcsFile->addError($error, $commentEnd, 'Missing', $data);