PHP Class phpbb_Sniffs_Namespaces_UnusedUseSniff

Inheritance: implements PHP_CodeSniffer_Sniff
Show file Open project: phpbb/phpbb

Public Methods

Method Description
process ( PHP_CodeSniffer_File $phpcsFile, $stackPtr )
register ( )

Protected Methods

Method Description
check ( $phpcsFile, $found_name, $full_name, $short_name, $line )

Private Methods

Method Description
checkDocblock ( PHP_CodeSniffer_File $phpcsFile, $comment_end, array $tokens, string $class_name_full, string $class_name_short ) : boolean
should_ignore_use ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : boolean Check if this use statement is part of the namespace block.

Method Details

check() protected method

protected check ( $phpcsFile, $found_name, $full_name, $short_name, $line )

process() public method

public process ( PHP_CodeSniffer_File $phpcsFile, $stackPtr )
$phpcsFile PHP_CodeSniffer_File

register() public method

public register ( )