Lines Matching refs:stackPtr
50 * @param int $stackPtr The position of the current token
55 public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
59 if ($tokens[$stackPtr]['content']{0} === '#') {
60 $phpcsFile->recordMetric($stackPtr, 'Inline comment style', '# ...');
64 $fix = $phpcsFile->addFixableError($error, $stackPtr, 'WrongStyle');
66 $newComment = ltrim($tokens[$stackPtr]['content'], '# ');
68 $phpcsFile->fixer->replaceToken($stackPtr, $newComment);
70 } else if ($tokens[$stackPtr]['content']{0} === '/'
71 && $tokens[$stackPtr]['content']{1} === '/'
73 $phpcsFile->recordMetric($stackPtr, 'Inline comment style', '// ...');
74 } else if ($tokens[$stackPtr]['content']{0} === '/'
75 && $tokens[$stackPtr]['content']{1} === '*'
77 $phpcsFile->recordMetric($stackPtr, 'Inline comment style', '/* ... */');