-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
39 lines (36 loc) · 1.03 KB
/
.php-cs-fixer.php
File metadata and controls
39 lines (36 loc) · 1.03 KB
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
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('vendor/')
->exclude('public/')
->exclude('config/')
->exclude('src/')
->exclude('tests/')
->notName('composer-setup.php')
;
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'no_unused_imports' => true,
'ordered_imports' => true,
'self_accessor' => false,
'declare_strict_types' => true,
'no_superfluous_phpdoc_tags' => false,
'no_empty_phpdoc' => false,
'modifier_keywords' => false,
'array_syntax' => [
'syntax' => 'short',
],
'phpdoc_types_order' => [
'null_adjustment' => 'always_last',
'sort_algorithm' => 'none',
],
])
->setUsingCache(true)
->setRiskyAllowed(true)
->setFinder($finder)
->setCacheFile(__DIR__.'/.php-cs-fixer.cache')
;