DX php cs fixer

This commit is contained in:
Julie Lenaerts 2023-07-12 20:30:31 +02:00
parent 7bee376718
commit 66e1047752

View File

@ -108,13 +108,11 @@ final class AccompanyingPeriodWorkRepository implements ObjectRepository
// implement filters // implement filters
if([] !== ($filters['types'] ?? [])) if([] !== ($filters['types'] ?? [])) {
{
$sql .= " AND w.socialaction_id IN (:types)"; $sql .= " AND w.socialaction_id IN (:types)";
} }
if([] !== ($filters['user'] ?? [])) if([] !== ($filters['user'] ?? [])) {
{
$sql .= " AND rw.user_id = :user"; $sql .= " AND rw.user_id = :user";
} }
@ -156,8 +154,8 @@ final class AccompanyingPeriodWorkRepository implements ObjectRepository
{ {
$in = $this->em->createQueryBuilder(); $in = $this->em->createQueryBuilder();
$in $in
->select('1') ->select('1')
->from(AccompanyingPeriodWork::class, 'apw'); ->from(AccompanyingPeriodWork::class, 'apw');
$in->andWhere('apw.accompanyingPeriod = :period')->setParameter('period', $period); $in->andWhere('apw.accompanyingPeriod = :period')->setParameter('period', $period);