Test Failed
Branch master (c8e584)
by Svaťa
04:36
created
Category
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(): CartDetail
56 56
     {
57
-        $detailItems = $this->items->map(function (Item $item): ItemDetail {
57
+        $detailItems = $this->items->map(function(Item $item): ItemDetail {
58 58
             return $item->toDetail();
59 59
         })->getValues();
60 60
 
61
-        $prices = $this->items->map(function (Item $item): Price {
61
+        $prices = $this->items->map(function(Item $item): Price {
62 62
             return $item->calculatePrice();
63 63
         })->getValues();
64 64
 
Please login to merge, or discard this patch.
src/Domain/Price.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public static function sum(array $prices): self
23 23
     {
24
-        return array_reduce($prices, function (self $carry, self $price) {
24
+        return array_reduce($prices, function(self $carry, self $price) {
25 25
             return $carry->add($price);
26 26
         }, new self(0.0));
27 27
     }
Please login to merge, or discard this patch.