Skip to content

Commit 71997e4

Browse files
authored
Fix: Do not configure deprecated braces fixer (#638)
1 parent ddb0390 commit 71997e4

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.php-cs-fixer.dist.php

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@
5151
'yield',
5252
],
5353
],
54-
'braces' => [
55-
'allow_single_line_anonymous_class_with_empty_body' => true,
56-
],
5754
'cast_spaces' => true,
5855
'class_attributes_separation' => [
5956
'elements' => [
@@ -65,7 +62,11 @@
6562
'concat_space' => [
6663
'spacing' => 'one',
6764
],
65+
'control_structure_braces' => true,
66+
'control_structure_continuation_position' => true,
67+
'curly_braces_position' => true,
6868
'declare_equal_normalize' => true,
69+
'declare_parentheses' => true,
6970
'function_typehint_space' => true,
7071
'general_phpdoc_annotation_remove' => [
7172
'annotations' => [
@@ -99,6 +100,7 @@
99100
'no_extra_blank_lines' => true,
100101
'no_leading_import_slash' => true,
101102
'no_leading_namespace_whitespace' => true,
103+
'no_multiple_statements_per_line' => true,
102104
'no_spaces_around_offset' => true,
103105
'no_superfluous_elseif' => true,
104106
'no_superfluous_phpdoc_tags' => true,
@@ -184,8 +186,24 @@
184186
'single_blank_line_before_namespace' => true,
185187
'single_line_comment_style' => true,
186188
'single_quote' => true,
189+
'single_space_around_construct' => [
190+
'constructs_contain_a_single_space' => [],
191+
'constructs_followed_by_a_single_space' => [
192+
'elseif',
193+
'for',
194+
'foreach',
195+
'if',
196+
'match',
197+
'while',
198+
'use_lambda',
199+
],
200+
'constructs_preceded_by_a_single_space' => [
201+
'use_lambda',
202+
],
203+
],
187204
'single_trait_insert_per_statement' => true,
188205
'standardize_not_equals' => true,
206+
'statement_indentation' => true,
189207
'static_lambda' => true,
190208
'strict_param' => true,
191209
'switch_case_space' => true,

0 commit comments

Comments
 (0)