Skip to content

Commit c5572d4

Browse files
Merge branch '4.1'
2 parents 321dca3 + be31900 commit c5572d4

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

.php-cs-fixer.dist.php

+17-16
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,15 @@
2525
'backtick_to_shell_exec' => true,
2626
'binary_operator_spaces' => [
2727
'operators' => [
28-
'=' => 'align_single_space_minimal',
28+
'*=' => 'align_single_space_minimal',
2929
'+=' => 'align_single_space_minimal',
3030
'-=' => 'align_single_space_minimal',
31-
'*=' => 'align_single_space_minimal',
3231
'/=' => 'align_single_space_minimal',
32+
'=' => 'align_single_space_minimal',
3333
'=>' => 'align_single_space_minimal',
3434
],
3535
],
3636
'blank_line_after_namespace' => true,
37-
'blank_lines_before_namespace' => [
38-
'max_line_breaks' => 1,
39-
'min_line_breaks' => 0,
40-
],
4137
'blank_line_before_statement' => [
4238
'statements' => [
4339
'break',
@@ -65,6 +61,14 @@
6561
'yield_from',
6662
],
6763
],
64+
'blank_lines_before_namespace' => [
65+
'max_line_breaks' => 1,
66+
'min_line_breaks' => 0,
67+
],
68+
'braces_position' => [
69+
'anonymous_classes_opening_brace' => 'next_line_unless_newline_at_signature_end',
70+
'anonymous_functions_opening_brace' => 'next_line_unless_newline_at_signature_end',
71+
],
6872
'cast_spaces' => true,
6973
'class_attributes_separation' => [
7074
'elements' => [
@@ -78,15 +82,11 @@
7882
'combine_consecutive_issets' => true,
7983
'combine_consecutive_unsets' => true,
8084
'combine_nested_dirname' => true,
81-
'compact_nullable_typehint' => true,
85+
'compact_nullable_type_declaration' => true,
8286
'concat_space' => ['spacing' => 'one'],
8387
'constant_case' => true,
8488
'control_structure_braces' => true,
8589
'control_structure_continuation_position' => true,
86-
'curly_braces_position' => [
87-
'anonymous_functions_opening_brace' => 'next_line_unless_newline_at_signature_end',
88-
'anonymous_classes_opening_brace' => 'next_line_unless_newline_at_signature_end',
89-
],
9090
'declare_equal_normalize' => ['space' => 'none'],
9191
'declare_parentheses' => true,
9292
'declare_strict_types' => true,
@@ -102,7 +102,6 @@
102102
'fully_qualified_strict_types' => true,
103103
'function_declaration' => true,
104104
'function_to_constant' => true,
105-
'function_typehint_space' => true,
106105
'get_class_to_class_keyword' => true,
107106
'global_namespace_import' => [
108107
'import_classes' => true,
@@ -143,10 +142,10 @@
143142
'@internal',
144143
],
145144
],
146-
'native_function_type_declaration_casing' => true,
147-
'new_with_braces' => [
148-
'named_class' => false,
145+
'native_type_declaration_casing' => true,
146+
'new_with_parentheses' => [
149147
'anonymous_class' => false,
148+
'named_class' => false,
150149
],
151150
'no_alias_functions' => true,
152151
'no_alias_language_construct_call' => true,
@@ -181,8 +180,8 @@
181180
'no_trailing_whitespace' => true,
182181
'no_trailing_whitespace_in_comment' => true,
183182
'no_trailing_whitespace_in_string' => true,
183+
'no_unneeded_braces' => true,
184184
'no_unneeded_control_parentheses' => true,
185-
'no_unneeded_curly_braces' => true,
186185
'no_unneeded_final_method' => true,
187186
'no_unneeded_import_alias' => true,
188187
'no_unreachable_default_argument_value' => true,
@@ -341,4 +340,6 @@
341340
'whitespace_after_comma_in_array' => true,
342341
]);
343342

343+
$config->setCacheFile(__DIR__ . '/.php-cs-fixer.cache/' . sha1(@trim((string) @shell_exec('git rev-parse --abbrev-ref HEAD'))));
344+
344345
return $config;

0 commit comments

Comments
 (0)