cs: Use Collection more.

This commit is contained in:
Pol Dellaiera
2022-01-04 15:29:17 +01:00
parent c8c5af8d14
commit acf7142bad
3 changed files with 29 additions and 19 deletions

View File

@@ -212,7 +212,10 @@ class PersonJsonNormalizer implements
return $altNames
->map(
static function (PersonAltName $personAltName): array {
return ['key' => $personAltName->getKey(), 'label' => $personAltName->getLabel()];
return [
'key' => $personAltName->getKey(),
'label' => $personAltName->getLabel(),
];
}
)
->toArray();