Skip to content
This repository was archived by the owner on Nov 1, 2025. It is now read-only.

Commit bc57b56

Browse files
committed
🔧 Updated php cs fixer configuration
1 parent 9d8cbcc commit bc57b56

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎.php-cs-fixer.dist.php‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@
1111
'blank_line_before_statement' => [
1212
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'],
1313
],
14+
'cast_spaces' => ['space' => 'single'],
1415
'class_attributes_separation' => [
15-
'elements' => ['const' => 'one','method' => 'one','property' => 'one'],
16+
'elements' => ['method' => 'one'],
1617
],
1718
'concat_space' => ['spacing' => 'one'],
19+
'function_declaration' => false,
1820
'method_argument_space' => [
1921
'on_multiline' => 'ensure_fully_multiline',
2022
'keep_multiple_spaces_after_comma' => true,
2123
],
2224
'method_chaining_indentation' => true,
25+
'no_empty_statement' => true,
2326
'no_unused_imports' => true,
2427
'not_operator_with_successor_space' => false,
2528
'ordered_imports' => ['sort_algorithm' => 'alpha'],
@@ -29,7 +32,7 @@
2932
'return_type_declaration' => true,
3033
'single_quote' => true,
3134
'single_trait_insert_per_statement' => true,
32-
'trailing_comma_in_multiline' => true,
35+
'trailing_comma_in_multiline' => ['elements' => ['arrays', 'arguments', 'parameters']],
3336
'unary_operator_spaces' => true,
3437
];
3538

0 commit comments

Comments
 (0)