Lines Matching refs:phpcsFile
65 * @param PHP_CodeSniffer_File $phpcsFile The current file being scanned.
73 PHP_CodeSniffer_File $phpcsFile, argument
77 $className = $phpcsFile->getDeclarationName($currScope);
79 $this->loadFunctionNamesInScope($phpcsFile, $currScope);
83 $methodName = $phpcsFile->getDeclarationName($stackPtr);
88 $phpcsFile->addError($error, $stackPtr, 'OldStyle');
95 $tokens = $phpcsFile->getTokens();
97 $parentClassName = $phpcsFile->findExtendedClassName($currScope);
109 …while (($doubleColonIndex = $phpcsFile->findNext(T_DOUBLE_COLON, $startIndex, $endFunctionIndex)) …
114 $phpcsFile->addError($error, ($doubleColonIndex + 1), 'OldStyleCall');
126 * @param PHP_CodeSniffer_File $phpcsFile The current file being scanned.
131 protected function loadFunctionNamesInScope(PHP_CodeSniffer_File $phpcsFile, $currScope) argument
134 $tokens = $phpcsFile->getTokens();
141 $next = $phpcsFile->findNext(T_STRING, $i);