Completed
Push — master ( 9ed80e...2e0e8b )
by Scott
03:17 queued 50s
created
repositories/CartRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
         $item->load([
48 48
             'inventory.optionValues.option',
49
-            'inventory.product' => function ($product) {
49
+            'inventory.product' => function($product) {
50 50
                 return $product->joinPrice()->with('thumbnails');
51 51
             },
52 52
         ]);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
         $token = $this->getToken();
116 116
 
117
-        if (! $token) {
117
+        if (!$token) {
118 118
             return $this->create();
119 119
         }
120 120
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     public function getToken()
138 138
     {
139 139
         $token = Session::get(self::CART_KEY);
140
-        if (! $token && Cookie::has(self::CART_KEY)) {
140
+        if (!$token && Cookie::has(self::CART_KEY)) {
141 141
             $token = Cookie::get(self::CART_KEY);
142 142
         }
143 143
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     public function loadCart()
153 153
     {
154 154
         $this->getCart()->load([
155
-            'items.inventory.product' => function ($product) {
155
+            'items.inventory.product' => function($product) {
156 156
                 $product->joinPrice()->with('thumbnails');
157 157
             },
158 158
             'items.inventory.optionValues.option',
Please login to merge, or discard this patch.