-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecs.php
More file actions
28 lines (25 loc) · 909 Bytes
/
ecs.php
File metadata and controls
28 lines (25 loc) · 909 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
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\ClassNotation\SelfAccessorFixer;
use PhpCsFixer\Fixer\Operator\NewWithBracesFixer;
use PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer;
use PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer;
use Symplify\CodingStandard\Fixer\Spacing\StandaloneLinePromotedPropertyFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withPaths([
__DIR__ . '/lib',
__DIR__ . '/tests',
])
->withPreparedSets(psr12: true, common: true)
->withConfiguredRule(
NewWithBracesFixer::class,
['anonymous_class' => false]
)
->withSkip([
NotOperatorWithSuccessorSpaceFixer::class,
StandaloneLinePromotedPropertyFixer::class,
BlankLineAfterOpeningTagFixer::class,
SelfAccessorFixer::class,
BlankLineAfterOpeningTagFixer::class,
]);