Test Setup Failed
Pull Request — master (#70)
by
unknown
08:10
created
QuickPay/API/Request.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
15 15
     {
16 16
         if (!empty($query)) {
17 17
             if (strpos($path, '?') === false) {
18
-                $path .= '?' . http_build_query($query, '', '&');
18
+                $path .= '?'.http_build_query($query, '', '&');
19 19
             } else {
20
-                $path .= ini_get('arg_separator.output') . http_build_query($query, '', '&');
20
+                $path .= ini_get('arg_separator.output').http_build_query($query, '', '&');
21 21
             }
22 22
         }
23 23
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
     protected function setUrl(string $url): void
58 58
     {
59
-        curl_setopt($this->client->ch, CURLOPT_URL, Constants::API_URL . trim($url, '/'));
59
+        curl_setopt($this->client->ch, CURLOPT_URL, Constants::API_URL.trim($url, '/'));
60 60
     }
61 61
 
62 62
     protected function execute(string $request_type, array $form = []): Response
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         return new Response($response_code, $sent_headers, $received_headers, $response_data);
100 100
     }
101 101
 
102
-    public function httpBuildQuery(array $query): array|string|null
102
+    public function httpBuildQuery(array $query): array | string | null
103 103
     {
104 104
         $query = http_build_query($query, '', '&');
105 105
 
Please login to merge, or discard this patch.
QuickPay/API/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     {
11 11
     }
12 12
 
13
-    public function asRaw(bool $keep_authorization_value = false): int|string|array
13
+    public function asRaw(bool $keep_authorization_value = false): int | string | array
14 14
     {
15 15
         // To avoid unintentional logging of credentials the default is to mask the value of the Authorization: header
16 16
         if ($keep_authorization_value) {
Please login to merge, or discard this patch.
QuickPay/API/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             'Accept: application/json',
33 33
         ];
34 34
         if (!empty($this->auth_string)) {
35
-            $this->headers[] = 'Authorization: Basic ' . base64_encode($this->auth_string);
35
+            $this->headers[] = 'Authorization: Basic '.base64_encode($this->auth_string);
36 36
         }
37 37
 
38 38
         // Add custom headers and set headers in cURL object.
Please login to merge, or discard this patch.