Documentation

CurlyBracesPositionFixer extends AbstractProxyFixer
in package
implements ConfigurableFixerInterface, DeprecatedFixerInterface, WhitespacesAwareFixerInterface uses ConfigurableFixerTrait, Indentation

FinalYes
Tags
deprecated
implements

ConfigurableFixerInterface<_AutogeneratedInputConfiguration, _AutogeneratedComputedConfiguration>

phpstan-type

_AutogeneratedInputConfiguration array{ allow_single_line_anonymous_functions?: bool, allow_single_line_empty_anonymous_classes?: bool, anonymous_classes_opening_brace?: 'next_line_unless_newline_at_signature_end'|'same_line', anonymous_functions_opening_brace?: 'next_line_unless_newline_at_signature_end'|'same_line', classes_opening_brace?: 'next_line_unless_newline_at_signature_end'|'same_line', control_structures_opening_brace?: 'next_line_unless_newline_at_signature_end'|'same_line', functions_opening_brace?: 'next_line_unless_newline_at_signature_end'|'same_line' }

phpstan-type

_AutogeneratedComputedConfiguration array{ allow_single_line_anonymous_functions: bool, allow_single_line_empty_anonymous_classes: bool, anonymous_classes_opening_brace: 'next_line_unless_newline_at_signature_end'|'same_line', anonymous_functions_opening_brace: 'next_line_unless_newline_at_signature_end'|'same_line', classes_opening_brace: 'next_line_unless_newline_at_signature_end'|'same_line', control_structures_opening_brace: 'next_line_unless_newline_at_signature_end'|'same_line', functions_opening_brace: 'next_line_unless_newline_at_signature_end'|'same_line' }

Table of Contents

Interfaces

ConfigurableFixerInterface
DeprecatedFixerInterface
WhitespacesAwareFixerInterface

Properties

$bracesPositionFixer  : BracesPositionFixer

Methods

__construct()  : mixed
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.
configurePreNormalisation()  : void
createConfigurationDefinition()  : FixerConfigurationResolverInterface
createProxyFixers()  : array<string|int, mixed>

Properties

Methods

getPriority()

Returns the priority of the fixer.

public getPriority() : int

Must run before SingleLineEmptyBodyFixer, StatementIndentationFixer. Must run after ControlStructureBracesFixer, NoMultipleStatementsPerLineFixer.

Return values
int

getSuccessorsNames()

Returns names of fixers to use instead, if any.

public getSuccessorsNames() : array<int, string>
Return values
array<int, string>

configurePreNormalisation()

protected configurePreNormalisation(_AutogeneratedInputConfiguration $configuration) : void
Parameters
$configuration : _AutogeneratedInputConfiguration

createProxyFixers()

protected createProxyFixers() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results