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

Commit 85fc529

Browse files
committed
Update formatting
1 parent 7868b88 commit 85fc529

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.php_cs.dist

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $finder = Symfony\Component\Finder\Finder::create()
1313
->ignoreDotFiles(true)
1414
->ignoreVCS(true);
1515

16-
return PhpCsFixer\Config::create()
16+
return (new PhpCsFixer\Config)
1717
->setRules([
1818
'@PSR2' => true,
1919
'array_syntax' => ['syntax' => 'short'],
@@ -23,15 +23,21 @@ return PhpCsFixer\Config::create()
2323
'trailing_comma_in_multiline_array' => true,
2424
'phpdoc_scalar' => true,
2525
'unary_operator_spaces' => true,
26-
'binary_operator_spaces' => true,
26+
'binary_operator_spaces' => ['operators' => ['|' => 'no_space']],
2727
'blank_line_before_statement' => [
2828
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'],
2929
],
3030
'phpdoc_single_line_var_spacing' => true,
3131
'phpdoc_var_without_name' => true,
32+
'class_attributes_separation' => [
33+
'elements' => [
34+
'method',
35+
],
36+
],
3237
'method_argument_space' => [
3338
'on_multiline' => 'ensure_fully_multiline',
3439
'keep_multiple_spaces_after_comma' => true,
35-
]
40+
],
41+
'single_trait_insert_per_statement' => true,
3642
])
3743
->setFinder($finder);

0 commit comments

Comments
 (0)