Lines Matching refs:stackPtr
48 * @param int $stackPtr The position of the current token in
53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
55 if ($this->_shouldIgnoreUse($phpcsFile, $stackPtr) === true) {
62 if ($tokens[($stackPtr + 1)]['content'] !== ' ') {
64 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterUse');
66 $phpcsFile->fixer->replaceToken(($stackPtr + 1), ' ');
71 … $next = $phpcsFile->findNext(array(T_COMMA, T_SEMICOLON, T_OPEN_USE_GROUP), ($stackPtr + 1));
74 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'MultipleDeclarations');
79 … $baseUse = rtrim($phpcsFile->getTokensAsString($stackPtr, ($next - $stackPtr)));
85 for ($i = $stackPtr; $i <= $next; $i++) {
127 $prev = $phpcsFile->findPrevious(T_NAMESPACE, ($stackPtr - 1));
132 $phpcsFile->addError($error, $stackPtr, 'UseAfterNamespace');
137 $nextUse = $phpcsFile->findNext(T_USE, ($stackPtr + 1));
149 $end = $phpcsFile->findNext(T_SEMICOLON, ($stackPtr + 1));
164 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'SpaceAfterLastUse', $data);
191 * @param int $stackPtr The position of the current token in
196 private function _shouldIgnoreUse(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
201 $next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
207 if ($phpcsFile->hasCondition($stackPtr, array(T_CLASS, T_TRAIT)) === true) {