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
|
|||
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 |
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.