PhpUnitSizeClassFixer
extends AbstractPhpUnitFixer
in package
implements
WhitespacesAwareFixerInterface, ConfigurationDefinitionFixerInterface
Tags
Interfaces, Classes and Traits
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
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —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 —addSizeAnnotation()
private
addSizeAnnotation(DocBlock $docBlock, Tokens $tokens, int $docBlockIndex) : array<string|int, Line>
Parameters
Return values
array<string|int, Line> —createDocBlock()
private
createDocBlock(Tokens $tokens, mixed $docBlockIndex) : mixed
Parameters
- $tokens : Tokens
- $docBlockIndex : mixed
Return values
mixed —filterDocBlock()
private
filterDocBlock(DocBlock $doc) : array<string|int, array<string|int, Annotation>>
Parameters
- $doc : DocBlock
Return values
array<string|int, array<string|int, Annotation>> —getSingleLineDocBlockEntry()
private
getSingleLineDocBlockEntry(Line|array<string|int, Line>|string $line) : string
Parameters
Return values
string —isAbstractClass()
private
isAbstractClass(Tokens $tokens, int $i) : bool
Parameters
- $tokens : Tokens
- $i : int
Return values
bool —makeDocBlockMultiLineIfNeeded()
private
makeDocBlockMultiLineIfNeeded(DocBlock $doc, Tokens $tokens, int $docBlockIndex) : DocBlock
Parameters
Return values
DocBlock —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
Return values
array<string|int, Line> —updateDocBlockIfNeeded()
private
updateDocBlockIfNeeded(Tokens $tokens, mixed $docBlockIndex) : mixed
Parameters
- $tokens : Tokens
- $docBlockIndex : mixed