-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.php_cs
43 lines (39 loc) · 1.04 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
<?php
return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->fixers([
'psr0',
// psr-1
'encoding',
'short_tag',
// subset of symphony level
'extra_empty_lines',
'no_empty_lines_after_phpdocs',
'no_blank_lines_after_class_opening',
'operators_spaces',
'phpdoc_indent',
'phpdoc_no_package',
'phpdoc_params',
'phpdoc_trim',
'phpdoc_scalar',
'remove_leading_slash_use',
'return',
'self_accessor',
'single_array_no_trailing_comma',
'single_quote',
'spaces_after_semicolon',
'spaces_before_semicolon',
'unused_use',
'whitespacy_lines',
// contrib checks
'concat_with_spaces',
'newline_after_open_tag',
'ordered_use',
'single_quote',
])
->finder(
Symfony\CS\Finder\DefaultFinder::create()
->exclude('Resources')
->exclude('.git')
->in(__DIR__)
);