Passed
Push — master ( 5fd6f9...e54ca1 )
by Zing
06:30
created

anonymous()

Size

Total Lines 13
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 12
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 13
1
<?php
2
3
declare(strict_types=1);
4
5
use PhpCsFixer\Fixer\ControlStructure\YodaStyleFixer;
6
use PhpCsFixer\Fixer\Phpdoc\NoSuperfluousPhpdocTagsFixer;
7
use PhpCsFixer\Fixer\PhpUnit\PhpUnitInternalClassFixer;
8
use PhpCsFixer\Fixer\PhpUnit\PhpUnitTestClassRequiresCoversFixer;
9
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
10
use Symplify\EasyCodingStandard\ValueObject\Option;
11
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
12
13
return static function (ContainerConfigurator $containerConfigurator): void {
14
    $containerConfigurator->import(__DIR__ . '/vendor/zing/coding-standard/config/config.php');
15
    $parameters = $containerConfigurator->parameters();
16
    $parameters->set(Option::SETS, [SetList::PSR_12, SetList::SYMPLIFY, SetList::COMMON, SetList::CLEAN_CODE]);
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

16
    $parameters->set(/** @scrutinizer ignore-deprecated */ Option::SETS, [SetList::PSR_12, SetList::SYMPLIFY, SetList::COMMON, SetList::CLEAN_CODE]);

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...
17
    $parameters->set(Option::SKIP, [
18
        YodaStyleFixer::class => null,
19
        PhpUnitInternalClassFixer::class,
20
        PhpUnitTestClassRequiresCoversFixer::class,
21
        NoSuperfluousPhpdocTagsFixer::class,
22
    ]);
23
    $parameters->set(
24
        Option::PATHS,
25
        [__DIR__ . '/config', __DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/ecs.php', __DIR__ . '/rector.php']
26
    );
27
};
28