@@ -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 | { |
@@ -46,7 +46,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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', |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | public function filterFields($fields) |
| 84 | 84 | { |
| 85 | 85 | $fields->amount_exact->hidden = $this->is_percentage; |
| 86 | - $fields->amount_percentage->hidden = ! $this->is_percentage; |
|
| 86 | + $fields->amount_percentage->hidden = !$this->is_percentage; |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('bedard_shop_promotions', function (Blueprint $table) { |
|
| 11 | + Schema::create('bedard_shop_promotions', function(Blueprint $table) { |
|
| 12 | 12 | $table->engine = 'InnoDB'; |
| 13 | 13 | $table->increments('id'); |
| 14 | 14 | $table->string('name')->default(''); |