Lines Matching refs:phpcsFile

72      * @param PHP_CodeSniffer_File $phpcsFile The file where this token was found.
79 PHP_CodeSniffer_File $phpcsFile, argument
83 $tokens = $phpcsFile->getTokens();
87 $classNameToken = $phpcsFile->findPrevious(
107 $fileName = strtolower($phpcsFile->getFilename());
115 $class = $phpcsFile->getCondition($stackPtr, T_CLASS);
116 $implements = $phpcsFile->findNext(T_IMPLEMENTS, $class, ($class + 10));
118 $implementsClass = $phpcsFile->findNext(T_STRING, $implements);
130 $name = $this->getIncludedClassFromToken($phpcsFile, $tokens, $i);
135 $typeName = $phpcsFile->findNext(T_CONSTANT_ENCAPSED_STRING, ($i + 1));
145 if ($phpcsFile->hasCondition($stackPtr, T_CLASS) === true) {
160 $name = $this->getIncludedClassFromToken($phpcsFile, $tokens, $i);
169 if ($phpcsFile->hasCondition($stackPtr, T_CLASS) === true) {
173 $name = $phpcsFile->findNext(T_STRING, $condPtr);
178 $function = $phpcsFile->findNext(T_FUNCTION, ($condPtr + 1), $end);
180 $name = $phpcsFile->findNext(T_STRING, $function);
186 $function = $phpcsFile->findNext(T_FUNCTION, ($function + 1), $end);
197 $name = $this->getIncludedClassFromToken($phpcsFile, $tokens, $i);
207 $phpcsFile->addError($error, $stackPtr, 'NotIncludedCall', $data);
216 * @param PHP_CodeSniffer_File $phpcsFile The file where the token was found.
222 protected function processTokenOutsideScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
224 $tokens = $phpcsFile->getTokens();
228 $classNameToken = $phpcsFile->findNext(T_STRING, ($stackPtr + 1));
234 $classNameToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
249 $fileName = strtolower($phpcsFile->getFilename());
273 $name = $this->getIncludedClassFromToken($phpcsFile, $tokens, $i);
278 $typeName = $phpcsFile->findNext(T_CONSTANT_ENCAPSED_STRING, ($i + 1));
288 $phpcsFile->addError($error, $stackPtr, 'NotIncludedExtends', $data);
292 $phpcsFile->addError($error, $stackPtr, 'NotIncludedCall', $data);
302 * @param PHP_CodeSniffer_File $phpcsFile The file where this token was found.
310 PHP_CodeSniffer_File $phpcsFile, argument
315 $systemName = $phpcsFile->findNext(T_CONSTANT_ENCAPSED_STRING, ($stackPtr + 1));
319 $typeName = $phpcsFile->findNext(T_CONSTANT_ENCAPSED_STRING, ($stackPtr + 1));
323 $filePath = $phpcsFile->findNext(T_CONSTANT_ENCAPSED_STRING, ($stackPtr + 1));