-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
44 lines (39 loc) · 1.11 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
<?php
$header = <<<EOF
This file is part of the GeckoPackages.
(c) GeckoPackages https://github.com/GeckoPackages
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
EOF;
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
return Symfony\CS\Config\Config::create()
// use SYMFONY_LEVEL:
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
// and extra fixers:
->fixers(array(
'combine_consecutive_unsets',
'ereg_to_preg',
'header_comment',
'newline_after_open_tag',
'no_useless_else',
'no_useless_return',
'ordered_use',
'short_array_syntax',
'phpdoc_order',
'php_unit_construct',
'php_unit_dedicate_assert',
'php_unit_strict',
'strict',
'strict_param',
'-empty_return',
'-phpdoc_short_description',
'-phpdoc_to_comment',
'-psr0',
))
->finder(
Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__.'/src/')
->in(__DIR__.'/tests/')
->name('*.php')
)
;