@@ -35,7 +35,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -29,7 +29,7 @@ |
||
| 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 | } |