Feature: add thirdParty choice in docgen accperiodworkevaluation context - phpcs fix

This commit is contained in:
nobohan
2023-05-25 09:59:16 +02:00
parent 303666b30d
commit ef59e6dc1c
6 changed files with 18 additions and 16 deletions

View File

@@ -177,18 +177,21 @@ final class PersonContext implements PersonContextInterface
]);
$thirdParties = array_merge(
array_filter(array_map(
array_filter(
array_map(
fn (ResidentialAddress $r): ?ThirdParty => $r->getHostThirdParty(),
$this
->residentialAddressRepository
->findCurrentResidentialAddressByPerson($entity)
)
)
),
array_filter(array_map(
array_filter(
array_map(
fn (PersonResource $r): ?ThirdParty => $r->getThirdParty(),
$entity->getResources()->filter(
static fn (PersonResource $r): bool => null !== $r->getThirdParty()
)->toArray())
)->toArray()
)
)
);