Documentation

SingleSpaceAfterConstructFixer extends AbstractFixer
in package
implements ConfigurationDefinitionFixerInterface

Tags
author

Andreas Möller am@localheinz.com

Interfaces, Classes and Traits

ConfigurationDefinitionFixerInterface

Table of Contents

$fixTokenMap  : array<string, int>
$tokenMap  : array<string, null|int>
configure()  : mixed
{@inheritdoc}
getDefinition()  : mixed
{@inheritdoc}
getPriority()  : mixed
{@inheritdoc}
isCandidate()  : mixed
{@inheritdoc}
applyFix()  : mixed
{@inheritdoc}
createConfigurationDefinition()  : mixed
isMultilineExtendsOrImplementsWithMoreThanOneAncestor()  : bool
isMultiLineReturn()  : bool

Properties

$tokenMap

private static array<string, null|int> $tokenMap = ['abstract' => T_ABSTRACT, 'as' => T_AS, 'attribute' => PhpCsFixerTokenizerCT::T_ATTRIBUTE_CLOSE, 'break' => T_BREAK, 'case' => T_CASE, 'catch' => T_CATCH, 'class' => T_CLASS, 'clone' => T_CLONE, 'comment' => T_COMMENT, 'const' => T_CONST, 'const_import' => PhpCsFixerTokenizerCT::T_CONST_IMPORT, 'continue' => T_CONTINUE, 'do' => T_DO, 'echo' => T_ECHO, 'else' => T_ELSE, 'elseif' => T_ELSEIF, 'extends' => T_EXTENDS, 'final' => T_FINAL, 'finally' => T_FINALLY, 'for' => T_FOR, 'foreach' => T_FOREACH, 'function' => T_FUNCTION, 'function_import' => PhpCsFixerTokenizerCT::T_FUNCTION_IMPORT, 'global' => T_GLOBAL, 'goto' => T_GOTO, 'if' => T_IF, 'implements' => T_IMPLEMENTS, 'include' => T_INCLUDE, 'include_once' => T_INCLUDE_ONCE, 'instanceof' => T_INSTANCEOF, 'insteadof' => T_INSTEADOF, 'interface' => T_INTERFACE, 'match' => null, 'named_argument' => PhpCsFixerTokenizerCT::T_NAMED_ARGUMENT_COLON, 'new' => T_NEW, 'open_tag_with_echo' => T_OPEN_TAG_WITH_ECHO, 'php_doc' => T_DOC_COMMENT, 'php_open' => T_OPEN_TAG, 'print' => T_PRINT, 'private' => T_PRIVATE, 'protected' => T_PROTECTED, 'public' => T_PUBLIC, 'require' => T_REQUIRE, 'require_once' => T_REQUIRE_ONCE, 'return' => T_RETURN, 'static' => T_STATIC, 'throw' => T_THROW, 'trait' => T_TRAIT, 'try' => T_TRY, 'use' => T_USE, 'use_lambda' => PhpCsFixerTokenizerCT::T_USE_LAMBDA, 'use_trait' => PhpCsFixerTokenizerCT::T_USE_TRAIT, 'var' => T_VAR, 'while' => T_WHILE, 'yield' => T_YIELD, 'yield_from' => null]

Methods

configure()

{@inheritdoc}

public configure([array<string|int, mixed> $configuration = null ]) : mixed
Parameters
$configuration : array<string|int, mixed> = null
Return values
mixed

getPriority()

{@inheritdoc}

public getPriority() : mixed

Must run before BracesFixer, FunctionDeclarationFixer.

Return values
mixed

isMultilineExtendsOrImplementsWithMoreThanOneAncestor()

private isMultilineExtendsOrImplementsWithMoreThanOneAncestor(Tokens $tokens, int $index) : bool
Parameters
$tokens : Tokens
$index : int
Return values
bool

Search results