@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | protected function seedOptionsAndInventories() |
| 49 | 49 | { |
| 50 | - Product::all()->each(function ($product) { |
|
| 50 | + Product::all()->each(function($product) { |
|
| 51 | 51 | $option = Factory::create(new Option, [ |
| 52 | 52 | 'name' => 'Size', |
| 53 | 53 | 'placeholder' => '-- select size --', |
@@ -27,7 +27,7 @@ |
||
| 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 | { |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | $token = $this->getToken(); |
| 106 | 106 | |
| 107 | - if (! $token) { |
|
| 107 | + if (!$token) { |
|
| 108 | 108 | return $this->create(); |
| 109 | 109 | } |
| 110 | 110 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | public function getToken() |
| 124 | 124 | { |
| 125 | 125 | $token = Session::get(self::CART_KEY); |
| 126 | - if (! $token && Cookie::has(self::CART_KEY)) { |
|
| 126 | + if (!$token && Cookie::has(self::CART_KEY)) { |
|
| 127 | 127 | $token = Cookie::get(self::CART_KEY); |
| 128 | 128 | } |
| 129 | 129 | |