mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
DX php cs fixer
This commit is contained in:
parent
7bee376718
commit
66e1047752
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user