@@ -253,7 +253,7 @@ |
||
253 | 253 | if (strpos($statement, ':') !== false) { |
254 | 254 | $i = 0; |
255 | 255 | $bindKeyMap = []; |
256 | - $statement = preg_replace_callback('/:(\w+)\b/', function ($matches) use (&$i, &$bindKeyMap) { |
|
256 | + $statement = preg_replace_callback('/:(\w+)\b/', function($matches) use (&$i, &$bindKeyMap) { |
|
257 | 257 | $bindKeyMap[$matches[1]] = $i++; |
258 | 258 | |
259 | 259 | return '?'; |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | protected function registerManager() |
19 | 19 | { |
20 | - $this->app->singleton('swoole.manager', function ($app) { |
|
20 | + $this->app->singleton('swoole.manager', function($app) { |
|
21 | 21 | return new Manager($app, 'laravel'); |
22 | 22 | }); |
23 | 23 | } |
@@ -229,7 +229,7 @@ |
||
229 | 229 | } else if ($response instanceof SymfonyResponse) { |
230 | 230 | $content = $response->getContent(); |
231 | 231 | } else if (!$isFile = $response instanceof BinaryFileResponse) { |
232 | - $content = (string)$response; |
|
232 | + $content = (string) $response; |
|
233 | 233 | } |
234 | 234 | |
235 | 235 | // process terminating logics |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | { |
105 | 105 | foreach ($this->events as $event) { |
106 | 106 | $listener = Str::camel("on_$event"); |
107 | - $callback = method_exists($this, $listener) ? [$this, $listener] : function () use ($event) { |
|
107 | + $callback = method_exists($this, $listener) ? [$this, $listener] : function() use ($event) { |
|
108 | 108 | $this->container->make('events')->fire("swoole.$event", func_get_args()); |
109 | 109 | }; |
110 | 110 | |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | */ |
300 | 300 | protected function bindSandbox() |
301 | 301 | { |
302 | - $this->app->singleton(Sandbox::class, function ($app) { |
|
302 | + $this->app->singleton(Sandbox::class, function($app) { |
|
303 | 303 | return new Sandbox($app, $this->framework); |
304 | 304 | }); |
305 | 305 |