Method | Description | |
---|---|---|
getFullyQualifiedTypeNameFromUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : string | ||
getNameAsReferencedInClassFromUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : string | ||
getUseStatements ( PHP_CodeSniffer_File $phpcsFile, integer $openTagPointer ) : |
||
isAnonymousFunctionUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : boolean | ||
isTraitUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : boolean |
Method | Description | |
---|---|---|
getUseStatementPointers ( PHP_CodeSniffer_File $phpcsFile, integer $openTagPointer ) : integer[] | Searches for all use statements in a file, skips bodies of classes and traits. |
public static getFullyQualifiedTypeNameFromUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : string | ||
$phpcsFile | PHP_CodeSniffer_File | |
$usePointer | integer | |
return | string |
public static getNameAsReferencedInClassFromUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : string | ||
$phpcsFile | PHP_CodeSniffer_File | |
$usePointer | integer | |
return | string |
public static getUseStatements ( PHP_CodeSniffer_File $phpcsFile, integer $openTagPointer ) : |
||
$phpcsFile | PHP_CodeSniffer_File | |
$openTagPointer | integer | |
return | canonicalName(string) => useStatement(\SlevomatCodingStandard\Helpers\UseStatement) |
public static isAnonymousFunctionUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : boolean | ||
$phpcsFile | PHP_CodeSniffer_File | |
$usePointer | integer | |
return | boolean |
public static isTraitUse ( PHP_CodeSniffer_File $phpcsFile, integer $usePointer ) : boolean | ||
$phpcsFile | PHP_CodeSniffer_File | |
$usePointer | integer | |
return | boolean |