string getIncludedClassFromToken(
File
$phpcsFile, array
$tokens, int
$stackPtr)
Determines the included class name from given token.
Parameters:
\PHP_CodeSniffer\Files\File
$phpcsFile
—
The file where this token was found.
array
$tokens
—
The array of file tokens.
int
$stackPtr
—
The position in the tokens array of the potentially included class.
void processTokenOutsideScope(
File
$phpcsFile, int
$stackPtr)
Processes a token 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 the token was found.
int
$stackPtr
—
The position in the stack where this token was found.
void processTokenWithinScope(
File
$phpcsFile, integer
$stackPtr, integer
$currScope)
Processes the function tokens within the class.
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 where this token was found.
integer
$stackPtr
—
The position where the token was found.
integer
$currScope
—
The current scope opener token.