-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
35 lines (31 loc) · 892 Bytes
/
.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
<?php
return call_user_func(function () {
$finder = \Symfony\Component\Finder\Finder::create()
->files()
->ignoreDotFiles(true)
->ignoreVCS(true)
->name('*.php')
->exclude('vendor')
->in(__DIR__);
$fixers = array(
'-concat_without_spaces',
'-empty_return',
'-phpdoc_params',
'-phpdoc_params',
'-phpdoc_short_description',
'-unalign_double_arrow',
'-unalign_equals',
'-unary_operators_spaces',
'align_double_arrow',
'align_equals',
'concat_with_spaces',
'long_array_syntax',
'multiline_spaces_before_semicolon',
'ordered_use',
'phpdoc_order',
);
return \Symfony\CS\Config\Config::create()
->level(\Symfony\CS\FixerInterface::SYMFONY_LEVEL)
->fixers($fixers)
->finder($finder);
});