Documentation

PhpdocTrimFixer extends AbstractFixer
in package

Tags
author

Graham Campbell graham@alt-three.com

Table of Contents

getDefinition()  : mixed
{@inheritdoc}
getPriority()  : mixed
{@inheritdoc}
isCandidate()  : mixed
{@inheritdoc}
applyFix()  : mixed
{@inheritdoc}
fixEnd()  : string
Make sure the last useful line is immediately before the final line.
fixStart()  : string
Make sure the first useful line starts immediately after the first line.

Methods

getDefinition()

{@inheritdoc}

public getDefinition() : mixed
Return values
mixed

getPriority()

{@inheritdoc}

public getPriority() : mixed

Must run before PhpdocAlignFixer. Must run after AlignMultilineCommentFixer, CommentToPhpdocFixer, GeneralPhpdocAnnotationRemoveFixer, PhpUnitTestAnnotationFixer, PhpdocIndentFixer, PhpdocNoAccessFixer, PhpdocNoEmptyReturnFixer, PhpdocNoPackageFixer, PhpdocOrderFixer, PhpdocScalarFixer, PhpdocToCommentFixer, PhpdocTypesFixer.

Return values
mixed

applyFix()

{@inheritdoc}

protected applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
$file : SplFileInfo
$tokens : Tokens
Return values
mixed

fixEnd()

Make sure the last useful line is immediately before the final line.

private fixEnd(string $content) : string
Parameters
$content : string
Return values
string

fixStart()

Make sure the first useful line starts immediately after the first line.

private fixStart(string $content) : string
Parameters
$content : string
Return values
string

Search results