PHP Class SlevomatCodingStandard\Sniffs\Namespaces\FullyQualifiedClassNameAfterKeywordSniff

Inheritance: implements PHP_CodeSniffer_Sniff
Show file Open project: slevomat/coding-standard

Public Properties

Property Type Description
$keywordsToCheck string[] Token types as a strings (e.g. "T_IMPLEMENTS")

Public Methods

Method Description
getErrorCode ( string $keyword ) : string
process ( PHP_CodeSniffer_File $phpcsFile, integer $keywordPointer )
register ( ) : integer[]

Private Methods

Method Description
checkReferencedName ( PHP_CodeSniffer_File $phpcsFile, integer $keywordPointer, integer $nameStartPointer ) : integer
getKeywordsToCheck ( ) : string[]

Method Details

getErrorCode() public static method

public static getErrorCode ( string $keyword ) : string
$keyword string
return string

process() public method

public process ( PHP_CodeSniffer_File $phpcsFile, integer $keywordPointer )
$phpcsFile PHP_CodeSniffer_File
$keywordPointer integer

register() public method

public register ( ) : integer[]
return integer[]

Property Details

$keywordsToCheck public property

Token types as a strings (e.g. "T_IMPLEMENTS")
public string[] $keywordsToCheck
return string[]