@@ -68,7 +68,7 @@ |
||
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 |
@@ -83,7 +83,7 @@ |
||
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 |
@@ -68,10 +68,10 @@ discard block |
||
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 |
||
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()) |