Update PHP-CS-Fixer configuration

This commit is contained in:
Sebastian Bergmann 2023-04-04 11:35:45 +02:00
parent 736e6d8973
commit 997c703400
No known key found for this signature in database
GPG Key ID: 4AA394086372C20A
1 changed files with 14 additions and 5 deletions

View File

@ -33,6 +33,7 @@ $config->setFinder($finder)
'blank_line_before_statement' => [
'statements' => [
'break',
'case',
'continue',
'declare',
'default',
@ -44,6 +45,7 @@ $config->setFinder($finder)
'if',
'include',
'include_once',
'phpdoc',
'require',
'require_once',
'return',
@ -52,15 +54,13 @@ $config->setFinder($finder)
'try',
'while',
'yield',
'yield_from',
],
],
'braces' => [
'position_after_anonymous_constructs' => 'next',
],
'cast_spaces' => true,
'class_attributes_separation' => [
'elements' => [
'const' => 'one',
'const' => 'none',
'method' => 'one',
'property' => 'only_if_meta'
]
@ -73,7 +73,14 @@ $config->setFinder($finder)
'compact_nullable_typehint' => true,
'concat_space' => ['spacing' => 'one'],
'constant_case' => true,
'control_structure_braces' => true,
'control_structure_continuation_position' => true,
'curly_braces_position' => [
'anonymous_functions_opening_brace' => 'next_line_unless_newline_at_signature_end',
'anonymous_classes_opening_brace' => 'next_line_unless_newline_at_signature_end',
],
'declare_equal_normalize' => ['space' => 'none'],
'declare_parentheses' => true,
'declare_strict_types' => true,
'dir_constant' => true,
'echo_tag_syntax' => true,
@ -147,6 +154,7 @@ $config->setFinder($finder)
'no_leading_import_slash' => true,
'no_leading_namespace_whitespace' => true,
'no_mixed_echo_print' => ['use' => 'print'],
'no_multiple_statements_per_line' => true,
'no_multiline_whitespace_around_double_arrow' => true,
'no_null_property_initialization' => true,
'no_php4_constructor' => true,
@ -272,11 +280,12 @@ $config->setFinder($finder)
'single_import_per_statement' => true,
'single_line_after_imports' => true,
'single_quote' => true,
'single_space_after_construct' => true,
'single_space_around_construct' => true,
'single_trait_insert_per_statement' => true,
'space_after_semicolon' => true,
'standardize_increment' => true,
'standardize_not_equals' => true,
'statement_indentation' => true,
'static_lambda' => true,
'strict_param' => true,
'string_line_ending' => true,