-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathecs.php
More file actions
23 lines (19 loc) · 744 Bytes
/
ecs.php
File metadata and controls
23 lines (19 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\StringNotation\SingleQuoteFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withPaths(
[__DIR__ . '/src', __DIR__ . '/rules', __DIR__ . '/rules-tests', __DIR__ . '/tests', __DIR__ . '/config']
)
->withRootFiles()
->withPreparedSets(psr12: true, symplify: true, common: true, strict: true)
->withSkip([
'*/Source/*',
'*/Fixture/*',
'*/Expected/*',
// skip change "\\Entity" to '\\Entity as cause removed the \\ on scoped build
SingleQuoteFixer::class => [
__DIR__ . '/rules/CodeQuality/Rector/Class_/ControllerMethodInjectionToConstructorRector.php',
],
]);