Passed
Push — master ( 33b9bf...a11b84 )
by Dariusz
03:33 queued 10s
created
tests/CartPresenterTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
     public function testUpdate()
70 70
     {
71
-        $firstAltered  = $this->createMock(CartItem::class);
71
+        $firstAltered = $this->createMock(CartItem::class);
72 72
         $firstAltered->method('getId')->willReturn('1');
73 73
         $firstAltered->method('getQuantity')->willReturn(5);
74 74
 
Please login to merge, or discard this patch.
tests/CartTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
 
84 84
     public function testUpdate()
85 85
     {
86
-        $firstAltered  = $this->createMock(CartItem::class);
86
+        $firstAltered = $this->createMock(CartItem::class);
87 87
         $firstAltered->method('getId')->willReturn('1');
88 88
         $firstAltered->method('getQuantity')->willReturn(5);
89 89
 
Please login to merge, or discard this patch.
src/CartPresenter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
     public function toArray(): array
69 69
     {
70 70
         $array = [];
71
-        $array['items'] = array_map(function (CartItemInterface $item) {
71
+        $array['items'] = array_map(function(CartItemInterface $item) {
72 72
             $itemArray = $item->toArray($this->getCurrency());
73 73
 
74
-            array_walk_recursive($itemArray, function (&$value, $key) {
74
+            array_walk_recursive($itemArray, function(&$value, $key) {
75 75
                 if ($value instanceof Money) {
76 76
                     $value = $this->priceFormatter->format($value);
77 77
                 }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             $array['payment']['fee'] = $this->paymentFee();
97 97
         }
98 98
 
99
-        $array['discounts'] = array_map(function (CartDiscountInterface $discount) {
99
+        $array['discounts'] = array_map(function(CartDiscountInterface $discount) {
100 100
             return [
101 101
                 'text'  => $discount->getDescription(),
102 102
                 'price' => $this->priceFormatter->format($discount->getPriceAfterDiscount())
Please login to merge, or discard this patch.