Completed
Push — master ( f652c2...8532b6 )
by Jan
02:42
created
src/Call/InitPaymentRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
src/Api/Driver/GuzzleDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Call/ProcessPaymentRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
tests/unit/Api/ApiClientTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
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'];
Please login to merge, or discard this patch.