Completed
Push — master ( 069e15...978af9 )
by Jan
02:19
created
src/Cart.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 		$this->currency = $currency;
21 21
 	}
22 22
 
23
-	public function addItem(string $name, int $quantity, int $amount, ?string $description = null): void
23
+	public function addItem(string $name, int $quantity, int $amount, ?string $description = null) : void
24 24
 	{
25 25
 		$this->items[] = new CartItem($name, $quantity, $amount, $description);
26 26
 	}
Please login to merge, or discard this patch.
src/Api/ApiClientDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,6 +12,6 @@
 block discarded – undo
12 12
 	 * @param string[] $headers
13 13
 	 * @return Response
14 14
 	 */
15
-	public function request(HttpMethod $method, string $url, ?array $data, array $headers = []): Response;
15
+	public function request(HttpMethod $method, string $url, ? array $data, array $headers = []) : Response;
16 16
 
17 17
 }
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
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 	 * @return Response
30 30
 	 * @throws GuzzleDriverException
31 31
 	 */
32
-	public function request(HttpMethod $method, string $url, ?array $data, array $headers = []): Response
32
+	public function request(HttpMethod $method, string $url, ? array $data, array $headers = []) : Response
33 33
 	{
34 34
 		$postData = null;
35 35
 		if ($method->equalsValue(HttpMethod::POST) || $method->equalsValue(HttpMethod::PUT)) {
Please login to merge, or discard this patch.
src/Api/Driver/CurlDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 	 * @return Response
22 22
 	 * @throws CurlDriverException
23 23
 	 */
24
-	public function request(HttpMethod $method, string $url, ?array $data, array $headers = []): Response
24
+	public function request(HttpMethod $method, string $url, ? array $data, array $headers = []) : Response
25 25
 	{
26 26
 		$ch = curl_init($url);
27 27
 
Please login to merge, or discard this patch.
src/Api/Response.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 	 */
32 32
 	public function __construct(
33 33
 		ResponseCode $responseCode,
34
-		?array $data,
34
+		? array $data,
35 35
 		array $headers = [],
36 36
 		array $extensions = []
37 37
 	)
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	/**
51 51
 	 * @return mixed[]|null
52 52
 	 */
53
-	public function getData(): ?array
53
+	public function getData(): ? array
54 54
 	{
55 55
 		return $this->data;
56 56
 	}
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
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
 	 *
111 111
 	 * @dataProvider getRequests
112 112
 	 */
113
-	public function testRequests(HttpMethod $httpMethod, string $url, string $expectedUrl, array $requestData, ?array $expectedRequestData = null, ?array $responseData = null, ResponseCode $responseCode, array $responseHeaders): void
113
+	public function testRequests(HttpMethod $httpMethod, string $url, string $expectedUrl, array $requestData, ? array $expectedRequestData = null, ? array $responseData = null, ResponseCode $responseCode, array $responseHeaders) : void
114 114
 	{
115 115
 		$cryptoService = $this->getMockBuilder(CryptoService::class)
116 116
 			->disableOriginalConstructor()
Please login to merge, or discard this patch.
src/Call/PaymentButtonResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 		?PaymentStatus $paymentStatus,
62 62
 		?HttpMethod $redirectMethod,
63 63
 		?string $redirectUrl,
64
-		?array $redirectParams
64
+		? array $redirectParams
65 65
 	)
66 66
 	{
67 67
 		Validator::checkPayId($payId);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	/**
115 115
 	 * @return mixed[]|null
116 116
 	 */
117
-	public function getRedirectParams(): ?array
117
+	public function getRedirectParams(): ? array
118 118
 	{
119 119
 		return $this->redirectParams;
120 120
 	}
Please login to merge, or discard this patch.
src/Call/Masterpass/ExtractResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 		ResultCode $resultCode,
52 52
 		string $resultMessage,
53 53
 		?PaymentStatus $paymentStatus,
54
-		?array $checkoutParams
54
+		? array $checkoutParams
55 55
 	)
56 56
 	{
57 57
 		$this->payId = $payId;
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	/**
91 91
 	 * @return mixed[]|null
92 92
 	 */
93
-	public function getCheckoutParams(): ?array
93
+	public function getCheckoutParams(): ? array
94 94
 	{
95 95
 		return $this->checkoutParams;
96 96
 	}
Please login to merge, or discard this patch.
src/Call/Masterpass/CheckoutResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 		ResultCode $resultCode,
53 53
 		string $resultMessage,
54 54
 		?PaymentStatus $paymentStatus,
55
-		?array $lightboxParams
55
+		? array $lightboxParams
56 56
 	)
57 57
 	{
58 58
 		Validator::checkPayId($payId);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 	/**
94 94
 	 * @return mixed[]|null
95 95
 	 */
96
-	public function getLightboxParams(): ?array
96
+	public function getLightboxParams(): ? array
97 97
 	{
98 98
 		return $this->lightboxParams;
99 99
 	}
Please login to merge, or discard this patch.