@@ -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 | |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | if (request()->hasCookie('cart_identifier')) { |
| 20 | 20 | $cookie = request()->cookie('cart_identifier'); |
| 21 | 21 | |
| 22 | - if (is_string($cookie) && ! empty($cookie)) { |
|
| 22 | + if (is_string($cookie) && !empty($cookie)) { |
|
| 23 | 23 | return $cookie; |
| 24 | 24 | } |
| 25 | 25 | } |
@@ -3,6 +3,6 @@ |
||
| 3 | 3 | use Illuminate\Support\Facades\Route; |
| 4 | 4 | use Lenius\LaravelEcommerce\Http\Controllers\EcommerceController; |
| 5 | 5 | |
| 6 | -Route::group(['middleware' => ['web']], function () { |
|
| 6 | +Route::group(['middleware' => ['web']], function() { |
|
| 7 | 7 | EcommerceController::routes(); |
| 8 | 8 | }); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'ecommerce'); |
| 38 | 38 | |
| 39 | 39 | if ($this->mustLoadRoute()) { |
| 40 | - Route::group($this->routeConfiguration(), function () { |
|
| 40 | + Route::group($this->routeConfiguration(), function() { |
|
| 41 | 41 | $this->loadRoutesFrom(__DIR__.'/routes.php'); |
| 42 | 42 | }); |
| 43 | 43 | } |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | protected function mustLoadRoute(): bool |
| 47 | 47 | { |
| 48 | - return ! config('ecommerce.disable_default_route', false); |
|
| 48 | + return !config('ecommerce.disable_default_route', false); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | protected function routeConfiguration(): array |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function register() |
| 65 | 65 | { |
| 66 | - $this->app->singleton('basket', function () { |
|
| 66 | + $this->app->singleton('basket', function() { |
|
| 67 | 67 | return new Basket(new LaravelSession(), new LaravelCookie()); |
| 68 | 68 | }); |
| 69 | 69 | } |