Passed
Pull Request — master (#3)
by Svaťa
02:40
created
src/Domain/Prices.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,5 +5,5 @@
 block discarded – undo
5 5
 
6 6
 interface Prices
7 7
 {
8
-	public function unitPrice(string $productId): Price;
8
+    public function unitPrice(string $productId): Price;
9 9
 }
Please login to merge, or discard this patch.
src/Domain/Cart.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.