PHP Class ObjectCalisthenics\Sniffs\CodeAnalysis\OneObjectOperatorPerLineSniff

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

Public Methods

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

Private Methods

Method Description
getTokenType ( array $token ) : string
handleExcludedFluentInterfaces ( array $tmpToken, string $tmpTokenType )
handleObjectOperators ( array $tokens, integer $pointer, boolean $isOwnCall )
handleTwoObjectOperators ( boolean $isOwnCall )
ignoreWhitespace ( array $tokens, integer $start ) : integer
movePointerToNextObject ( array $tokens, integer $pointer ) : string

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