FunctionDeclarationFixer
extends AbstractFixer
in package
implements
ConfigurationDefinitionFixerInterface
Fixer for rules defined in PSR2 generally (¶1 and ¶6).
Tags
Interfaces, Classes and Traits
Table of Contents
- $singleLineWhitespaceOptions : mixed
- $supportedSpacings : mixed
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- createConfigurationDefinition() : mixed
- {@inheritdoc}
- fixParenthesisInnerEdge() : mixed
Properties
$singleLineWhitespaceOptions
private
mixed
$singleLineWhitespaceOptions
= " "
$supportedSpacings
private
mixed
$supportedSpacings
= [self::SPACING_NONE, self::SPACING_ONE]
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run before MethodArgumentSpaceFixer. Must run after SingleSpaceAfterConstructFixer.
Return values
mixed —isCandidate()
{@inheritdoc}
public
isCandidate(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —applyFix()
{@inheritdoc}
protected
applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
- $file : SplFileInfo
- $tokens : Tokens
Return values
mixed —createConfigurationDefinition()
{@inheritdoc}
protected
createConfigurationDefinition() : mixed
Return values
mixed —fixParenthesisInnerEdge()
private
fixParenthesisInnerEdge(Tokens $tokens, mixed $start, mixed $end) : mixed
Parameters
- $tokens : Tokens
- $start : mixed
- $end : mixed