Skip to content

Commit 0d31ade

Browse files
Update PHP-CS-Fixer configuration
1 parent 8f6ba1e commit 0d31ade

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.php-cs-fixer.dist.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@
6464
'yield_from',
6565
],
6666
],
67-
'braces' => [
68-
'position_after_anonymous_constructs' => 'next',
69-
],
7067
'cast_spaces' => true,
7168
'class_attributes_separation' => [
7269
'elements' => [
@@ -83,7 +80,14 @@
8380
'compact_nullable_typehint' => true,
8481
'concat_space' => ['spacing' => 'one'],
8582
'constant_case' => true,
83+
'control_structure_braces' => true,
84+
'control_structure_continuation_position' => true,
85+
'curly_braces_position' => [
86+
'anonymous_functions_opening_brace' => 'next_line_unless_newline_at_signature_end',
87+
'anonymous_classes_opening_brace' => 'next_line_unless_newline_at_signature_end',
88+
],
8689
'declare_equal_normalize' => ['space' => 'none'],
90+
'declare_parentheses' => true,
8791
'declare_strict_types' => true,
8892
'dir_constant' => true,
8993
'echo_tag_syntax' => true,
@@ -156,6 +160,7 @@
156160
'no_leading_import_slash' => true,
157161
'no_leading_namespace_whitespace' => true,
158162
'no_mixed_echo_print' => ['use' => 'print'],
163+
'no_multiple_statements_per_line' => true,
159164
'no_multiline_whitespace_around_double_arrow' => true,
160165
'no_null_property_initialization' => true,
161166
'no_php4_constructor' => true,
@@ -281,11 +286,12 @@
281286
'single_import_per_statement' => true,
282287
'single_line_after_imports' => true,
283288
'single_quote' => true,
284-
'single_space_after_construct' => true,
289+
'single_space_around_construct' => true,
285290
'single_trait_insert_per_statement' => true,
286291
'space_after_semicolon' => true,
287292
'standardize_increment' => true,
288293
'standardize_not_equals' => true,
294+
'statement_indentation' => true,
289295
'static_lambda' => true,
290296
'strict_param' => true,
291297
'string_line_ending' => true,

0 commit comments

Comments
 (0)