Passed
Pull Request — main (#2)
by Carsten
12:32
created
src/Http/Controllers/EcommerceController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $router->get('basket/{id}/remove', [EcommerceController::class, 'remove'])->name('ecommerce.basket.item.remove');
29 29
     }
30 30
 
31
-    public function index(): View|Factory
31
+    public function index(): View | Factory
32 32
     {
33 33
         return view('ecommerce::basket');
34 34
     }
Please login to merge, or discard this patch.
src/Storage/LaravelSession.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     {
42 42
         $cart = &static::$cart[$this->id];
43 43
 
44
-        if (! $asArray) {
44
+        if (!$asArray) {
45 45
             return $cart;
46 46
         }
47 47
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      *
84 84
      * @internal param mixed $id The item id
85 85
      */
86
-    public function item(string $identifier): ItemInterface|bool
86
+    public function item(string $identifier): ItemInterface | bool
87 87
     {
88 88
         foreach (static::$cart[$this->id] as $item) {
89 89
             if ($item->identifier == $identifier) {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      *
102 102
      * @return bool|ItemInterface
103 103
      */
104
-    public function find(string $id): ItemInterface|bool
104
+    public function find(string $id): ItemInterface | bool
105 105
     {
106 106
         foreach (static::$cart[$this->id] as $item) {
107 107
             if ($item->id == $id) {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     {
146 146
         $this->id = $identifier;
147 147
 
148
-        if (! array_key_exists($this->id, static::$cart)) {
148
+        if (!array_key_exists($this->id, static::$cart)) {
149 149
             static::$cart[$this->id] = [];
150 150
         }
151 151
 
Please login to merge, or discard this patch.