PHP Class PhpCsFixer\Fixer\ClassNotation\MethodSeparationFixer

The exception is when a method is the first or last item in a 'classy'.
Author: SpacePossum
Inheritance: extends PhpCsFixer\AbstractFixer, implements PhpCsFixer\Fixer\WhitespacesAwareFixerInterface
ファイルを表示 Open project: friendsofphp/php-cs-fixer

Public Methods

Method Description
fix ( SplFileInfo $file, Tokens $tokens )
getPriority ( )
isCandidate ( Tokens $tokens )

Protected Methods

Method Description
getDescription ( )

Private Methods

Method Description
correctLineBreaks ( Tokens $tokens, integer $startIndex, integer $endIndex, integer $reqLineCount = 2 )
findCommentBlockStart ( Tokens $tokens, integer $commentIndex ) : integer
fixClass ( Tokens $tokens, TokensAnalyzer $tokensAnalyzer, integer $classStart, integer $classEnd )
fixInterface ( Tokens $tokens, integer $classStart, integer $classEnd )
fixSpaceAboveMethod ( Tokens $tokens, integer $classStart, integer $methodIndex ) Fix spacing above a method signature.
fixSpaceBelowMethod ( Tokens $tokens, integer $classEnd, integer $methodEnd )
getLineBreakCount ( Tokens $tokens, integer $whiteStart, integer $whiteEnd ) : integer

Method Details

fix() public method

public fix ( SplFileInfo $file, Tokens $tokens )
$file SplFileInfo
$tokens PhpCsFixer\Tokenizer\Tokens

getDescription() protected method

protected getDescription ( )

getPriority() public method

public getPriority ( )

isCandidate() public method

public isCandidate ( Tokens $tokens )
$tokens PhpCsFixer\Tokenizer\Tokens