DateTimeImmutableFixer
extends AbstractFixer
in package
Tags
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- isRisky() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- fixClassUsage() : mixed
- fixFunctionUsage() : 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 —fixClassUsage()
private
fixClassUsage(Tokens $tokens, int $index, bool $isInNamespace, bool $isImported) : mixed
Parameters
- $tokens : Tokens
- $index : int
- $isInNamespace : bool
- $isImported : bool
Return values
mixed —fixFunctionUsage()
private
fixFunctionUsage(Tokens $tokens, int $index, string $replacement) : mixed
Parameters
- $tokens : Tokens
- $index : int
- $replacement : string