anonymous()
last analyzed

Size

Total Lines 21
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 15
nc 1
nop 1
dl 0
loc 21
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
use PhpCsFixer\Fixer\Operator\ConcatSpaceFixer;
6
use PhpCsFixer\Fixer\PhpUnit\PhpUnitTestAnnotationFixer;
7
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
8
use Symplify\EasyCodingStandard\ValueObject\Option;
9
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
10
11
return static function (ContainerConfigurator $containerConfigurator): void {
12
    $services = $containerConfigurator->services();
13
14
    $services->set(PhpUnitTestAnnotationFixer::class)
15
        ->call('configure', [['style' => 'annotation']]);
16
17
    $services->set(ConcatSpaceFixer::class)
18
        ->call('configure', [['spacing' => 'none']]);
19
20
    $parameters = $containerConfigurator->parameters();
21
22
    $parameters->set(Option::SETS, [
0 ignored issues
show
Deprecated Code introduced by
The constant Symplify\EasyCodingStand...alueObject\Option::SETS has been deprecated: Use $containerConfigurator->import(...) instead ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

22
    $parameters->set(/** @scrutinizer ignore-deprecated */ Option::SETS, [

This class constant has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.

Loading history...
23
        SetList::CLEAN_CODE,
24
        SetList::COMMON,
25
        SetList::SYMFONY,
26
        SetList::SYMFONY_RISKY,
27
        SetList::PSR_12,
28
    ]);
29
30
    $skip = include 'ecs_skip.php';
31
    $parameters->set(Option::SKIP, $skip);
32
};
33