-
Notifications
You must be signed in to change notification settings - Fork 3
/
.php_cs
69 lines (67 loc) · 1.79 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->exclude([
'bin',
'vendor',
'storage',
'public_html',
'resources',
'node_modules',
'libs/external',
'views',
])
->in(__DIR__ . '/tests')
->in(__DIR__ . '/src');
return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->setUsingCache(true)
->fixers(array(
'-psr0',
'-psr4',
'encoding',
'short_tag',
'elseif',
'blankline_after_open_tag',
'namespace_no_leading_whitespace',
'no_blank_lines_after_class_opening',
'single_array_no_trailing_comma',
'no_empty_lines_after_phpdocs',
'concat_with_spaces',
'function_call_space',
'function_declaration',
'eof_ending',
'ordered_use',
'extra_empty_lines',
'single_line_after_imports',
'trailing_spaces',
'remove_lines_between_uses',
'return',
'indentation',
'linefeed',
'braces',
'visibility',
'unused_use',
'whitespacy_lines',
'php_closing_tag',
'phpdoc_order',
'phpdoc_params',
'phpdoc_trim',
'phpdoc_scalar',
'phpdoc_short_description',
'phpdoc_no_empty_return',
'phpdoc_indent',
'phpdoc_type_to_var',
'phpdoc_var_without_name',
'phpdoc_separation',
'short_array_syntax',
'align_double_arrow',
'align_equals',
'lowercase_constants',
'lowercase_keywords',
'multiple_use',
'line_after_namespace',
'method_argument_space',
'parenthesis',
'unary_operators_spaces',
'multiline_array_trailing_comma',
))->finder($finder);