forked from shopware/SwagMigrationAssistant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecs.php
More file actions
48 lines (39 loc) · 1.7 KB
/
ecs.php
File metadata and controls
48 lines (39 loc) · 1.7 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);
/*
* (c) shopware AG <info@shopware.com>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use PhpCsFixer\Fixer\Alias\MbStrFunctionsFixer;
use PhpCsFixer\Fixer\Comment\HeaderCommentFixer;
use PhpCsFixer\Fixer\FunctionNotation\NativeFunctionInvocationFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return static function (ECSConfig $containerConfigurator): void {
$services = $containerConfigurator->services();
$services->set(HeaderCommentFixer::class)
->call('configure', [['header' => '(c) shopware AG <info@shopware.com>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.', 'separate' => 'bottom', 'location' => 'after_declare_strict', 'comment_type' => 'comment']]);
$services->set(NativeFunctionInvocationFixer::class)
->call('configure', [[
'include' => [NativeFunctionInvocationFixer::SET_ALL],
'scope' => 'namespaced',
]]);
$services->set(MbStrFunctionsFixer::class);
$parameters = $containerConfigurator->parameters();
$parameters->set('cache_directory', __DIR__ . '/var/cache/cs_fixer');
$parameters->set('cache_namespace', 'SwagMigrationAssistant');
$parameters->set('paths', [
__DIR__ . '/bin',
__DIR__ . '/Command',
__DIR__ . '/Controller',
__DIR__ . '/Core',
__DIR__ . '/DependencyInjection',
__DIR__ . '/Exception',
__DIR__ . '/Migration',
__DIR__ . '/Profile',
__DIR__ . '/Resources',
__DIR__ . '/Test',
__DIR__ . '/SwagMigrationAssistant.php',
]);
};