void loadFunctionNamesInScope(
File
$phpcsFile, int
$currScope)
Extracts all the function names found in the given scope.
Parameters:
PHP_CodeSniffer_File
$phpcsFile
—
The current file being scanned.
int
$currScope
—
A pointer to the start of the scope.
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 within the scope that this test is listening to.)
Parameters:
PHP_CodeSniffer_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_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.