BracesFixer
extends AbstractProxyFixer
in package
implements
ConfigurableFixerInterface, WhitespacesAwareFixerInterface, DeprecatedFixerInterface
uses
ConfigurableFixerTrait
FinalYes
Fixer for rules defined in PSR2 ¶4.1, ¶4.4, ¶5.
Tags
Table of Contents
Interfaces
Properties
- $bracesPositionFixer : null|BracesPositionFixer
- $controlStructureContinuationPositionFixer : null|ControlStructureContinuationPositionFixer
Methods
- getDefinition() : FixerDefinitionInterface
- Returns the definition of the fixer.
- getPriority() : int
- Returns the priority of the fixer.
- getSuccessorsNames() : array<int, string>
- Returns names of fixers to use instead, if any.
- configurePostNormalisation() : void
- createConfigurationDefinition() : FixerConfigurationResolverInterface
- createProxyFixers() : array<string|int, mixed>
- getBracesPositionFixer() : BracesPositionFixer
- getControlStructureContinuationPositionFixer() : ControlStructureContinuationPositionFixer
- translatePositionOption() : BracesPositionFixer::NEXT_LINE_UNLESS_NEWLINE_AT_SIGNATURE_END|BracesPositionFixer::SAME_LINE
Properties
$bracesPositionFixer
private
null|BracesPositionFixer
$bracesPositionFixer
$controlStructureContinuationPositionFixer
private
null|ControlStructureContinuationPositionFixer
$controlStructureContinuationPositionFixer
Methods
getDefinition()
Returns the definition of the fixer.
public
getDefinition() : FixerDefinitionInterface
Return values
FixerDefinitionInterfacegetPriority()
Returns the priority of the fixer.
public
getPriority() : int
Must run before HeredocIndentationFixer. Must run after ClassAttributesSeparationFixer, ClassDefinitionFixer, EmptyLoopBodyFixer, NoAlternativeSyntaxFixer, NoEmptyStatementFixer, NoUselessElseFixer, SingleLineThrowFixer, SingleSpaceAfterConstructFixer, SingleSpaceAroundConstructFixer, SingleTraitInsertPerStatementFixer.
Return values
intgetSuccessorsNames()
Returns names of fixers to use instead, if any.
public
getSuccessorsNames() : array<int, string>
Return values
array<int, string>configurePostNormalisation()
protected
configurePostNormalisation() : void
createConfigurationDefinition()
protected
createConfigurationDefinition() : FixerConfigurationResolverInterface
Return values
FixerConfigurationResolverInterfacecreateProxyFixers()
protected
createProxyFixers() : array<string|int, mixed>
Return values
array<string|int, mixed>getBracesPositionFixer()
private
getBracesPositionFixer() : BracesPositionFixer
Return values
BracesPositionFixergetControlStructureContinuationPositionFixer()
private
getControlStructureContinuationPositionFixer() : ControlStructureContinuationPositionFixer
Return values
ControlStructureContinuationPositionFixertranslatePositionOption()
private
translatePositionOption(string $option) : BracesPositionFixer::NEXT_LINE_UNLESS_NEWLINE_AT_SIGNATURE_END|BracesPositionFixer::SAME_LINE
Parameters
- $option : string