void processTokenOutsideScope(
File
$phpcsFile, int
$stackPtr)
Processes a token that is found within the scope that this test is listening to.
Overrides
AbstractScopeSniff::processTokenOutsideScope() (Processes a token that is found outside the scope that this test is listening to.)
Parameters:
\PHP_CodeSniffer\Files\File
$phpcsFile
—
The file where this token was found.
int
$stackPtr
—
The position in the stack where this token was found.
void processTokenWithinScope(
File
$phpcsFile, int
$stackPtr, int
$currScope)
Processes this test, when one of its tokens is encountered.
Overrides
AbstractScopeSniff::processTokenWithinScope() (Processes a token that is found within the scope that this test is listening to.)
Parameters:
\PHP_CodeSniffer\Files\File
$phpcsFile
—
The current file being scanned.
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.
int
$currScope
—
A pointer to the start of the scope.