Lines Matching refs:stackPtr
57 * @param int $stackPtr The position of the current token in the
62 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
65 $scope_identifier = $phpcsFile->findNext(T_STRING, ($stackPtr + 1));
66 …$errorData = array(strtolower($tokens[$stackPtr]['content']).' '.$tokens[$scope_identifier]…
68 if (isset($tokens[$stackPtr]['scope_opener']) === false) {
70 $phpcsFile->addWarning($error, $stackPtr, 'MissingBrace', $errorData);
74 $openingBrace = $tokens[$stackPtr]['scope_opener'];
77 $lastClassLineToken = $phpcsFile->findPrevious(T_STRING, ($openingBrace - 1), $stackPtr);
83 $phpcsFile->recordMetric($stackPtr, 'Class opening brace placement', 'new line');
93 $phpcsFile->recordMetric($stackPtr, 'Class opening brace placement', 'same line');
99 if ($next === $tokens[$stackPtr]['scope_closer']) {