Skip to content

Commit 51a59ea

Browse files
committed
Ordered rules list alphabetically
1 parent 3ec2bf0 commit 51a59ea

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

src/PhpCsFixerConfig.php

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,33 @@ public static function create(): Config
1414
return Config::create()
1515
->setRules([
1616
'@PSR2' => true,
17-
'ordered_imports' => true,
18-
'ordered_class_elements' => true,
19-
'single_blank_line_before_namespace' => true,
20-
'method_separation' => true,
17+
'array_syntax' => [
18+
'syntax' => 'short',
19+
],
20+
'blank_line_before_return' => true,
2121
'declare_strict_types' => true,
22-
'strict_param' => true,
23-
'single_class_element_per_statement' => true,
22+
'method_separation' => true,
23+
'new_with_braces' => true,
2424
'no_extra_consecutive_blank_lines' => true,
25-
'trailing_comma_in_multiline_array' => true,
26-
'single_quote' => true,
27-
'no_whitespace_in_blank_line' => true,
28-
'no_whitespace_before_comma_in_array' => true,
29-
'no_unused_imports' => true,
30-
'no_short_bool_cast' => true,
3125
'no_leading_import_slash' => true,
32-
'new_with_braces' => true,
33-
'blank_line_before_return' => true,
26+
'no_short_bool_cast' => true,
27+
'no_unused_imports' => true,
28+
'no_whitespace_before_comma_in_array' => true,
29+
'no_whitespace_in_blank_line' => true,
30+
'ordered_class_elements' => true,
31+
'ordered_imports' => true,
32+
'phpdoc_add_missing_param_annotation' => true,
3433
'phpdoc_align' => true,
3534
'phpdoc_no_empty_return' => true,
3635
'phpdoc_order' => true,
37-
'phpdoc_add_missing_param_annotation' => true,
3836
'phpdoc_scalar' => true,
3937
'phpdoc_summary' => true,
4038
'return_type_declaration' => true,
41-
'array_syntax' => ['syntax' => 'short'],
39+
'single_blank_line_before_namespace' => true,
40+
'single_class_element_per_statement' => true,
41+
'single_quote' => true,
42+
'strict_param' => true,
43+
'trailing_comma_in_multiline_array' => true,
4244
])
4345
;
4446
}

0 commit comments

Comments
 (0)