We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0a46a9 commit 0811fa8Copy full SHA for 0811fa8
1 file changed
src/Model/Table/QueueProcessesTable.php
@@ -236,13 +236,12 @@ public function status(): array {
236
$timeout = Config::defaultworkertimeout();
237
$thresholdTime = (new DateTime())->subSeconds($timeout);
238
239
- $results = $this->find()
240
- ->where(['modified >' => $thresholdTime])
241
- ->orderByDesc('modified')
242
- ->enableHydration(false)
243
- ->all()
244
- ->toArray();
245
- /** @var array<array{modified: \Cake\I18n\DateTime}> $results */
+ $results = $this->find()
+ ->where(['modified >' => $thresholdTime])
+ ->orderByDesc('modified')
+ ->enableHydration(false)
+ ->all()
+ ->toArray();
246
247
if (!$results) {
248
return [];
0 commit comments