/
.php_cs
51 lines (49 loc) · 1.36 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()
->exclude('cache')
->exclude('internal')
->exclude('languages')
->exclude('libs/utf8')
->exclude('logs')
->exclude('logs.default')
->exclude('plugins')
->exclude('libs/backup/mysql_backup')
->notPath('libs/backup/file_backup/PEAR.php')
->notPath('libs/class.pThumb.php')
->notPath('libs/class.phpmailer4.php')
->notPath('libs/class.phpmailer5.php')
->notPath('libs/csrf.php')
->notPath('libs/db.php')
->notPath('libs/ez_sql_core.php')
->notPath('class.config.php')
->notPath('class.compiler.php')
->notPath('class.template.php')
->in(__DIR__)
;
return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::NONE_LEVEL)
->fixers(array(
'encoding',
'trailing_spaces',
'eof_ending',
'indentation',
'whitespacy_lines',
'braces',
'short_tag',
'elseif',
'function_call_space',
'function_declaration',
'indentation',
'line_after_namespace',
'lowercase_constants',
'lowercase_keywords',
'method_argument_space',
'multiple_use',
'parenthesis',
'php_closing_tag',
'operators_spaces',
'multiline_array_trailing_comma',
'concat_without_spaces',
))
->finder($finder)
;