Passed
Push — master ( 4b36f5...3b4cd1 )
by CodexShaper
71:50 queued 63:17
created
app/Http/Middleware/AuthMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
                         $request->merge(['scopes' => $psr->getAttribute('oauth_scopes')]);
65 65
 
66 66
                         $request->setUserResolver(
67
-                            function () use ($user) {
67
+                            function() use ($user) {
68 68
                                 return $user;
69 69
                             }
70 70
                         );
Please login to merge, or discard this patch.
app/Post.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         parent::boot();
80 80
         static::addGlobalScope(
81 81
             'type',
82
-            function (Builder $builder) {
82
+            function(Builder $builder) {
83 83
                 $builder->where('post_type', '=', static::$type_scope);
84 84
             }
85 85
         );
Please login to merge, or discard this patch.
database/migrations/class-create-customers-table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         Schema::create(
30 30
             'customers',
31
-            function (Blueprint $table) {
31
+            function(Blueprint $table) {
32 32
                 $table->id();
33 33
                 $table->string('name');
34 34
                 $table->string('email')->unique();
Please login to merge, or discard this patch.
routes/api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
 $router->get(
16 16
     'test',
17
-    function (Request $request) {
17
+    function(Request $request) {
18 18
         echo 'API Test';
19 19
         die();
20 20
     }
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
 $router->get(
16 16
     'test',
17
-    function () {
17
+    function() {
18 18
         echo wpb_view('welcome');
19 19
         die();
20 20
     }
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
 Route::get(
24 24
     'test/facade',
25
-    function (Request $request) {
25
+    function(Request $request) {
26 26
         echo 'This is a facade route';
27 27
         die();
28 28
     }
Please login to merge, or discard this patch.
bootstrap/app.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
 
12 12
 use WPB\Application;
13 13
 
14
-$app = ( new Application(
14
+$app = (new Application(
15 15
     [
16 16
         'paths' => [
17 17
             'root' => WPB_APP_ROOT,
18 18
         ],
19 19
     ]
20
-) );
20
+));
21 21
 
22 22
 global $wpb_app;
23 23
 
Please login to merge, or discard this patch.
src/Http/Kernel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
         $this->bootstrap();
137 137
 
138
-        return ( new Pipeline($this->app) )
138
+        return (new Pipeline($this->app))
139 139
                     ->send($request)
140 140
                     ->through($this->middleware)
141 141
                     ->then($this->dispatch_to_router());
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      */
158 158
     protected function dispatch_to_router()
159 159
     {
160
-        return function ($request) {
160
+        return function($request) {
161 161
             $this->app->instance('request', $request);
162 162
 
163 163
             return $this->router->dispatch($request);
Please login to merge, or discard this patch.
src/Application.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     {
155 155
         $this->app->bind(
156 156
             'config',
157
-            function () {
157
+            function() {
158 158
                 return [
159 159
                     'app'           => $this->config->get('app'),
160 160
                     'view.paths'    => $this->config->get('view.paths'),
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 
194 194
         $this->app->singleton(
195 195
             'db',
196
-            function () {
196
+            function() {
197 197
                 return $this->db;
198 198
             }
199 199
         );
@@ -228,14 +228,14 @@  discard block
 block discarded – undo
228 228
     {
229 229
         $this->app->bind(
230 230
             'request',
231
-            function ($app) {
231
+            function($app) {
232 232
                 $request = Request::capture();
233 233
                 $wp_user = wp_get_current_user();
234 234
                 if ($wp_user) {
235 235
                     $user = User::find($wp_user->ID);
236 236
                     $request->merge(['user' => $user]);
237 237
                     $request->setUserResolver(
238
-                        function () use ($user) {
238
+                        function() use ($user) {
239 239
                             return $user;
240 240
                         }
241 241
                     );
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 
284 284
         $router->group(
285 285
             ['prefix' => 'api'],
286
-            function () use ($dir, $router) {
286
+            function() use ($dir, $router) {
287 287
                 require $dir.'api.php';
288 288
             }
289 289
         );
Please login to merge, or discard this patch.
src/Exceptions/Handler.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
         return !is_null(
167 167
             Arr::first(
168 168
                 $dont_report,
169
-                function ($type) use ($e) {
169
+                function($type) use ($e) {
170 170
                     return $e instanceof $type;
171 171
                 }
172 172
             )
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
     {
398 398
         return tap(
399 399
             new Whoops(),
400
-            function ($whoops) {
400
+            function($whoops) {
401 401
                 $whoops->appendHandler($this->whoops_handler());
402 402
 
403 403
                 $whoops->writeToOutput(false);
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
         try {
418 418
             return $this->container(HandlerInterface::class);
419 419
         } catch (BindingResolutionException $e) {
420
-            return ( new WhoopsHandler() )->forDebug();
420
+            return (new WhoopsHandler())->forDebug();
421 421
         }
422 422
     }
423 423
 
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
         View::replaceNamespace(
476 476
             'errors',
477 477
             $paths->map(
478
-                function ($path) {
478
+                function($path) {
479 479
                     return "{$path}/errors";
480 480
                 }
481 481
             )->push(__DIR__.'/views')->all()
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
             'file'      => $e->getFile(),
555 555
             'line'      => $e->getLine(),
556 556
             'trace'     => collect($e->getTrace())->map(
557
-                function ($trace) {
557
+                function($trace) {
558 558
                     return Arr::except($trace, ['args']);
559 559
                 }
560 560
             )->all(),
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
      */
574 574
     public function render_for_console($output, Throwable $e)
575 575
     {
576
-        ( new ConsoleApplication() )->renderThrowable($e, $output);
576
+        (new ConsoleApplication())->renderThrowable($e, $output);
577 577
     }
578 578
 
579 579
     /**
Please login to merge, or discard this patch.