Passed
Push — main ( ebd4af...845ee5 )
by Carsten
12:28
created
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/Identifier/LaravelCookie.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
         }
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
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.