forked from rocketeers/rocketeer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
39 lines (34 loc) · 1.2 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
<?php
use Symfony\CS\Config\Config;
use Symfony\CS\Finder\DefaultFinder;
use Symfony\CS\Fixer\Contrib\HeaderCommentFixer;
use Symfony\CS\FixerInterface;
$finder = DefaultFinder::create()->in(['bin', 'src', 'tests']);
$header = <<< EOF
This file is part of Rocketeer
(c) Maxime Fabre <[email protected]>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
HeaderCommentFixer::setHeader($header);
return Config::create()
->level(FixerInterface::SYMFONY_LEVEL)
->fixers([
'-yoda_conditions',
'align_double_arrow',
'align_equals',
// 'concat_with_spaces',
'ereg_to_preg',
'header_comment',
'multiline_spaces_before_semicolon',
'no_blank_lines_before_namespace',
'ordered_use',
// 'php4_constructor',
'phpdoc_order',
'phpdoc_var_to_type',
'short_array_syntax',
'strict',
'strict_param',
])
->setUsingCache(true)
->finder($finder);