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

This commit is contained in:
nobohan 2023-05-25 10:15:22 +02:00
parent 6232dabae5
commit ad1b28ff11
3 changed files with 20 additions and 20 deletions

View File

@ -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()
) )
) )
); );

View File

@ -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()
) )
) )
); );

View File

@ -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()
) )
) )
); );