mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 07:33:50 +00:00
Feature: add thirdParty choice in docgen accperiodworkevaluation context - phpcs fix
This commit is contained in:
@@ -123,13 +123,14 @@ class AccompanyingPeriodWorkEvaluationContext implements
|
||||
$thirdParties = array_merge(
|
||||
array_filter($entity->getAccompanyingPeriodWork()->getThirdParties()->toArray()),
|
||||
array_filter([$entity->getAccompanyingPeriodWork()->getHandlingThierParty()]),
|
||||
array_filter(array_map(
|
||||
array_filter(
|
||||
array_map(
|
||||
fn (Resource $r): ?ThirdParty => $r->getThirdParty(),
|
||||
$entity->getAccompanyingPeriodWork()->getAccompanyingPeriod()->getResources()->filter(
|
||||
static fn (Resource $r): bool => null !== $r->getThirdParty()
|
||||
)->toArray())
|
||||
)->toArray()
|
||||
)
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
$options = $template->getOptions();
|
||||
@@ -145,9 +146,6 @@ class AccompanyingPeriodWorkEvaluationContext implements
|
||||
'placeholder' => $this->translator->trans('Any third party selected'),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function getData(DocGeneratorTemplate $template, $entity, array $contextGenerationData = []): array
|
||||
|
Reference in New Issue
Block a user