Fix syntax error

This commit is contained in:
Mathieu Jaumotte 2023-09-27 16:48:27 +02:00
parent e4cf07c7b3
commit 4460db1dc4
6 changed files with 12 additions and 12 deletions

View File

@ -60,8 +60,8 @@ class JobFilter implements FilterInterface
"{$p}_history.startDate <= :{$p}_at AND ({$p}_history.endDate IS NULL OR {$p}_history.endDate > :{$p}_at)"
)
->setParameters([
["{$p}_job", $data["job"]],
["{$p}_at", $this->rollingDateConverter->convert($data["job_at"])]
"{$p}_job" => $data["job"],
"{$p}_at" => $this->rollingDateConverter->convert($data["job_at"])
])
;

View File

@ -57,8 +57,8 @@ class ScopeFilter implements FilterInterface
"{$p}_history.startDate <= :{$p}_at AND ({$p}_history.endDate IS NULL OR {$p}_history.endDate > :{$p}_at)"
)
->setParameters([
["{$p}_scope", $data["scope"]],
["{$p}_at", $this->rollingDateConverter->convert($data['scope_at'])]
"{$p}_scope" => $data["scope"],
"{$p}_at" => $this->rollingDateConverter->convert($data['scope_at'])
]);
}

View File

@ -75,8 +75,8 @@ class UserJobFilter implements FilterInterface
$qb->expr()->in("{$p}_jobHistory.job", ":{$p}_job")
)
->setParameters([
["{$p}_job", $data["jobs"]],
["{$p}_date", $this->rollingDateConverter->convert($data["date_calc"])]
"{$p}_job" => $data["jobs"],
"{$p}_date" => $this->rollingDateConverter->convert($data["date_calc"])
])
;
}

View File

@ -75,8 +75,8 @@ class UserScopeFilter implements FilterInterface
$qb->expr()->in("{$p}_scopeHistory.scope", ":{$p}_scopes")
)
->setParameters([
["{$p}_scopes", $data["scopes"]],
["{$p}_date", $this->rollingDateConverter->convert($data["date_calc"])]
"{$p}_scopes" => $data["scopes"],
"{$p}_date" => $this->rollingDateConverter->convert($data["date_calc"])
])
;
}

View File

@ -67,8 +67,8 @@ class JobFilter implements FilterInterface
$qb->expr()->in("{$p}_history.job", ":{$p}_job")
)
->setParameters([
["{$p}_job", $data["job"]],
["{$p}_at", $this->rollingDateConverter->convert($data['job_at'])]
"{$p}_job" => $data["job"],
"{$p}_at" => $this->rollingDateConverter->convert($data['job_at'])
]);
}

View File

@ -65,8 +65,8 @@ class ScopeFilter implements FilterInterface
$qb->expr()->in("{$p}_history.scope", ":{$p}_scope")
)
->setParameters([
["{$p}_scope", $data["scope"]],
["{$p}_at", $this->rollingDateConverter->convert($data['scope_at'])]
"{$p}_scope" => $data["scope"],
"{$p}_at" => $this->rollingDateConverter->convert($data['scope_at'])
]);
}