@@ -5,5 +5,5 @@ |
||
| 5 | 5 | |
| 6 | 6 | interface Prices |
| 7 | 7 | { |
| 8 | - public function unitPrice(string $productId): Price; |
|
| 8 | + public function unitPrice(string $productId): Price; |
|
| 9 | 9 | } |
@@ -54,11 +54,11 @@ |
||
| 54 | 54 | |
| 55 | 55 | public function calculate(Prices $prices): CartDetail |
| 56 | 56 | { |
| 57 | - $detailItems = $this->items->map(function (Item $item) use ($prices): ItemDetail { |
|
| 57 | + $detailItems = $this->items->map(function(Item $item) use ($prices): ItemDetail { |
|
| 58 | 58 | return $item->toDetail($prices); |
| 59 | 59 | })->getValues(); |
| 60 | 60 | |
| 61 | - $itemPrices = $this->items->map(function (Item $item) use ($prices): Price { |
|
| 61 | + $itemPrices = $this->items->map(function(Item $item) use ($prices): Price { |
|
| 62 | 62 | return $item->calculatePrice($prices); |
| 63 | 63 | })->getValues(); |
| 64 | 64 | |