1<?php 2 3declare(strict_types=1); 4 5use PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer; 6use PhpCsFixer\Fixer\Import\NoUnusedImportsFixer; 7use PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer; 8use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; 9use Symplify\CodingStandard\Fixer\Strict\BlankLineAfterStrictTypesFixer; 10use Symplify\EasyCodingStandard\ValueObject\Option; 11use Symplify\EasyCodingStandard\ValueObject\Set\SetList; 12 13return static function (ContainerConfigurator $containerConfigurator): void { 14 $parameters = $containerConfigurator->parameters(); 15 $parameters->set(Option::PATHS, [ 16 __DIR__ . '/src', 17 __DIR__ . '/tests', 18 ]); 19 20 $services = $containerConfigurator->services(); 21 $services->set(ArraySyntaxFixer::class) 22 ->call('configure', [[ 23 'syntax' => 'short', 24 ]]); 25 $services->set(BlankLineAfterStrictTypesFixer::class); 26 $services->set(BlankLineAfterOpeningTagFixer::class); 27 $services->set(NoUnusedImportsFixer::class); 28 29 $containerConfigurator->import(SetList::PSR_12); 30}; 31