PHP_CodeSniffer_Standards_AbstractScopeSniff | --PHP_CodeSniffer_Standards_AbstractVariableSniff
This class can distingush 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.
PHP_CodeSniffer_Standards_AbstractVariableSniff __construct(
)
void processMemberVar(
PHP_CodeSniffer_File
$phpcsFile, int
$stackPtr)
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)
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.