2020-10-27 14:47:37 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-01-20 16:24:57 +01:00
|
|
|
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
|
2020-12-25 17:22:19 +01:00
|
|
|
use Rector\CodeQualityStrict\Rector\If_\MoveOutMethodCallInsideIfConditionRector;
|
|
|
|
use Rector\CodeQualityStrict\Rector\Variable\MoveVariableDeclarationNearReferenceRector;
|
2021-01-30 20:56:32 +01:00
|
|
|
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
|
2020-12-28 00:24:28 +01:00
|
|
|
use Rector\CodingStyle\Rector\MethodCall\UseMessageVariableForSprintfInSymfonyStyleRector;
|
2020-10-27 14:47:37 +01:00
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
|
|
$services = $containerConfigurator->services();
|
|
|
|
$services->set(MoveOutMethodCallInsideIfConditionRector::class);
|
2020-10-29 15:59:39 +07:00
|
|
|
$services->set(CountArrayToEmptyArrayComparisonRector::class);
|
2020-12-25 17:22:19 +01:00
|
|
|
$services->set(MoveVariableDeclarationNearReferenceRector::class);
|
2020-12-28 00:24:28 +01:00
|
|
|
$services->set(UseMessageVariableForSprintfInSymfonyStyleRector::class);
|
2021-01-20 16:24:57 +01:00
|
|
|
$services->set(FlipTypeControlToUseExclusiveTypeRector::class);
|
2020-10-27 14:47:37 +01:00
|
|
|
};
|