@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | */ |
| 175 | 175 | public function listOrderedProducts() : Collection |
| 176 | 176 | { |
| 177 | - return $this->model->products->map(function (Product $product) { |
|
| 177 | + return $this->model->products->map(function(Product $product) { |
|
| 178 | 178 | $product->name = $product->pivot->product_name; |
| 179 | 179 | $product->sku = $product->pivot->product_sku; |
| 180 | 180 | $product->description = $product->pivot->product_description; |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | */ |
| 190 | 190 | public function buildOrderDetails(Collection $items) |
| 191 | 191 | { |
| 192 | - $items->each(function ($item) { |
|
| 192 | + $items->each(function($item) { |
|
| 193 | 193 | $productRepo = new ProductRepository(new Product); |
| 194 | 194 | $product = $productRepo->find($item->id); |
| 195 | 195 | $this->associateProduct($product, $item->qty); |