-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.php_cs
30 lines (30 loc) · 838 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
<?php
$header = <<<'EOF'
Configuration for php-cs-fixer PSR2
EOF;
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->fixers([
'concat_with_spaces',
'elseif',
'eof_ending',
'remove_leading_slash_use',
'phpdoc_no_empty_return',
'phpdoc_params',
'phpdoc_to_comment',
'phpdoc_order',
'function_call_space',
'function_declaration',
'indentation',
'line_after_namespace',
'lowercase_constants',
'method_argument_space',
'trailing_spaces',
'new_with_braces'
])
->finder(
Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
);