Passed
Pull Request — master (#174)
by Fractal
02:42
created
src/Coroutine/PDO.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@
 block discarded – undo
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 '?';
Please login to merge, or discard this patch.
src/LaravelServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Server/Sandbox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Server/Manager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.