mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
DX: fix cs
This commit is contained in:
@@ -94,7 +94,7 @@ class PersonDocGenNormalizer implements
|
||||
// we simplify the list of attributes for the embedded persons
|
||||
AbstractNormalizer::GROUPS => ['docgen:read'],
|
||||
// when a person reference the same person... take care of circular references
|
||||
AbstractNormalizer::CIRCULAR_REFERENCE_HANDLER => fn($object, $format, $context) => $this->normalizer->normalize(null, $format, $context),
|
||||
AbstractNormalizer::CIRCULAR_REFERENCE_HANDLER => fn ($object, $format, $context) => $this->normalizer->normalize(null, $format, $context),
|
||||
]);
|
||||
|
||||
if (null === $person) {
|
||||
@@ -115,7 +115,7 @@ class PersonDocGenNormalizer implements
|
||||
'altNames' => implode(
|
||||
', ',
|
||||
array_map(
|
||||
static fn(PersonAltName $altName) => $altName->getLabel(),
|
||||
static fn (PersonAltName $altName) => $altName->getLabel(),
|
||||
$person->getAltNames()->toArray()
|
||||
)
|
||||
),
|
||||
|
Reference in New Issue
Block a user