Completed
Pull Request — master (#40)
by Matthew
07:31
created
Command/CountCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         $firstJob = key($status);
27 27
         if ($firstJob) {
28 28
             $jobKeys = array_keys($status);
29
-            $maxLength = max(array_map(function ($item) {
29
+            $maxLength = max(array_map(function($item) {
30 30
                 return strlen($item ?: '');
31 31
             }, $jobKeys));
32 32
             $formatLen = $maxLength > 50 ? 50 : $maxLength;
Please login to merge, or discard this patch.
Controller/QueueController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $workerName = $request->get('workerName');
129 129
         $methodName = $request->get('method');
130 130
         $total = null;
131
-        $callback = function ($count, $totalCount) use (&$total) {
131
+        $callback = function($count, $totalCount) use (&$total) {
132 132
             if (null !== $totalCount && null === $total) {
133 133
                 $total = $totalCount;
134 134
                 echo json_encode(['total' => $total]);
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             flush();
143 143
         };
144 144
 
145
-        return function () use ($jobManager, $callback, $workerName, $methodName, $functionName, &$total) {
145
+        return function() use ($jobManager, $callback, $workerName, $methodName, $functionName, &$total) {
146 146
             switch ($functionName) {
147 147
                 case 'archiveAllJobs':
148 148
                     $total = $jobManager->countLiveJobs($workerName, $methodName);
Please login to merge, or discard this patch.