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

@@ -215,11 +215,13 @@ class AccompanyingPeriodContext implements
$thirdParties = array_merge(
array_filter([$entity->getRequestorThirdParty()]),
array_filter(array_map(
array_filter(
array_map(
fn (Resource $r): ?ThirdParty => $r->getThirdParty(),
$entity->getResources()->filter(
static fn (Resource $r): bool => null !== $r->getThirdParty()
)->toArray())
)->toArray()
)
)
);