-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.conform.6497192.ecs.php
More file actions
36 lines (32 loc) · 1.04 KB
/
.conform.6497192.ecs.php
File metadata and controls
36 lines (32 loc) · 1.04 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
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer;
use PhpCsFixer\Fixer\ControlStructure\TrailingCommaInMultilineFixer;
use PhpCsFixer\Fixer\Whitespace\ArrayIndentationFixer;
use PhpCsFixer\Fixer\Whitespace\IndentationTypeFixer;
use PhpCsFixer\Fixer\Whitespace\MethodChainingIndentationFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
return ECSConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/ecs.php',
])
->withSets([
SetList::COMMON,
SetList::CLEAN_CODE,
SetList::CONTROL_STRUCTURES,
SetList::ARRAY,
SetList::COMMENTS,
SetList::PSR_12,
SetList::STRICT,
SetList::SPACES,
SetList::NAMESPACES,
])->withRules([
IndentationTypeFixer::class,
ArraySyntaxFixer::class,
ArrayIndentationFixer::class,
TrailingCommaInMultilineFixer::class,
MethodChainingIndentationFixer::class,
]);