PHP Class ObjectCalisthenics\Sniffs\Metrics\OneIndentationLevelSniff

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

Public Methods

Method Description
process ( PHP_CodeSniffer_File $phpcsFile, integer $stackPtr )
register ( ) : array

Private Methods

Method 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 method

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

register() public method

public register ( ) : array
return array