PHP Class ObjectCalisthenics\Sniffs\Metrics\OneIndentationLevelSniff

Author: Guilherme Blanco ([email protected])
Inheritance: implements PHP_CodeSniffer_Snif\PHP_CodeSniffer_Sniff
Afficher le fichier Open project: object-calisthenics/phpcs-calisthenics-rules

Méthodes publiques

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

Private Methods

Méthode Description
adjustNestingLevelToIgnoredScope ( )
handleCaseToken ( array $nestedToken )
handleClosureToken ( array $nestedToken )
handleNestingLevel ( integer $nestingLevel )
handleToken ( array $nestedToken )
iterateTokens ( integer $start, integer $end, array $tokens )
subtractFunctionNestingLevel ( array $token ) : integer
unsetScopeIfNotCurrent ( integer $key, array $ignoredScope )

Method Details

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