PHP Class ObjectCalisthenics\AbstractIdentifierLengthSniff

Afficher le fichier Open project: object-calisthenics/phpcs-calisthenics-rules

Protected Properties

Свойство Type Description
$minLength integer Minimum variable/method name length.
$tokenString string Token string representation.
$tokenTypeLengthFactor integer Token type length factor, reducing the actual size of token by a factor of value.

Méthodes publiques

Méthode Description
process ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr )
register ( ) : array

Méthodes protégées

Méthode Description
isValid ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : boolean

Private Methods

Méthode Description
handleMinContentLength ( string $content )
isShortContentAllowed ( string $content ) : boolean

Method Details

isValid() abstract protected méthode

abstract protected isValid ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr ) : boolean
$phpcsFile PHP_CodeSniffer_File
$stackPtr integer
Résultat boolean

process() public méthode

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

register() public méthode

public register ( ) : array
Résultat array

Property Details

$minLength protected_oe property

Minimum variable/method name length.
protected int $minLength
Résultat integer

$tokenString protected_oe property

Token string representation.
protected string $tokenString
Résultat string

$tokenTypeLengthFactor protected_oe property

Token type length factor, reducing the actual size of token by a factor of value.
protected int $tokenTypeLengthFactor
Résultat integer