Documentation

PhpdocTrimFixer extends AbstractFixer
in package

FinalYes
Tags
author

Graham Campbell hello@gjcampbell.co.uk

Table of Contents

Methods

getDefinition()  : FixerDefinitionInterface
getPriority()  : int
{@inheritdoc}
isCandidate()  : bool
applyFix()  : void
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

getPriority()

{@inheritdoc}

public getPriority() : int

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

Return values
int

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

        
On this page

Search results