PHP Class PhpCsFixer\Fixer\Phpdoc\PhpdocSeparationFixer

Author: Graham Campbell ([email protected])
Inheritance: extends PhpCsFixer\AbstractFixer
Exibir arquivo Open project: friendsofphp/php-cs-fixer

Public Methods

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

Protected Methods

Method Description
getDescription ( )

Private Methods

Method Description
ensureAreSeparate ( PhpCsFixer\DocBlock\DocBlock $doc, Annotation $first, Annotation $second ) Force the given annotations to have one empty line between each other.
ensureAreTogether ( PhpCsFixer\DocBlock\DocBlock $doc, Annotation $first, Annotation $second ) Force the given annotations to immediately follow each other.
fixAnnotations ( PhpCsFixer\DocBlock\DocBlock $doc ) : string Make sure the annotations are correctly separated.
fixDescription ( PhpCsFixer\DocBlock\DocBlock $doc ) Make sure the description is separated from the annotations.

Method Details

fix() public method

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

getDescription() protected method

protected getDescription ( )

isCandidate() public method

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