Passed
Push — master ( 338d1c...cf56cd )
by Biao
03:57
created
src/Components/Prometheus/CollectorProcess.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
                 'class'    => static::class,
22 22
                 'redirect' => false,
23 23
                 'pipe'     => 0,
24
-                'enable'   => (bool)config('prometheus.enable', true),
24
+                'enable'   => (bool) config('prometheus.enable', true),
25 25
             ],
26 26
         ];
27 27
     }
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $taskWorkerNum = isset($swoole->setting['task_worker_num']) ? $swoole->setting['task_worker_num'] : 0;
39 39
         $totalNum = $workerNum + $taskWorkerNum - 1;
40 40
         $workerIds = range(0, $totalNum);
41
-        $runJob = function () use ($swoole, $workerIds, $processCollector, $swooleStatsCollector, $systemCollector) {
41
+        $runJob = function() use ($swoole, $workerIds, $processCollector, $swooleStatsCollector, $systemCollector) {
42 42
             // Collect the metrics of Swoole stats()
43 43
             $swooleStatsCollector->collect();
44 44
 
Please login to merge, or discard this patch.