@@ -8,13 +8,16 @@ return PhpCsFixer\Config::create()
88 'method_separation ' => true ,
99 'no_multiline_whitespace_before_semicolons ' => true ,
1010 'single_quote ' => true ,
11+ 'ordered_imports ' => [
12+ 'sort_algorithm ' => 'length ' ,
13+ ],
1114
1215 'binary_operator_spaces ' => [
1316 'align_double_arrow ' => false ,
1417 'align_equals ' => false ,
1518 ],
1619 'blank_line_after_opening_tag ' => true ,
17- 'blank_line_before_return ' => true , // DEPRECATED: use blank_line_before_statement instead.
20+ 'blank_line_before_return ' => true ,
1821 'blank_line_before_statement ' => [
1922 'statements ' => [
2023 'break ' ,
@@ -28,21 +31,22 @@ return PhpCsFixer\Config::create()
2831 'braces ' => [
2932 'allow_single_line_closure ' => true ,
3033 ],
31- // 'cast_spaces' => true,
32- // 'class_definition' => ['singleLine' => true],
34+ 'cast_spaces ' => [
35+ 'space ' => 'single ' ,
36+ ],
3337 'concat_space ' => ['spacing ' => 'none ' ],
3438 'declare_equal_normalize ' => true ,
3539 'function_typehint_space ' => true ,
3640 'hash_to_slash_comment ' => true ,
3741 'include ' => true ,
3842 'lowercase_cast ' => true ,
39- // 'native_function_casing' => true,
43+ 'native_function_casing ' => true ,
4044 // 'new_with_braces' => true,
41- // 'no_blank_lines_after_class_opening' => true,
42- // 'no_blank_lines_after_phpdoc' => true,
43- // 'no_empty_comment' => true,
44- // 'no_empty_phpdoc' => true,
45- // 'no_empty_statement' => true,
45+ 'no_blank_lines_after_class_opening ' => true ,
46+ 'no_blank_lines_after_phpdoc ' => true ,
47+ 'no_empty_comment ' => true ,
48+ 'no_empty_phpdoc ' => true ,
49+ 'no_empty_statement ' => true ,
4650 'no_extra_consecutive_blank_lines ' => [
4751 'curly_brace_block ' ,
4852 'extra ' ,
@@ -69,18 +73,20 @@ return PhpCsFixer\Config::create()
6973 // 'normalize_index_brace' => true,
7074 'object_operator_without_whitespace ' => true ,
7175 // 'php_unit_fqcn_annotation' => true,
72- // 'phpdoc_align' => true,
76+ 'phpdoc_align ' => [
77+ 'align ' => 'vertical ' ,
78+ ],
7379 // 'phpdoc_annotation_without_dot' => true,
74- // 'phpdoc_indent' => true,
80+ 'phpdoc_indent ' => true ,
7581 // 'phpdoc_inline_tag' => true,
7682 // 'phpdoc_no_access' => true,
7783 // 'phpdoc_no_alias_tag' => true,
7884 // 'phpdoc_no_empty_return' => true,
79- // 'phpdoc_no_package' => true,
85+ 'phpdoc_no_package ' => true ,
8086 // 'phpdoc_no_useless_inheritdoc' => true,
8187 // 'phpdoc_return_self_reference' => true,
82- // 'phpdoc_scalar' => true,
83- // 'phpdoc_separation' => true,
88+ 'phpdoc_scalar ' => true ,
89+ 'phpdoc_separation ' => true ,
8490 // 'phpdoc_single_line_var_spacing' => true,
8591 // 'phpdoc_summary' => true,
8692 // 'phpdoc_to_comment' => true,
@@ -90,11 +96,11 @@ return PhpCsFixer\Config::create()
9096 // 'pre_increment' => true,
9197 // 'return_type_declaration' => true,
9298 // 'self_accessor' => true,
93- // 'short_scalar_cast' => true,
99+ 'short_scalar_cast ' => true ,
94100 'single_blank_line_before_namespace ' => true ,
95101 // 'single_class_element_per_statement' => true,
96- // 'space_after_semicolon' => true,
97- // 'standardize_not_equals' => true,
102+ 'space_after_semicolon ' => true ,
103+ 'standardize_not_equals ' => true ,
98104 'ternary_operator_spaces ' => true ,
99105 'trailing_comma_in_multiline_array ' => true ,
100106 'trim_array_spaces ' => true ,
0 commit comments