-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.php
executable file
·43 lines (39 loc) · 1.24 KB
/
.php-cs-fixer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
declare(strict_types=1);
$config = new PhpCsFixer\Config();
$finder = $config->getFinder()
->exclude(
[
'vendor',
]
)
->in(__DIR__);
return $config
->setRules(
[
'@Symfony' => true,
'strict_param' => false,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'phpdoc_align' => [],
'phpdoc_summary' => false,
'void_return' => false,
'phpdoc_var_without_name' => false,
'phpdoc_to_comment' => false,
'single_line_throw' => false,
'modernize_types_casting' => true,
'function_declaration' => false,
'ordered_imports' => [
'imports_order' => [
'class',
'function',
'const',
],
'sort_algorithm' => 'alpha',
],
'phpdoc_separation' => ['skip_unlisted_annotations' => true],
'nullable_type_declaration' => true,
'nullable_type_declaration_for_default_null_value' => true,
'trailing_comma_in_multiline' => ['elements' => ['arrays', 'parameters']],
]
);