Passed
Pull Request — master (#174)
by Fractal
02:42
created
src/Websocket/Middleware/Authenticate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     {
40 40
         try {
41 41
             if ($user = $this->auth->authenticate()) {
42
-                $request->setUserResolver(function () use ($user) {
42
+                $request->setUserResolver(function() use ($user) {
43 43
                     return $user;
44 44
                 });
45 45
             }
Please login to merge, or discard this patch.
src/LumenServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     protected function registerManager()
15 15
     {
16
-        $this->app->singleton('swoole.manager', function ($app) {
16
+        $this->app->singleton('swoole.manager', function($app) {
17 17
             return new Manager($app, 'lumen');
18 18
         });
19 19
     }
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
         $app = $this->app;
29 29
 
30 30
         if (property_exists($app, 'router')) {
31
-            $app->router->group(['namespace' => 'SwooleTW\Http\Controllers'], function ($app) {
31
+            $app->router->group(['namespace' => 'SwooleTW\Http\Controllers'], function($app) {
32 32
                 require __DIR__ . '/../routes/lumen_routes.php';
33 33
             });
34 34
         } else {
35
-            $app->group(['namespace' => 'App\Http\Controllers'], function ($app) {
35
+            $app->group(['namespace' => 'App\Http\Controllers'], function($app) {
36 36
                 require __DIR__ . '/../routes/lumen_routes.php';
37 37
             });
38 38
         }
Please login to merge, or discard this patch.
src/Task/Connectors/SwooleTaskConnector.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,12 +14,12 @@
 block discarded – undo
14 14
      */
15 15
     protected $swoole;
16 16
 
17
-     /**
18
-     * Create a new Swoole Async task connector instance.
19
-     *
20
-     * @param  \Swoole\Http\Server $swoole
21
-     * @return void
22
-     */
17
+        /**
18
+         * Create a new Swoole Async task connector instance.
19
+         *
20
+         * @param  \Swoole\Http\Server $swoole
21
+         * @return void
22
+         */
23 23
     public function __construct($swoole)
24 24
     {
25 25
         $this->swoole = $swoole;
Please login to merge, or discard this patch.
src/Server/Resetters/RebindRouterContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         if ($sandbox->isLaravel()) {
21 21
             $router = $app->make('router');
22 22
             $request = $sandbox->getRequest();
23
-            $closure = function () use ($app, $request) {
23
+            $closure = function() use ($app, $request) {
24 24
                 $this->container = $app;
25 25
                 if (is_null($request)) {
26 26
                     return;
Please login to merge, or discard this patch.
src/Server/Resetters/ResetProviders.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     protected function rebindProviderContainer($app, $provider)
36 36
     {
37
-        $closure = function () use ($app) {
37
+        $closure = function() use ($app) {
38 38
             $this->app = $app;
39 39
         };
40 40
 
Please login to merge, or discard this patch.
src/Server/Resetters/RebindKernelContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         if ($sandbox->isLaravel()) {
21 21
             $kernel = $app->make(Kernel::class);
22 22
 
23
-            $closure = function () use ($app) {
23
+            $closure = function() use ($app) {
24 24
                 $this->app = $app;
25 25
             };
26 26
 
Please login to merge, or discard this patch.
src/Server/Resetters/RebindViewContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     {
19 19
         $view = $app->make('view');
20 20
 
21
-        $closure = function () use ($app) {
21
+        $closure = function() use ($app) {
22 22
             $this->container = $app;
23 23
             $this->shared['app'] = $app;
24 24
         };
Please login to merge, or discard this patch.
copy_versioned_files.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require __DIR__.'/vendor/autoload.php';
3
+require __DIR__ . '/vendor/autoload.php';
4 4
 
5 5
 use SwooleTW\Http\Coroutine\Connectors\ConnectorFactory;
6 6
 use SwooleTW\Http\Helpers\FW;
Please login to merge, or discard this patch.
src/HttpServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      */
148 148
     protected function registerServer()
149 149
     {
150
-        $this->app->singleton(Server::class, function () {
150
+        $this->app->singleton(Server::class, function() {
151 151
             if (is_null(static::$server)) {
152 152
                 $this->createSwooleServer();
153 153
                 $this->configureSwooleServer();
@@ -163,10 +163,10 @@  discard block
 block discarded – undo
163 163
      */
164 164
     protected function registerDatabaseDriver()
165 165
     {
166
-        $this->app->resolving('db', function ($db) {
167
-            $db->extend('mysql-coroutine', function ($config, $name) {
166
+        $this->app->resolving('db', function($db) {
167
+            $db->extend('mysql-coroutine', function($config, $name) {
168 168
                 $config['name'] = $name;
169
-                $connection = function () use ($config) {
169
+                $connection = function() use ($config) {
170 170
                     return ConnectorFactory::make(FW::version())->connect($config);
171 171
                 };
172 172
 
@@ -185,8 +185,8 @@  discard block
 block discarded – undo
185 185
      */
186 186
     protected function registerSwooleQueueDriver()
187 187
     {
188
-        $this->app->afterResolving('queue', function ($manager) {
189
-            $manager->addConnector('swoole', function () {
188
+        $this->app->afterResolving('queue', function($manager) {
189
+            $manager->addConnector('swoole', function() {
190 190
                 return new SwooleTaskConnector($this->app->make(Server::class));
191 191
             });
192 192
         });
Please login to merge, or discard this patch.