Lines Matching refs:stackPtr

52      * @param int                  $stackPtr  The position of the current token in the
57 protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
60 $varName = ltrim($tokens[$stackPtr]['content'], '$');
82 $objOperator = $phpcsFile->findNext(array(T_WHITESPACE), ($stackPtr + 1), null, true);
108 $phpcsFile->addWarning($warning, $stackPtr, 'ContainsNumbers', $data);
119 … $objOperator = $phpcsFile->findPrevious(array(T_WHITESPACE), ($stackPtr - 1), null, true);
125 … $inClass = $phpcsFile->hasCondition($stackPtr, array(T_CLASS, T_INTERFACE, T_TRAIT));
136 $phpcsFile->addError($error, $stackPtr, 'NotCamelCaps', $data);
140 $phpcsFile->addWarning($warning, $stackPtr, 'ContainsNumbers', $data);
150 * @param int $stackPtr The position of the current token in the
155 protected function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
158 $varName = ltrim($tokens[$stackPtr]['content'], '$');
159 $memberProps = $phpcsFile->getMemberProperties($stackPtr);
166 $phpcsFile->addError($error, $stackPtr, 'PublicHasUnderscore', $data);
177 $phpcsFile->addError($error, $stackPtr, 'PrivateNoUnderscore', $data);
185 $phpcsFile->addError($error, $stackPtr, 'MemberVarNotCamelCaps', $data);
189 $phpcsFile->addWarning($warning, $stackPtr, 'MemberVarContainsNumbers', $data);
199 * @param int $stackPtr The position of the double quoted
204 protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr) argument
223 …ch_all('|[^\\\]\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)|', $tokens[$stackPtr]['content'], $mat…
233 $phpcsFile->addError($error, $stackPtr, 'StringVarNotCamelCaps', $data);
237 $phpcsFile->addWarning($warning, $stackPtr, 'StringVarContainsNumbers', $data);