This repository was archived by the owner on Oct 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecs.php
More file actions
48 lines (42 loc) · 1.44 KB
/
ecs.php
File metadata and controls
48 lines (42 loc) · 1.44 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
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\CastNotation\CastSpacesFixer;
use PhpCsFixer\Fixer\Operator\ConcatSpaceFixer;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer;
use Symplify\EasyCodingStandard\ValueObject\Option;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
return static function (ContainerConfigurator $containerConfigurator): void {
$sets = [
SetList::PSR_12,
SetList::CLEAN_CODE,
SetList::ARRAY,
SetList::COMMENTS,
SetList::DOCBLOCK,
SetList::NAMESPACES,
SetList::STRICT,
SetList::DOCTRINE_ANNOTATIONS,
SetList::SYMFONY,
SetList::SYMFONY_RISKY,
];
foreach ($sets as $set) {
$containerConfigurator->import($set);
}
$containerConfigurator
->parameters()
->set(Option::PATHS, [__FILE__, __DIR__ . '/FamilyOfficeOnionLocation5.php', __DIR__ . '/Subscriber']);
$containerConfigurator
->services()
->set(ConcatSpaceFixer::class)->call('configure', [[
'spacing' => 'one',
]])
->set(CastSpacesFixer::class)->call('configure', [[
'space' => 'none',
]])
->set(LineLengthFixer::class)
->call('configure', [[
'max_line_length' => 80,
'break_long_lines' => true,
'inline_short_lines' => true,
]]);
};