PHP_CodeSniffer_Standards_AbstractScopeSniff | --PHP_CodeSniffer_Standards_AbstractVariableSniff
This class can distinguish between normal T_VARIABLE tokens, and those tokens that represent class members. If a class member is encountered, then then processMemberVar method is called so the extending class can process it. If the token is found to be a normal T_VARIABLE token, then processVariable is called.
[line 61]
The current PHP_CodeSniffer file that we are processing.PHP_CodeSniffer_Standards_AbstractVariableSniff __construct(
)
void processMemberVar(
PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr)
Overridden in child classes as:
void processTokenOutsideScope(
PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr)
void processTokenWithinScope(
PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr, array
$currScope)
void processVariable(
PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr)
Overridden in child classes as:
void processVariableInString(
PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr)
Note that there may be more than one variable in the string, which will result only in one call for the string or one call per line for heredocs.
Overridden in child classes as: