PHP Class SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff

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

Public Properties

Property Type Description
$allowFullyQualifiedExceptions boolean
$allowPartialUses boolean
$fullyQualifiedKeywords string[]
$ignoredNames string[]
$namespacesRequiredToUse string[] | null If null, all namespaces are required to be used
$specialExceptionNames string[]

Public Methods

Method Description
process ( PHP_CodeSniffer_File $phpcsFile, integer $openTagPointer )
register ( ) : integer[]

Private Methods

Method Description
getFullyQualifiedKeywords ( ) : string[]
getIgnoredNames ( ) : string[]
getNamespacesRequiredToUse ( ) : string[]
getSpecialExceptionNames ( ) : string[]
isClassRequiredToBeUsed ( string $name ) : boolean

Method Details

process() public method

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

register() public method

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

Property Details

$allowFullyQualifiedExceptions public property

public bool $allowFullyQualifiedExceptions
return boolean

$allowPartialUses public property

public bool $allowPartialUses
return boolean

$fullyQualifiedKeywords public property

public string[] $fullyQualifiedKeywords
return string[]

$ignoredNames public property

public string[] $ignoredNames
return string[]

$namespacesRequiredToUse public property

If null, all namespaces are required to be used
public string[]|null $namespacesRequiredToUse
return string[] | null

$specialExceptionNames public property

public string[] $specialExceptionNames
return string[]