-
Notifications
You must be signed in to change notification settings - Fork 17
/
.php_cs.dist
29 lines (26 loc) · 941 Bytes
/
.php_cs.dist
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
<?php
$header = <<<'EOF'
This file is part of Silarhi.
(c) Guillaume Sainthillier <hello@silarhi.fr>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
EOF;
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests');
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'phpdoc_summary' => false,
'no_superfluous_phpdoc_tags' => true,
'header_comment' => ['header' => $header],
'concat_space' => ['spacing' => 'one'],
'native_constant_invocation' => true,
'native_function_invocation' => ['include' => ['@compiler_optimized']],
'ordered_imports' => ['sort_algorithm' => 'alpha'],
])
->setRiskyAllowed(true)
->setFinder($finder)
->setCacheFile(__DIR__.'/.php_cs.cache');