void processTokenOutsideScope(
File
$phpcsFile, int
$stackPtr)
Processes the tokens outside the scope.
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 being processed.
int
$stackPtr
—
The position where this token was found.
void processTokenWithinScope(
File
$phpcsFile, int
$stackPtr, int
$currScope)
Processes the tokens within the scope.
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 file being processed.
int
$stackPtr
—
The position where this token was found.
int
$currScope
—
The position of the current scope.