@@ -123,13 +123,13 @@ discard block |
||
| 123 | 123 | protected function setSwooleServerListeners() |
| 124 | 124 | { |
| 125 | 125 | $server = $this->container->make(Server::class); |
| 126 | - if ($server->taskworker){ |
|
| 126 | + if ($server->taskworker) { |
|
| 127 | 127 | return; |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | foreach ($this->events as $event) { |
| 131 | 131 | $listener = Str::camel("on_$event"); |
| 132 | - $callback = method_exists($this, $listener) ? [$this, $listener] : function () use ($event) { |
|
| 132 | + $callback = method_exists($this, $listener) ? [$this, $listener] : function() use ($event) { |
|
| 133 | 133 | $this->container->make('events')->dispatch("swoole.$event", func_get_args()); |
| 134 | 134 | }; |
| 135 | 135 | |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | */ |
| 327 | 327 | protected function bindSandbox() |
| 328 | 328 | { |
| 329 | - $this->app->singleton(Sandbox::class, function ($app) { |
|
| 329 | + $this->app->singleton(Sandbox::class, function($app) { |
|
| 330 | 330 | return new Sandbox($app, $this->framework); |
| 331 | 331 | }); |
| 332 | 332 | |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | */ |
| 415 | 415 | protected function normalizeException(Throwable $e) |
| 416 | 416 | { |
| 417 | - if (! $e instanceof Exception) { |
|
| 417 | + if (!$e instanceof Exception) { |
|
| 418 | 418 | $e = new FatalThrowableError($e); |
| 419 | 419 | } |
| 420 | 420 | |