forked from gushphp/gush
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php_cs
65 lines (61 loc) · 1.55 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
<?php
/**
* This file is part of Gush.
*
* (c) Luis Cordova <cordoval@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
$finder = Symfony\CS\Finder\DefaultFinder::create()
->notName('LICENSE')
->notName('README.md')
->notName('.php_cs')
->notName('composer.*')
->notName('phpunit.xml*')
->notName('box.json')
->notName('*.phar')
->notName('installer')
->notName('OutputFixtures.php')
->exclude('web')
->in(__DIR__)
;
// Load a local config-file when existing
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',
'ternary_spaces',
'short_array_syntax',
'standardize_not_equal',
'new_with_braces',
'ordered_use',
'default_values',
]
)
->finder($finder)
;