Documentation

IncludeFixer extends AbstractFixer
in package

Tags
author

Sebastiaan Stok s.stok@rollerscapes.net

author

Dariusz Rumiński dariusz.ruminski@gmail.com

author

Kuba Werłos werlos@gmail.com

Table of Contents

getDefinition()  : mixed
{@inheritdoc}
isCandidate()  : mixed
{@inheritdoc}
applyFix()  : mixed
{@inheritdoc}
clearIncludies()  : mixed
findIncludies()  : mixed
removeWhitespaceAroundIfPossible()  : mixed

Methods

getDefinition()

{@inheritdoc}

public getDefinition() : mixed
Return values
mixed

isCandidate()

{@inheritdoc}

public isCandidate(Tokens $tokens) : mixed
Parameters
$tokens : Tokens
Return values
mixed

applyFix()

{@inheritdoc}

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

clearIncludies()

private clearIncludies(Tokens $tokens, array<string|int, mixed> $includies) : mixed
Parameters
$tokens : Tokens
$includies : array<string|int, mixed>
Return values
mixed

removeWhitespaceAroundIfPossible()

private removeWhitespaceAroundIfPossible(Tokens $tokens, int $index) : mixed
Parameters
$tokens : Tokens
$index : int
Return values
mixed

Search results