Lines Matching refs:stackPtr
58 * @param int $stackPtr The position where the token was found.
63 … protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope) argument
67 $calledClassName = ($stackPtr - 1);
101 if ($phpcsFile->hasCondition($stackPtr, T_CLOSURE) === false) {
106 … $prev = $phpcsFile->findPrevious(array(T_NS_SEPARATOR, T_STRING), ($stackPtr - 1), null, true);
108 for ($i = ($prev + 1); $i < $stackPtr; $i++) {
112 $phpcsFile->fixer->replaceToken($stackPtr, 'self::');
121 if ($tokens[($stackPtr - 1)]['code'] === T_WHITESPACE) {
122 $found = strlen($tokens[($stackPtr - 1)]['content']);
128 $phpcsFile->fixer->replaceToken(($stackPtr - 1), '');
132 if ($tokens[($stackPtr + 1)]['code'] === T_WHITESPACE) {
133 $found = strlen($tokens[($stackPtr + 1)]['content']);
139 $phpcsFile->fixer->replaceToken(($stackPtr + 1), '');
150 * @param int $stackPtr The position where the namespace building will start.
154 protected function getDeclarationNameWithNamespace(array $tokens, $stackPtr) argument
157 $currentPointer = $stackPtr;
175 * @param int $stackPtr The position where the search for the
180 protected function getNamespaceOfScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
183 $namespaceDeclaration = $phpcsFile->findPrevious(T_NAMESPACE, $stackPtr);