-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
41 lines (36 loc) · 987 Bytes
/
.php-cs-fixer.dist.php
File metadata and controls
41 lines (36 loc) · 987 Bytes
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
<?php
$header = <<<'EOF'
This file is part of the ElaoConsent bundle.
Copyright (C) Elao
@author Elao <contact@elao.com>
EOF;
$finder = PhpCsFixer\Finder::create()
->in([
// App
__DIR__ . '/src',
__DIR__ . '/tests',
])
->exclude([
'fixtures',
'expected',
])
;
return (new PhpCsFixer\Config())
->setUsingCache(true)
->setRiskyAllowed(true)
->setFinder($finder)
->setRules([
'@Symfony' => true,
'concat_space' => ['spacing' => 'one'],
'phpdoc_summary' => false,
'phpdoc_annotation_without_dot' => false,
'phpdoc_order' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true,
'simplified_null_return' => false,
'header_comment' => ['header' => $header],
'yoda_style' => false,
'native_function_invocation' => ['include' => ['@compiler_optimized']],
'no_superfluous_phpdoc_tags' => true,
])
;