-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheasy-coding-standard.php
38 lines (29 loc) · 1.56 KB
/
easy-coding-standard.php
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
<?php declare(strict_types=1);
/*
* (c) NETZKOLLEKTIV GmbH <kontakt@netzkollektiv.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 PhpCsFixer\Fixer\Whitespace\NoTrailingWhitespaceFixer;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$services->set(HeaderCommentFixer::class)
->call('configure', [['header' => '(c) NETZKOLLEKTIV GmbH <kontakt@netzkollektiv.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(NoTrailingWhitespaceFixer::class);
$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', 'EasyCreditRatenkauf');
$parameters->set('paths', [__DIR__ . '/src', __DIR__ . '/tests']);
};