UseArrowFunctionsFixer
extends AbstractFixer
in package
Tags
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- isRisky() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- isMultilined() : bool
- transform() : mixed
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —isCandidate()
{@inheritdoc}
public
isCandidate(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —isRisky()
{@inheritdoc}
public
isRisky() : mixed
Return values
mixed —applyFix()
{@inheritdoc}
protected
applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
- $file : SplFileInfo
- $tokens : Tokens
Return values
mixed —isMultilined()
private
isMultilined(Tokens $tokens, int $start, int $end) : bool
Parameters
- $tokens : Tokens
- $start : int
- $end : int
Return values
bool —transform()
private
transform(Tokens $tokens, int $index, null|int $useStart, null|int $useEnd, int $braceOpen, int $return, int $semicolon, int $braceClose) : mixed
Parameters
- $tokens : Tokens
- $index : int
- $useStart : null|int
- $useEnd : null|int
- $braceOpen : int
- $return : int
- $semicolon : int
- $braceClose : int