forked from umbrellio/laravel-heavy-jobs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecs.php
32 lines (22 loc) · 1 KB
/
ecs.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
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\Operator\BinaryOperatorSpacesFixer;
use PhpCsFixer\Fixer\PhpUnit\PhpUnitTestAnnotationFixer;
use PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->import(__DIR__ . '/vendor/umbrellio/code-style-php/umbrellio-cs.php');
$services = $containerConfigurator->services();
$services->set(PhpUnitTestAnnotationFixer::class)
->call('configure', [[
'style' => 'annotation',
]]);
$services->set(DeclareStrictTypesFixer::class);
$services->set(BinaryOperatorSpacesFixer::class)
->call('configure', [[
'default' => 'single_space',
]]);
$parameters = $containerConfigurator->parameters();
$parameters->set('cache_directory', '.ecs_cache');
$parameters->set('exclude_files', ['vendor/*', 'database/*']);
};