diff --git a/src/Bundle/ChillActivityBundle/Export/Filter/UserScopeFilter.php b/src/Bundle/ChillActivityBundle/Export/Filter/UserScopeFilter.php index ec87ce954..d33ae1a10 100644 --- a/src/Bundle/ChillActivityBundle/Export/Filter/UserScopeFilter.php +++ b/src/Bundle/ChillActivityBundle/Export/Filter/UserScopeFilter.php @@ -59,9 +59,10 @@ class UserScopeFilter implements FilterInterface ->andWhere( $qb->expr()->in("{$p}_history.scope", ":{$p}_scopes") ) - ->setParameters([ - "{$p}_scopes" => $data["scopes"], - ]); + ->setParameter( + "{$p}_scopes", + $data["scopes"], + ); } public function applyOn(): string diff --git a/src/Bundle/ChillActivityBundle/Export/Filter/UsersJobFilter.php b/src/Bundle/ChillActivityBundle/Export/Filter/UsersJobFilter.php index b49397521..d787f30ea 100644 --- a/src/Bundle/ChillActivityBundle/Export/Filter/UsersJobFilter.php +++ b/src/Bundle/ChillActivityBundle/Export/Filter/UsersJobFilter.php @@ -51,9 +51,10 @@ class UsersJobFilter implements FilterInterface . "AND {$p}_history.job IN ( :{$p}_jobs )" ) ) - ->setParameters([ - "{$p}_jobs" => $data["jobs"], - ]); + ->setParameter( + "{$p}_jobs", + $data["jobs"] + ); } public function applyOn() diff --git a/src/Bundle/ChillActivityBundle/Export/Filter/UsersScopeFilter.php b/src/Bundle/ChillActivityBundle/Export/Filter/UsersScopeFilter.php index 3391f92cf..a1bcb958b 100644 --- a/src/Bundle/ChillActivityBundle/Export/Filter/UsersScopeFilter.php +++ b/src/Bundle/ChillActivityBundle/Export/Filter/UsersScopeFilter.php @@ -53,9 +53,10 @@ class UsersScopeFilter implements FilterInterface . "AND {$p}_history.scope IN ( :{$p}_scopes )" ) ) - ->setParameters([ - "{$p}_scopes" => $data["scopes"], - ]); + ->setParameter( + "{$p}_scopes", + $data["scopes"] + ); } public function applyOn(): string diff --git a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserJobFilter.php b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserJobFilter.php index d76d6d126..69aaa376f 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserJobFilter.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserJobFilter.php @@ -51,9 +51,10 @@ class ByUserJobFilter implements FilterInterface . "AND {$p}_history.job IN ( :{$p}_jobs )" ) ) - ->setParameters([ - "{$p}_jobs" => $data["jobs"], - ]); + ->setParameter( + "{$p}_jobs", + $data["jobs"], + ); } public function applyOn(): string diff --git a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserScopeFilter.php b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserScopeFilter.php index 7df450bde..bcaabdcea 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserScopeFilter.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserScopeFilter.php @@ -53,9 +53,10 @@ class ByUserScopeFilter implements FilterInterface . "AND {$p}_history.scope IN ( :{$p}_scopes )" ) ) - ->setParameters([ - "{$p}_scopes" => $data["scopes"], - ]); + ->setParameter( + "{$p}_scopes", + $data["scopes"], + ); } public function applyOn(): string diff --git a/src/Bundle/ChillCalendarBundle/Export/Filter/JobFilter.php b/src/Bundle/ChillCalendarBundle/Export/Filter/JobFilter.php index 1b666019b..93def5631 100644 --- a/src/Bundle/ChillCalendarBundle/Export/Filter/JobFilter.php +++ b/src/Bundle/ChillCalendarBundle/Export/Filter/JobFilter.php @@ -22,13 +22,12 @@ use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Contracts\Translation\TranslatorInterface; -class JobFilter implements FilterInterface +final readonly class JobFilter implements FilterInterface { private const PREFIX = 'cal_filter_job'; public function __construct( - protected TranslatorInterface $translator, - private readonly TranslatableStringHelper $translatableStringHelper + private TranslatableStringHelper $translatableStringHelper ) {} public function addRole(): ?string @@ -59,9 +58,10 @@ class JobFilter implements FilterInterface ) ) ->andWhere($qb->expr()->in("{$p}_history.job", ":{$p}_job")) - ->setParameters([ - "{$p}_job" => $data["job"], - ]); + ->setParameter( + "{$p}_job", + $data["job"] + ); } diff --git a/src/Bundle/ChillCalendarBundle/Export/Filter/ScopeFilter.php b/src/Bundle/ChillCalendarBundle/Export/Filter/ScopeFilter.php index 61ec8d50d..e04bd922b 100644 --- a/src/Bundle/ChillCalendarBundle/Export/Filter/ScopeFilter.php +++ b/src/Bundle/ChillCalendarBundle/Export/Filter/ScopeFilter.php @@ -59,9 +59,10 @@ class ScopeFilter implements FilterInterface ) ) ->andWhere($qb->expr()->in("{$p}_history.scope", ":{$p}_scope")) - ->setParameters([ - "{$p}_scope" => $data["scope"], - ]); + ->setParameter( + "{$p}_scope", + $data["scope"] + ); } public function applyOn(): string diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/CreatorJobFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/CreatorJobFilter.php index 7053654df..10467f911 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/CreatorJobFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/CreatorJobFilter.php @@ -72,9 +72,10 @@ class CreatorJobFilter implements FilterInterface ) ) ->andWhere($qb->expr()->in("{$p}_history.job", ":{$p}_jobs")) - ->setParameters([ - "{$p}_jobs" => $data["creator_job"], - ]); + ->setParameter( + "{$p}_jobs", + $data["creator_job"], + ); } public function applyOn(): string diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/JobWorkingOnCourseFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/JobWorkingOnCourseFilter.php index 393a726fc..7024d837d 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/JobWorkingOnCourseFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/JobWorkingOnCourseFilter.php @@ -63,11 +63,15 @@ readonly class JobWorkingOnCourseFilter implements FilterInterface . "AND {$p}_info.infoDate >= :{$p}_start and {$p}_info.infoDate < :{$p}_end" ) ) - ->setParameters([ - "{$p}_jobs" => $data['jobs'], - "{$p}_start" => $this->rollingDateConverter->convert($data['start_date']), - "{$p}_end" => $this->rollingDateConverter->convert($data['end_date']) - ]) + ->setParameter("{$p}_jobs", $data['jobs']) + ->setParameter( + "{$p}_start", + $this->rollingDateConverter->convert($data['start_date']), + ) + ->setParameter( + "{$p}_end", + $this->rollingDateConverter->convert($data['end_date']) + ) ; } diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ScopeWorkingOnCourseFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ScopeWorkingOnCourseFilter.php index 97f592c3d..491122968 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ScopeWorkingOnCourseFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ScopeWorkingOnCourseFilter.php @@ -63,11 +63,15 @@ readonly class ScopeWorkingOnCourseFilter implements FilterInterface . "AND {$p}_info.infoDate >= :{$p}_start AND {$p}_info.infoDate < :{$p}_end" ) ) - ->setParameters([ - "{$p}_scopes" => $data["scopes"], - "{$p}_start" => $this->rollingDateConverter->convert($data["start_date"]), - "{$p}_end" => $this->rollingDateConverter->convert($data["end_date"]) - ]) + ->setParameter("{$p}_scopes", $data["scopes"]) + ->setParameter( + "{$p}_start", + $this->rollingDateConverter->convert($data["start_date"]), + ) + ->setParameter( + "{$p}_end", + $this->rollingDateConverter->convert($data["end_date"]) + ) ; } diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserJobFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserJobFilter.php index 04d1b2cb8..dc55fd454 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserJobFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserJobFilter.php @@ -72,9 +72,10 @@ class UserJobFilter implements FilterInterface ) ) ->andWhere($qb->expr()->in("{$p}_jobHistory.job", ":{$p}_job")) - ->setParameters([ - "{$p}_job" => $data["jobs"], - ]) + ->setParameter( + "{$p}_job", + $data["jobs"], + ) ; } diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserScopeFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserScopeFilter.php index 2abad7823..3e53f49f1 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserScopeFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserScopeFilter.php @@ -72,9 +72,10 @@ class UserScopeFilter implements FilterInterface ) ) ->andWhere($qb->expr()->in("{$p}_scopeHistory.scope", ":{$p}_scopes")) - ->setParameters([ - "{$p}_scopes" => $data["scopes"], - ]) + ->setParameter( + "{$p}_scopes", + $data["scopes"], + ) ; }