Completed
Push — master ( f2d289...a26258 )
by Scott
02:52
created
api/Cart.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      * Determine if a cart exists or not.
28 28
      *
29 29
      * @param  CartRepository $repository
30
-     * @return bool
30
+     * @return string|null
31 31
      */
32 32
     public function exists(CartRepository $repository)
33 33
     {
Please login to merge, or discard this patch.
repositories/CartRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
         $token = $this->getToken();
109 109
 
110
-        if (! $token) {
110
+        if (!$token) {
111 111
             return $this->create();
112 112
         }
113 113
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     public function getToken()
131 131
     {
132 132
         $token = Session::get(self::CART_KEY);
133
-        if (! $token && Cookie::has(self::CART_KEY)) {
133
+        if (!$token && Cookie::has(self::CART_KEY)) {
134 134
             $token = Cookie::get(self::CART_KEY);
135 135
         }
136 136
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     public function loadCart()
146 146
     {
147 147
         $this->getCart()->load([
148
-            'items.inventory.product' => function ($product) {
148
+            'items.inventory.product' => function($product) {
149 149
                 $product->joinPrice()->with('thumbnails');
150 150
             },
151 151
             'items.inventory.optionValues.option',
Please login to merge, or discard this patch.