-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.php_cs
40 lines (38 loc) · 1.19 KB
/
.php_cs
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
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->exclude('build')
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'concat_space' => ['spacing' => 'one'],
'phpdoc_align' => false,
'phpdoc_to_comment' => false,
'header_comment' => false,
'no_unused_imports' => true,
'ordered_imports' => [
'sort_algorithm' => 'alpha',
],
'single_blank_line_before_namespace' => true,
'no_extra_consecutive_blank_lines' => [
'break',
'continue',
'extra',
'return',
'throw',
'use',
'parenthesis_brace_block',
'square_brace_block',
'curly_brace_block'
],
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'cast_spaces' => ['space' => 'single'],
'binary_operator_spaces' => ['default' => 'single_space'],
'no_superfluous_elseif' => false,
'no_superfluous_phpdoc_tags' => false,
'yoda_style' => false,
'single_line_throw' => false,
])
->setFinder($finder);