Documentation

IncludeFixer extends AbstractFixer
in package

FinalYes
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

Methods

getDefinition()  : FixerDefinitionInterface
isCandidate()  : bool
applyFix()  : void
clearIncludies()  : void
findIncludies()  : array<int, array{begin: int, braces: ?array{open: int, close: int}, end: int}>
removeWhitespaceAroundIfPossible()  : void

Methods

applyFix()

protected applyFix(SplFileInfo $file, Tokens $tokens) : void
Parameters
$file : SplFileInfo
$tokens : Tokens

clearIncludies()

private clearIncludies(Tokens $tokens, array<int, array{begin: int, braces: ?array{open: int, close: int}, end: int}> $includies) : void
Parameters
$tokens : Tokens
$includies : array<int, array{begin: int, braces: ?array{open: int, close: int}, end: int}>

findIncludies()

private findIncludies(Tokens $tokens) : array<int, array{begin: int, braces: ?array{open: int, close: int}, end: int}>
Parameters
$tokens : Tokens
Return values
array<int, array{begin: int, braces: ?array{open: int, close: int}, end: int}>

removeWhitespaceAroundIfPossible()

private removeWhitespaceAroundIfPossible(Tokens $tokens, int $index) : void
Parameters
$tokens : Tokens
$index : int

        
On this page

Search results