Skip to content

Commit 9802cd1

Browse files
committed
Restore compact() for matching view vars
1 parent e852801 commit 9802cd1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Controller/Admin/QueueController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public function processes() {
249249
$terminated = $QueueProcesses->find()->where(['terminate' => true])->all()->toArray();
250250
$key = $QueueProcesses->buildServerString();
251251

252-
$this->set(['terminated' => $terminated, 'processes' => $processes, 'key' => $key]);
252+
$this->set(compact('terminated', 'processes', 'key'));
253253
}
254254

255255
/**

src/Controller/Admin/QueuedJobsController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function stats(): void {
112112
keyField: 'job_task',
113113
valueField: 'job_task',
114114
)->distinct('job_task')->toArray();
115-
$this->set(['stats' => $stats, 'jobTypes' => $jobTypes, 'jobType' => $jobType]);
115+
$this->set(compact('stats', 'jobTypes', 'jobType'));
116116
}
117117

118118
/**
@@ -153,7 +153,7 @@ public function heatmap(): void {
153153
valueField: 'job_task',
154154
)->distinct('job_task')->toArray();
155155

156-
$this->set(['heatmapData' => $heatmapData, 'jobTypes' => $jobTypes, 'jobType' => $jobType, 'metric' => $metric, 'days' => $days]);
156+
$this->set(compact('heatmapData', 'jobTypes', 'jobType', 'metric', 'days'));
157157
}
158158

159159
/**
@@ -440,7 +440,7 @@ public function test() {
440440
$this->Flash->error(__d('queue', 'The job could not be queued. Please try again.'));
441441
}
442442

443-
$this->set(['tasks' => $tasks, 'queuedJob' => $queuedJob]);
443+
$this->set(compact('tasks', 'queuedJob'));
444444
}
445445

446446
/**

0 commit comments

Comments
 (0)