DX: fix cs

This commit is contained in:
2023-04-15 00:43:55 +02:00
parent 80647147ee
commit 746ed4f5e5
188 changed files with 309 additions and 308 deletions

View File

@@ -69,7 +69,7 @@ class LoadThirdParty extends Fixture implements DependentFixtureInterface
private function getCenters(): Iterator
{
$references = array_map(
static fn($a) => $a['ref'],
static fn ($a) => $a['ref'],
LoadCenters::$centers
);
$number = random_int(1, count($references));

View File

@@ -103,8 +103,8 @@ class PickThirdPartyType extends AbstractType
$resolver
->setDefault('class', ThirdParty::class)
->setDefault('choice_label', static fn(ThirdParty $tp) => $tp->getName())
->setDefault('choice_loader', fn(Options $options) => new ThirdPartyChoiceLoader(
->setDefault('choice_label', static fn (ThirdParty $tp) => $tp->getName())
->setDefault('choice_loader', fn (Options $options) => new ThirdPartyChoiceLoader(
$options['center'],
$this->em->getRepository(ThirdParty::class)
));

View File

@@ -77,7 +77,7 @@ class PickThirdPartyTypeCategoryType extends \Symfony\Component\Form\AbstractTyp
return self::PREFIX_TYPE . $item;
},
'choice_value' => fn($item) => $this->reverseTransform($item),
'choice_value' => fn ($item) => $this->reverseTransform($item),
]);
}