Documentation

StandardizeIncrementFixer extends AbstractIncrementOperatorFixer
in package

FinalYes
Tags
author

ntzm

Table of Contents

Constants

EXPRESSION_END_TOKENS  = [';', ')', ']', ',', ':', [\PhpCsFixer\Tokenizer\CT::T_DYNAMIC_PROP_BRACE_CLOSE], [\PhpCsFixer\Tokenizer\CT::T_DYNAMIC_VAR_BRACE_CLOSE], [T_CLOSE_TAG]]

Methods

getDefinition()  : FixerDefinitionInterface
getPriority()  : int
{@inheritdoc}
isCandidate()  : bool
applyFix()  : void
findStart()  : int
clearRangeLeaveComments()  : void
Clear tokens in the given range unless they are comments.

Constants

EXPRESSION_END_TOKENS

private mixed EXPRESSION_END_TOKENS = [';', ')', ']', ',', ':', [\PhpCsFixer\Tokenizer\CT::T_DYNAMIC_PROP_BRACE_CLOSE], [\PhpCsFixer\Tokenizer\CT::T_DYNAMIC_VAR_BRACE_CLOSE], [T_CLOSE_TAG]]

Methods

getPriority()

{@inheritdoc}

public getPriority() : int

Must run before IncrementStyleFixer. Must run after LongToShorthandOperatorFixer.

Return values
int

clearRangeLeaveComments()

Clear tokens in the given range unless they are comments.

private clearRangeLeaveComments(Tokens $tokens, int $indexStart, int $indexEnd) : void
Parameters
$tokens : Tokens
$indexStart : int
$indexEnd : int

        
On this page

Search results