Skip to content

Commit ff18360

Browse files
author
DACHCOM Bot
authored
[CS] Refactor
1 parent 753d8dd commit ff18360

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

ecs.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use PhpCsFixer\Fixer\Import\NoUnusedImportsFixer;
6+
use Symplify\EasyCodingStandard\Config\ECSConfig;
7+
8+
return ECSConfig::configure()
9+
->withPaths([
10+
__DIR__ . '/src',
11+
])
12+
13+
// add a single rule
14+
->withRules([
15+
NoUnusedImportsFixer::class,
16+
])
17+
18+
// add sets - group of rules
19+
// ->withPreparedSets(
20+
// arrays: true,
21+
// namespaces: true,
22+
// spaces: true,
23+
// docblocks: true,
24+
// comments: true,
25+
// )
26+
27+
;

0 commit comments

Comments
 (0)