@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | 'product_sku' => $product->sku, |
| 118 | 118 | 'product_description' => $product->description, |
| 119 | 119 | 'product_price' => $product->price, |
| 120 | - 'product_attribute_id' => isset($data['product_attribute_id']) ? $data['product_attribute_id']: null, |
|
| 120 | + 'product_attribute_id' => isset($data['product_attribute_id']) ? $data['product_attribute_id'] : null, |
|
| 121 | 121 | ]); |
| 122 | 122 | $product->quantity = ($product->quantity - $quantity); |
| 123 | 123 | $product->save(); |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | */ |
| 173 | 173 | public function listOrderedProducts() : Collection |
| 174 | 174 | { |
| 175 | - return $this->model->products->map(function (Product $product) { |
|
| 175 | + return $this->model->products->map(function(Product $product) { |
|
| 176 | 176 | $product->name = $product->pivot->product_name; |
| 177 | 177 | $product->sku = $product->pivot->product_sku; |
| 178 | 178 | $product->description = $product->pivot->product_description; |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | */ |
| 189 | 189 | public function buildOrderDetails(Collection $items) |
| 190 | 190 | { |
| 191 | - $items->each(function ($item) { |
|
| 191 | + $items->each(function($item) { |
|
| 192 | 192 | $productRepo = new ProductRepository(new Product); |
| 193 | 193 | $product = $productRepo->find($item->id); |
| 194 | 194 | if ($item->options->has('product_attribute_id')) { |