-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
35 lines (32 loc) · 1019 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
30
31
32
33
34
35
<?php
declare(strict_types=1);
use PedroTroller\CS\Fixer\Fixers;
use PedroTroller\CS\Fixer\RuleSetFactory;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules(
RuleSetFactory::create()
->phpCsFixer(true)
->php(7.2, true)
->pedrotroller(true)
->enable('ordered_imports')
->enable('ordered_interfaces')
->enable('align_multiline_comment')
->enable('array_indentation')
->enable('no_superfluous_phpdoc_tags')
->enable('binary_operator_spaces', [
'operators' => [
'=' => 'align_single_space_minimal',
'=>' => 'align_single_space_minimal',
],
])
->getRules()
)
->setUsingCache(false)
->registerCustomFixers(new Fixers())
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->append([__FILE__, __DIR__.'/.symfony_checker'])
)
;