@@ -60,13 +60,13 @@ |
||
60 | 60 | $methodName = $request->get('method'); |
61 | 61 | |
62 | 62 | $jobManager = $this->get('dtc_queue.job_manager'); |
63 | - $callback = function ($count) { |
|
63 | + $callback = function($count) { |
|
64 | 64 | echo json_encode(['count' => $count]); |
65 | 65 | echo "\n"; |
66 | 66 | flush(); |
67 | 67 | }; |
68 | 68 | |
69 | - return new StreamedResponse(function () use ($jobManager, $callback, $workerName, $methodName) { |
|
69 | + return new StreamedResponse(function() use ($jobManager, $callback, $workerName, $methodName) { |
|
70 | 70 | $total = $jobManager->countLiveJobs($workerName, $methodName); |
71 | 71 | echo json_encode(['total' => $total]); |
72 | 72 | echo "\n"; |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $total += count($this->jobs[$jobWorkerName]); |
37 | 37 | } |
38 | 38 | |
39 | - return array_sum(array_map(function ($jobs) { |
|
39 | + return array_sum(array_map(function($jobs) { |
|
40 | 40 | return count($jobs); |
41 | 41 | }, $this->jobs)); |
42 | 42 | } |
@@ -286,7 +286,7 @@ |
||
286 | 286 | self::assertEquals(1, $count); |
287 | 287 | $allCount = $this->runCountQuery($jobManager->getJobClass()); |
288 | 288 | $counter = 0; |
289 | - $countJobs = function ($count) use (&$counter) { |
|
289 | + $countJobs = function($count) use (&$counter) { |
|
290 | 290 | $counter += $count; |
291 | 291 | }; |
292 | 292 | $jobManager->archiveAllJobs(null, null, $countJobs); |