void processMemberVar(
File
$phpcsFile, int
$stackPtr)
Processes class member variables.
Overrides
AbstractVariableSniff::processMemberVar() (Called to process class member vars.)
Parameters:
\PHP_CodeSniffer\Files\File
$phpcsFile
—
The file being scanned.
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
void processVariable(
File
$phpcsFile, int
$stackPtr)
Processes this test, when one of its tokens is encountered.
Overrides
AbstractVariableSniff::processVariable() (Called to process normal member vars.)
Parameters:
\PHP_CodeSniffer\Files\File
$phpcsFile
—
The file being scanned.
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
void processVariableInString(
File
$phpcsFile, int
$stackPtr)
Processes the variable found within a double quoted string.
Overrides
AbstractVariableSniff::processVariableInString() (Called to process variables found in double quoted strings or heredocs.)
Parameters:
\PHP_CodeSniffer\Files\File
$phpcsFile
—
The file being scanned.
int
$stackPtr
—
The position of the double quoted string.