@@ -28,7 +28,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |