mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
20 lines
1.0 KiB
PHP
20 lines
1.0 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
|
|
use Rector\CodeQualityStrict\Rector\If_\MoveOutMethodCallInsideIfConditionRector;
|
|
use Rector\CodeQualityStrict\Rector\Variable\MoveVariableDeclarationNearReferenceRector;
|
|
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
|
|
use Rector\CodingStyle\Rector\MethodCall\UseMessageVariableForSprintfInSymfonyStyleRector;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
$services = $containerConfigurator->services();
|
|
$services->set(MoveOutMethodCallInsideIfConditionRector::class);
|
|
$services->set(CountArrayToEmptyArrayComparisonRector::class);
|
|
$services->set(MoveVariableDeclarationNearReferenceRector::class);
|
|
$services->set(UseMessageVariableForSprintfInSymfonyStyleRector::class);
|
|
$services->set(FlipTypeControlToUseExclusiveTypeRector::class);
|
|
};
|