Skip to content

Commit

Permalink
Fix: Do not configure deprecated braces fixer (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed May 1, 2023
1 parent ddb0390 commit 71997e4
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .php-cs-fixer.dist.php
Expand Up @@ -51,9 +51,6 @@
'yield',
],
],
'braces' => [
'allow_single_line_anonymous_class_with_empty_body' => true,
],
'cast_spaces' => true,
'class_attributes_separation' => [
'elements' => [
Expand All @@ -65,7 +62,11 @@
'concat_space' => [
'spacing' => 'one',
],
'control_structure_braces' => true,
'control_structure_continuation_position' => true,
'curly_braces_position' => true,
'declare_equal_normalize' => true,
'declare_parentheses' => true,
'function_typehint_space' => true,
'general_phpdoc_annotation_remove' => [
'annotations' => [
Expand Down Expand Up @@ -99,6 +100,7 @@
'no_extra_blank_lines' => true,
'no_leading_import_slash' => true,
'no_leading_namespace_whitespace' => true,
'no_multiple_statements_per_line' => true,
'no_spaces_around_offset' => true,
'no_superfluous_elseif' => true,
'no_superfluous_phpdoc_tags' => true,
Expand Down Expand Up @@ -184,8 +186,24 @@
'single_blank_line_before_namespace' => true,
'single_line_comment_style' => true,
'single_quote' => true,
'single_space_around_construct' => [
'constructs_contain_a_single_space' => [],
'constructs_followed_by_a_single_space' => [
'elseif',
'for',
'foreach',
'if',
'match',
'while',
'use_lambda',
],
'constructs_preceded_by_a_single_space' => [
'use_lambda',
],
],
'single_trait_insert_per_statement' => true,
'standardize_not_equals' => true,
'statement_indentation' => true,
'static_lambda' => true,
'strict_param' => true,
'switch_case_space' => true,
Expand Down

0 comments on commit 71997e4

Please sign in to comment.