string getIncludedClassFromToken(
\PHP_CodeSniffer\Files\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 process(
File
$phpcsFile, int
$stackPtr)
Processes this sniff, when one of its tokens is encountered.
Parameters:
\PHP_CodeSniffer\Files\File
$phpcsFile
—
The file being scanned.
int
$stackPtr
—
The position of the current token in the stack passed in $tokens.