-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
37 lines (33 loc) · 1.01 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
<?php
$header = <<<'EOF'
This file is part of Millipede, The PHP version of go-millipede
@copyright 2015 Millipede. All rights reserved
@license MIT See LICENSE.md at the root of the project for more info
EOF;
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->fixers([
'ordered_use',
'unused_use',
'remove_lines_between_uses',
'remove_leading_slash_use',
'phpdoc_no_empty_return',
'phpdoc_params',
'phpdoc_to_comment',
'phpdoc_order',
'short_array_syntax',
'single_array_no_trailing_comma',
'multiline_array_trailing_comma',
'concat_without_spaces',
'single_quote',
'ternary_spaces',
'operators_spaces',
'new_with_braces',
'-psr0',
])
->finder(
Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/test')
);