final class InlineTagFixer extends AbstractFixer implements ConfigurationDefinitionFixerInterface (View source)

Constants

OPTION_SPACEBEFORE

OPTION_SPACEAFTER

OPTION_SEMICOLON

SPACE_MINIMUM

SPACE_ONE

SPACE_KEEP

private SUPPORTED_SPACEBEFORE_OPTIONS

private SUPPORTED_SPACEAFTER_OPTIONS

Methods

getName()

{@inheritdoc}

getDefinition()

{@inheritdoc}

isCandidate(Tokens $tokens)

{@inheritdoc}

applyFix(SplFileInfo $file, Tokens $tokens)

{@inheritdoc}

array|null
findApplicableRange(Tokens $tokens, int $start = 0)

Find the next range of tokens that should be fixes.

array
fixRange(array $tokens)

No description

array
fixStart(array $tokens)

No description

array
fixEnd(array $tokens)

No description

array
popWhitespacesAndSemicolons(array $tokens, bool $semicolons, bool $whitespaces)

No description

bool
needsSemicolonAfter(array $tokens)

No description

Details

getName()

{@inheritdoc}

See also

\PhpCsFixer\AbstractFixer::getName()

getDefinition()

{@inheritdoc}

See also

\PhpCsFixer\Fixer\DefinedFixerInterface::getDefinition()

isCandidate(Tokens $tokens)

{@inheritdoc}

Parameters

Tokens $tokens

See also

\PhpCsFixer\Fixer\FixerInterface::isCandidate()

protected createConfigurationDefinition()

{@inheritdoc}

See also

\PhpCsFixer\AbstractFixer::createConfigurationDefinition()

protected applyFix(SplFileInfo $file, Tokens $tokens)

{@inheritdoc}

Parameters

SplFileInfo $file
Tokens $tokens

See also

\PhpCsFixer\AbstractFixer::applyFix()

private array|null findApplicableRange(Tokens $tokens, int $start = 0)

Find the next range of tokens that should be fixes.

Parameters

Tokens $tokens
int $start

Return Value

array|null

private array fixRange(array $tokens)

No description

Parameters

array $tokens

Return Value

array

private array fixStart(array $tokens)

No description

Parameters

array $tokens

Return Value

array

private array fixEnd(array $tokens)

No description

Parameters

array $tokens

Return Value

array

private array popWhitespacesAndSemicolons(array $tokens, bool $semicolons, bool $whitespaces)

No description

Parameters

array $tokens
bool $semicolons
bool $whitespaces

Return Value

array

private bool needsSemicolonAfter(array $tokens)

No description

Parameters

array $tokens

Return Value

bool