-
Notifications
You must be signed in to change notification settings - Fork 2
/
.php-cs-fixer.php
43 lines (39 loc) · 1.19 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
->registerCustomFixers([])
->setRules(
[
'@Symfony' => true,
'no_binary_string' => false,
'strict_param' => false,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'phpdoc_align' => ['align' => 'left'],
'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,
'nullable_type_declaration_for_default_null_value' => true,
'ordered_imports' => [
'imports_order' => [
'class',
'function',
'const',
],
'sort_algorithm' => 'alpha',
],
'phpdoc_separation' => ['skip_unlisted_annotations' => true]
]
);