-
Notifications
You must be signed in to change notification settings - Fork 2
/
.php_cs
51 lines (48 loc) · 1.2 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
41
42
43
44
45
46
47
48
49
50
51
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->notName('README.md')
->notName('composer.*')
->notName('phpunit.xml')
->exclude('app/cache')
->exclude('build')
->exclude('web/bundles')
->exclude('deps')
->in(__DIR__)
;
if (file_exists(__DIR__.'/local.php_cs')) {
require __DIR__.'/local.php_cs';
}
return Symfony\CS\Config\Config::create()
->fixers(
[
'encoding',
'linefeed',
'indentation',
'trailing_spaces',
'object_operator',
'phpdoc_params',
'visibility',
'short_tag',
'php_closing_tag',
'return',
'extra_empty_lines',
'braces',
'lowercase_constants',
'lowercase_keywords',
'include',
'function_declaration',
'controls_spaces',
'spaces_cast',
'elseif',
'eof_ending',
'one_class_per_file',
'unused_use',
'short_array_syntax',
'standardize_not_equal',
'new_with_braces',
'ordered_use',
'default_values',
]
)
->finder($finder)
;