@@ -3,6 +3,6 @@ |
||
3 | 3 | use Illuminate\Support\Facades\Route; |
4 | 4 | use Lenius\LaravelEcommerce\Controllers\EcommerceController; |
5 | 5 | |
6 | -Route::group(['middleware' => ['web']], function () { |
|
6 | +Route::group(['middleware' => ['web']], function() { |
|
7 | 7 | EcommerceController::routes(); |
8 | 8 | }); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | { |
45 | 45 | $cart = &static::$cart[$this->id]; |
46 | 46 | |
47 | - if (! $asArray) { |
|
47 | + if (!$asArray) { |
|
48 | 48 | return $cart; |
49 | 49 | } |
50 | 50 | |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | { |
149 | 149 | $this->id = $identifier; |
150 | 150 | |
151 | - if (! array_key_exists($this->id, static::$cart)) { |
|
151 | + if (!array_key_exists($this->id, static::$cart)) { |
|
152 | 152 | static::$cart[$this->id] = []; |
153 | 153 | } |
154 | 154 |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $this->loadMigrationsFrom(__DIR__.'/../databases/migrations'); |
25 | 25 | |
26 | 26 | if ($this->mustLoadRoute()) { |
27 | - Route::group($this->routeConfiguration(), function () { |
|
27 | + Route::group($this->routeConfiguration(), function() { |
|
28 | 28 | $this->loadRoutesFrom(__DIR__.'/routes.php'); |
29 | 29 | }); |
30 | 30 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | protected function mustLoadRoute() |
34 | 34 | { |
35 | - return ! config('ecommerce.disable_default_route', false); |
|
35 | + return !config('ecommerce.disable_default_route', false); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | protected function routeConfiguration() |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public function register() |
52 | 52 | { |
53 | - $this->app->singleton('basket', function () { |
|
53 | + $this->app->singleton('basket', function() { |
|
54 | 54 | return new Basket(new LaravelSession(), new LaravelCookie()); |
55 | 55 | }); |
56 | 56 | } |