-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
executable file
·40 lines (36 loc) · 1.01 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
<?php
declare(strict_types=1);
$config = new PhpCsFixer\Config();
$finder = $config->getFinder()
->exclude(
[
'vendor',
]
)
->in(__DIR__);
return $config
->registerCustomFixers([])
->setRules(
[
'@Symfony' => true,
'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,
'ordered_imports' => [
'imports_order' => [
'class',
'function',
'const',
],
'sort_algorithm' => 'alpha',
],
]
);