mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Feature: add thirdParty choice in docgen accperiodworkevaluation context - phpcs fix again
This commit is contained in:
parent
6232dabae5
commit
ad1b28ff11
@ -217,11 +217,11 @@ class AccompanyingPeriodContext implements
|
|||||||
array_filter([$entity->getRequestorThirdParty()]),
|
array_filter([$entity->getRequestorThirdParty()]),
|
||||||
array_filter(
|
array_filter(
|
||||||
array_map(
|
array_map(
|
||||||
fn (Resource $r): ?ThirdParty => $r->getThirdParty(),
|
fn (Resource $r): ?ThirdParty => $r->getThirdParty(),
|
||||||
$entity->getResources()->filter(
|
$entity->getResources()->filter(
|
||||||
static fn (Resource $r): bool => null !== $r->getThirdParty()
|
static fn (Resource $r): bool => null !== $r->getThirdParty()
|
||||||
)->toArray()
|
)->toArray()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -121,11 +121,11 @@ class AccompanyingPeriodWorkEvaluationContext implements
|
|||||||
array_filter([$entity->getAccompanyingPeriodWork()->getHandlingThierParty()]),
|
array_filter([$entity->getAccompanyingPeriodWork()->getHandlingThierParty()]),
|
||||||
array_filter(
|
array_filter(
|
||||||
array_map(
|
array_map(
|
||||||
fn (Resource $r): ?ThirdParty => $r->getThirdParty(),
|
fn (Resource $r): ?ThirdParty => $r->getThirdParty(),
|
||||||
$entity->getAccompanyingPeriodWork()->getAccompanyingPeriod()->getResources()->filter(
|
$entity->getAccompanyingPeriodWork()->getAccompanyingPeriod()->getResources()->filter(
|
||||||
static fn (Resource $r): bool => null !== $r->getThirdParty()
|
static fn (Resource $r): bool => null !== $r->getThirdParty()
|
||||||
)->toArray()
|
)->toArray()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -179,19 +179,19 @@ final class PersonContext implements PersonContextInterface
|
|||||||
$thirdParties = array_merge(
|
$thirdParties = array_merge(
|
||||||
array_filter(
|
array_filter(
|
||||||
array_map(
|
array_map(
|
||||||
fn (ResidentialAddress $r): ?ThirdParty => $r->getHostThirdParty(),
|
fn (ResidentialAddress $r): ?ThirdParty => $r->getHostThirdParty(),
|
||||||
$this
|
$this
|
||||||
->residentialAddressRepository
|
->residentialAddressRepository
|
||||||
->findCurrentResidentialAddressByPerson($entity)
|
->findCurrentResidentialAddressByPerson($entity)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
array_filter(
|
array_filter(
|
||||||
array_map(
|
array_map(
|
||||||
fn (PersonResource $r): ?ThirdParty => $r->getThirdParty(),
|
fn (PersonResource $r): ?ThirdParty => $r->getThirdParty(),
|
||||||
$entity->getResources()->filter(
|
$entity->getResources()->filter(
|
||||||
static fn (PersonResource $r): bool => null !== $r->getThirdParty()
|
static fn (PersonResource $r): bool => null !== $r->getThirdParty()
|
||||||
)->toArray()
|
)->toArray()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user