Documentation

PhpUnitSizeClassFixer extends AbstractPhpUnitFixer
in package
implements WhitespacesAwareFixerInterface, ConfigurationDefinitionFixerInterface

Tags
author

Jefersson Nathan malukenho.dev@gmail.com

Interfaces, Classes and Traits

WhitespacesAwareFixerInterface
ConfigurationDefinitionFixerInterface

Table of Contents

getDefinition()  : mixed
{@inheritdoc}
applyPhpUnitClassFix()  : mixed
{@inheritdoc}
createConfigurationDefinition()  : mixed
{@inheritdoc}
addSizeAnnotation()  : array<string|int, Line>
createDocBlock()  : mixed
filterDocBlock()  : array<string|int, array<string|int, Annotation>>
getSingleLineDocBlockEntry()  : string
isAbstractClass()  : bool
makeDocBlockMultiLineIfNeeded()  : DocBlock
splitUpDocBlock()  : array<string|int, Line>
Take a one line doc block, and turn it into a multi line doc block.
updateDocBlockIfNeeded()  : mixed

Methods

applyPhpUnitClassFix()

{@inheritdoc}

protected applyPhpUnitClassFix(Tokens $tokens, mixed $startIndex, mixed $endIndex) : mixed
Parameters
$tokens : Tokens
$startIndex : mixed
$endIndex : mixed
Return values
mixed

createConfigurationDefinition()

{@inheritdoc}

protected createConfigurationDefinition() : mixed
Return values
mixed

createDocBlock()

private createDocBlock(Tokens $tokens, mixed $docBlockIndex) : mixed
Parameters
$tokens : Tokens
$docBlockIndex : mixed
Return values
mixed

getSingleLineDocBlockEntry()

private getSingleLineDocBlockEntry(Line|array<string|int, Line>|string $line) : string
Parameters
$line : Line|array<string|int, Line>|string
Return values
string

splitUpDocBlock()

Take a one line doc block, and turn it into a multi line doc block.

private splitUpDocBlock(array<string|int, Line$lines, Tokens $tokens, int $docBlockIndex) : array<string|int, Line>
Parameters
$lines : array<string|int, Line>
$tokens : Tokens
$docBlockIndex : int
Return values
array<string|int, Line>

updateDocBlockIfNeeded()

private updateDocBlockIfNeeded(Tokens $tokens, mixed $docBlockIndex) : mixed
Parameters
$tokens : Tokens
$docBlockIndex : mixed
Return values
mixed

Search results