-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecs.php
More file actions
27 lines (24 loc) · 878 Bytes
/
ecs.php
File metadata and controls
27 lines (24 loc) · 878 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
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\ClassNotation\OrderedClassElementsFixer;
use PhpCsFixer\Fixer\FunctionNotation\PhpdocToParamTypeFixer;
use PhpCsFixer\Fixer\FunctionNotation\PhpdocToPropertyTypeFixer;
use PhpCsFixer\Fixer\FunctionNotation\PhpdocToReturnTypeFixer;
use PhpCsFixer\Fixer\Import\FullyQualifiedStrictTypesFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withPaths([
__DIR__ . '/src',
])
->withPreparedSets(psr12: true, common: true, strict: true, cleanCode: true)
->withRules([
PhpdocToPropertyTypeFixer::class,
PhpdocToParamTypeFixer::class,
PhpdocToReturnTypeFixer::class,
])
->withConfiguredRule(FullyQualifiedStrictTypesFixer::class, [
'import_symbols' => true,
])
->withSkip([
OrderedClassElementsFixer::class,
]);