@@ -143,7 +143,7 @@ |
||
143 | 143 | 'closePayment' => $this->closePayment, |
144 | 144 | 'returnUrl' => $this->returnUrl, |
145 | 145 | 'returnMethod' => $this->returnMethod->getValue(), |
146 | - 'cart' => array_map(function (CartItem $cartItem) { |
|
146 | + 'cart' => array_map(function(CartItem $cartItem) { |
|
147 | 147 | $cartItemValues = [ |
148 | 148 | 'name' => $cartItem->getName(), |
149 | 149 | 'quantity' => $cartItem->getQuantity(), |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | $responseCode = new ResponseCode($httpResponse->getStatusCode()); |
48 | 48 | |
49 | - $responseHeaders = array_map(function ($item) { |
|
49 | + $responseHeaders = array_map(function($item) { |
|
50 | 50 | return !is_array($item) || count($item) > 1 ? $item : array_shift($item); |
51 | 51 | }, $httpResponse->getHeaders()); |
52 | 52 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | 'paymentStatus' => null, |
63 | 63 | 'authCode' => null, |
64 | 64 | ]), |
65 | - function (Response $response) { |
|
65 | + function(Response $response) { |
|
66 | 66 | // This handles edge case when provided payId is missing or already expired on gateway |
67 | 67 | // In this case gateway responds with HTTP 200 and HTML content. Bad API. |
68 | 68 | // See https://github.com/csob/paymentgateway/issues/135 |
@@ -141,7 +141,7 @@ |
||
141 | 141 | } else { |
142 | 142 | $apiClientDriver->expects(self::once()) |
143 | 143 | ->method('request') |
144 | - ->willReturnCallback(function (HttpMethod $method, string $url, array $requestData) use ($httpMethod, $expectedUrl, $expectedRequestData, $responseCode, $responseData, $responseHeaders): Response { |
|
144 | + ->willReturnCallback(function(HttpMethod $method, string $url, array $requestData) use ($httpMethod, $expectedUrl, $expectedRequestData, $responseCode, $responseData, $responseHeaders): Response { |
|
145 | 145 | $this->assertEquals($httpMethod, $method); |
146 | 146 | $this->assertSame(sprintf('%s/%s', self::API_URL, $expectedUrl), $url); |
147 | 147 | $dttm = $requestData['dttm']; |