Passed
Push — master ( 0f4629...a663f6 )
by Biao
11:20
created
src/Swoole/Task/BaseTask.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         if ($delay < 0) {
29 29
             throw new \InvalidArgumentException('The delay must be greater than or equal to 0');
30 30
         }
31
-        $this->delay = (int)$delay;
31
+        $this->delay = (int) $delay;
32 32
         return $this;
33 33
     }
34 34
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         if ($tries < 1) {
52 52
             throw new \InvalidArgumentException('The number of attempts must be greater than or equal to 1');
53 53
         }
54
-        $this->tries = (int)$tries;
54
+        $this->tries = (int) $tries;
55 55
         return $this;
56 56
     }
57 57
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     {
74 74
         static $dispatch;
75 75
         if (!$dispatch) {
76
-            $dispatch = static function ($task) {
76
+            $dispatch = static function($task) {
77 77
                 /**@var \Swoole\Http\Server $swoole */
78 78
                 $swoole = app('swoole');
79 79
                 // The worker_id of timer process is -1
Please login to merge, or discard this patch.