Lines Matching refs:stackPtr
103 * @param int $stackPtr The position of the current token in
108 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
111 $style = strtolower($tokens[$stackPtr]['content']);
136 $this->addError($phpcsFile, $stackPtr, $style, $pattern);
145 * @param int $stackPtr The position of the forbidden style
152 protected function addError($phpcsFile, $stackPtr, $style, $pattern=null) argument
171 …$fix = $phpcsFile->addFixableError($error.'; use %s instead', $stackPtr, $type.'WithAlternative', …
173 …$fix = $phpcsFile->addFixableWarning($error.'; use %s instead', $stackPtr, $type.'WithAlternative'…
177 $phpcsFile->fixer->replaceToken($stackPtr, $this->forbiddenStyles[$pattern]);
181 $phpcsFile->addError($error, $stackPtr, $type, $data);
183 $phpcsFile->addWarning($error, $stackPtr, $type, $data);