@@ -20,7 +20,7 @@ |
||
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 | } |
@@ -12,6 +12,6 @@ |
||
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 | } |
@@ -29,7 +29,7 @@ |
||
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)) { |
@@ -21,7 +21,7 @@ |
||
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 |
@@ -31,7 +31,7 @@ discard block |
||
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 |
||
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 | } |
@@ -110,7 +110,7 @@ |
||
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() |
@@ -61,7 +61,7 @@ discard block |
||
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 |
||
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 | } |
@@ -51,7 +51,7 @@ discard block |
||
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 |
||
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 | } |
@@ -52,7 +52,7 @@ discard block |
||
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 |
||
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 | } |