Passed
Push — main ( 06f4a1...94bef5 )
by Carsten
03:51
created
src/EcommerceServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $this->loadViewsFrom(__DIR__.'/../resources/views', 'ecommerce');
36 36
 
37 37
         if ($this->mustLoadRoute()) {
38
-            Route::group($this->routeConfiguration(), function () {
38
+            Route::group($this->routeConfiguration(), function() {
39 39
                 $this->loadRoutesFrom(__DIR__.'/routes.php');
40 40
             });
41 41
         }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     protected function mustLoadRoute(): bool
45 45
     {
46
-        return ! config('ecommerce.disable_default_route', false);
46
+        return !config('ecommerce.disable_default_route', false);
47 47
     }
48 48
 
49 49
     protected function routeConfiguration(): array
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function register(): void
63 63
     {
64
-        $this->app->singleton('cart', function () {
64
+        $this->app->singleton('cart', function() {
65 65
             return new Cart(new LaravelSession(), new LaravelCookie(), resolve('events'));
66 66
         });
67 67
     }
Please login to merge, or discard this patch.
src/Http/Controllers/EcommerceController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $router->get('cart/{id}/remove', [self::class, 'remove'])->name('ecommerce.cart.item.remove');
30 30
     }
31 31
 
32
-    public function index(): Factory|View|Application
32
+    public function index(): Factory | View | Application
33 33
     {
34 34
         return view('ecommerce::cart');
35 35
     }
Please login to merge, or discard this patch.