-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.php_cs
52 lines (52 loc) · 1.22 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
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->in('src')
->in('tests')
->filter(function (SplFileInfo $file) {
if (strstr($file->getPath(), 'compatibility')) {
return false;
}
});
$config = Symfony\CS\Config\Config::create();
$config->level(null);
$config->fixers(
array(
// PSR-0
'psr0',
// PSR-1
'encoding',
'short_tag',
// PSR-2
'braces',
'elseif',
'eof_ending',
'function_call_space',
'function_declaration',
'indentation',
'line_after_namespace',
'linefeed',
'lowercase_constants',
'lowercase_keywords',
'method_argument_space',
'multiple_use',
'parenthesis',
'php_closing_tag',
'single_line_after_imports',
'trailing_spaces',
'visibility',
// Symfony
'duplicate_semicolon',
'empty_return',
'extra_empty_lines',
'join_function',
'object_operator',
'remove_lines_between_uses',
'standardize_not_equal',
'unused_use',
'whitespacy_lines',
// Contrib
'long_array_syntax',
)
);
$config->finder($finder);
return $config;