Completed
Push — master ( c76df9...ef3d70 )
by Jeff
18:25
created
app/Shop/Orders/Repositories/OrderRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.