Completed
Branch main (ad0c85)
by Carsten
10:29
created
Category
src/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,6 +3,6 @@
 block discarded – undo
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
 });
Please login to merge, or discard this patch.
src/Storage/LaravelSession.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/EcommerceServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.