Passed
Push — master ( dc8a95...3f9dc5 )
by Svaťa
02:20
created
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public static function sum(array $prices): self
29 29
     {
30
-        return array_reduce($prices, function (self $carry, self $price) {
30
+        return array_reduce($prices, function(self $carry, self $price) {
31 31
             return $carry->add($price);
32 32
         }, new self('0'));
33 33
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         if ($inEuro->isInteger()) {
70 70
             return $inEuro->getIntegerPart();
71 71
         } else {
72
-            return $inEuro->getIntegerPart() . '.' . $inEuro->getFractionalPart();
72
+            return $inEuro->getIntegerPart().'.'.$inEuro->getFractionalPart();
73 73
         }
74 74
     }
75 75
 }
Please login to merge, or discard this patch.