Lines Matching refs:stackPtr
48 * @param int $stackPtr The position of the current token
53 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
59 $commentEnd = $phpcsFile->findPrevious($find, ($stackPtr - 1), null, true);
74 $phpcsFile->addError('Missing function doc comment', $stackPtr, 'Missing');
75 $phpcsFile->recordMetric($stackPtr, 'Function has doc comment', 'no');
78 $phpcsFile->recordMetric($stackPtr, 'Function has doc comment', 'yes');
82 …ile->addError('You must use "/**" style comments for a function comment', $stackPtr, 'WrongStyle');
86 if ($tokens[$commentEnd]['line'] !== ($tokens[$stackPtr]['line'] - 1)) {
103 $this->processReturn($phpcsFile, $stackPtr, $commentStart);
104 $this->processThrows($phpcsFile, $stackPtr, $commentStart);
105 $this->processParams($phpcsFile, $stackPtr, $commentStart);
114 * @param int $stackPtr The position of the current token
120 protected function processReturn(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $commentStart) argument
125 $methodName = $phpcsFile->getDeclarationName($stackPtr);
163 * @param int $stackPtr The position of the current token
169 protected function processThrows(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $commentStart) argument
203 * @param int $stackPtr The position of the current token
209 protected function processParams(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $commentStart) argument
289 $realParams = $phpcsFile->getMethodParameters($stackPtr);