Documentation

PhpdocIndentFixer extends AbstractFixer
in package

FinalYes
Tags
author

Ceeram ceeram@cakephp.org

author

Graham Campbell hello@gjcampbell.co.uk

Table of Contents

Methods

getDefinition()  : FixerDefinitionInterface
getPriority()  : int
{@inheritdoc}
isCandidate()  : bool
applyFix()  : void
fixDocBlock()  : string
Fix indentation of Docblock.
fixWhitespaceBeforeDocblock()  : string

Methods

getPriority()

{@inheritdoc}

public getPriority() : int

Must run before GeneralPhpdocAnnotationRemoveFixer, GeneralPhpdocTagRenameFixer, NoBlankLinesAfterPhpdocFixer, NoEmptyPhpdocFixer, NoSuperfluousPhpdocTagsFixer, PhpdocAddMissingParamAnnotationFixer, PhpdocAlignFixer, PhpdocAnnotationWithoutDotFixer, PhpdocArrayTypeFixer, PhpdocInlineTagNormalizerFixer, PhpdocLineSpanFixer, PhpdocListTypeFixer, PhpdocNoAccessFixer, PhpdocNoAliasTagFixer, PhpdocNoEmptyReturnFixer, PhpdocNoPackageFixer, PhpdocNoUselessInheritdocFixer, PhpdocOrderByValueFixer, PhpdocOrderFixer, PhpdocParamOrderFixer, PhpdocReadonlyClassCommentToKeywordFixer, PhpdocReturnSelfReferenceFixer, PhpdocSeparationFixer, PhpdocSingleLineVarSpacingFixer, PhpdocSummaryFixer, PhpdocTagCasingFixer, PhpdocTagTypeFixer, PhpdocToParamTypeFixer, PhpdocToPropertyTypeFixer, PhpdocToReturnTypeFixer, PhpdocTrimConsecutiveBlankLineSeparationFixer, PhpdocTrimFixer, PhpdocTypesFixer, PhpdocTypesOrderFixer, PhpdocVarAnnotationCorrectOrderFixer, PhpdocVarWithoutNameFixer. Must run after IndentationTypeFixer, PhpdocToCommentFixer.

Return values
int

fixDocBlock()

Fix indentation of Docblock.

private fixDocBlock(string $content, string $indent) : string
Parameters
$content : string

Docblock contents

$indent : string

Indentation to apply

Return values
string

Dockblock contents including correct indentation

fixWhitespaceBeforeDocblock()

private fixWhitespaceBeforeDocblock(string $content, string $indent) : string
Parameters
$content : string

Whitespace before Docblock

$indent : string

Indentation of the documented subject

Return values
string

Whitespace including correct indentation for Dockblock after this whitespace


        
On this page

Search results