Skip to content

Commit 3af3fa9

Browse files
committed
[Tests] Aligned 4.6 expected rule set with the changes
1 parent 9e33c24 commit 3af3fa9

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

tests/lib/PhpCsFixer/Sets/expected_rules/4_6_rule_set/local_rules.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
'control_structure_continuation_position' => true,
2727
'no_multiple_statements_per_line' => true,
2828
'declare_parentheses' => true,
29-
'braces_position' => true,
29+
'braces_position' => [
30+
'allow_single_line_empty_anonymous_classes' => true,
31+
'allow_single_line_anonymous_functions' => true,
32+
],
3033
'statement_indentation' => false,
3134
'cast_spaces' => false,
3235
'class_attributes_separation' => [
@@ -201,4 +204,6 @@
201204
'fully_qualified_strict_types' => [
202205
'import_symbols' => true,
203206
],
207+
'single_line_empty_body' => true,
208+
'blank_line_between_import_groups' => true,
204209
];

tests/lib/PhpCsFixer/Sets/expected_rules/4_6_rule_set/php_cs_fixer_rules.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@
168168
'concat_space' => [
169169
'spacing' => 'one',
170170
],
171-
'braces_position' => true,
171+
'braces_position' => [
172+
'allow_single_line_empty_anonymous_classes' => true,
173+
'allow_single_line_anonymous_functions' => true,
174+
],
172175
'single_space_around_construct' => true,
173176
'control_structure_braces' => true,
174177
'control_structure_continuation_position' => true,
@@ -184,4 +187,6 @@
184187
'fully_qualified_strict_types' => [
185188
'import_symbols' => true,
186189
],
190+
'single_line_empty_body' => true,
191+
'blank_line_between_import_groups' => true,
187192
];

0 commit comments

Comments
 (0)