Test Failed
Pull Request — master (#65)
by
unknown
02:00
created
Tests/api/RequestTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,14 +8,14 @@
 block discarded – undo
8 8
 
9 9
 class RequestTest extends \PHPUnit_Framework_TestCase
10 10
 {
11
-	/**
12
-	 * @var Client
13
-	 */
11
+    /**
12
+     * @var Client
13
+     */
14 14
     protected $client;
15 15
 
16
-	/**
17
-	 * @var Request
18
-	 */
16
+    /**
17
+     * @var Request
18
+     */
19 19
     protected $request;
20 20
 
21 21
     public function setUp()
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
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             'Accept: application/json',
64 64
         );
65 65
         if (!empty($this->auth_string)) {
66
-            $this->headers[] = 'Authorization: Basic ' . base64_encode($this->auth_string);
66
+            $this->headers[] = 'Authorization: Basic '.base64_encode($this->auth_string);
67 67
         }
68 68
 
69 69
         // Add custom headers and set headers in cURL object.
Please login to merge, or discard this patch.
QuickPay/API/Request.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
         // Add query parameters to $path?
50 50
         if (!empty($query)) {
51 51
             if (strpos($path, '?') === false) {
52
-                $path .= '?' . http_build_query($query, '', '&');
52
+                $path .= '?'.http_build_query($query, '', '&');
53 53
             } else {
54
-                $path .= ini_get('arg_separator.output') . http_build_query($query, '', '&');
54
+                $path .= ini_get('arg_separator.output').http_build_query($query, '', '&');
55 55
             }
56 56
         }
57 57
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     protected function setUrl($params)
142 142
     {
143
-        curl_setopt($this->client->ch, CURLOPT_URL, Constants::API_URL . trim($params, '/'));
143
+        curl_setopt($this->client->ch, CURLOPT_URL, Constants::API_URL.trim($params, '/'));
144 144
     }
145 145
 
146 146
     /**
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         curl_setopt($this->client->ch, CURLOPT_CUSTOMREQUEST, $request_type);
160 160
 
161 161
         // If additional data is delivered, we will send it along with the API request
162
-        if (is_array($form) && ! empty($form)) {
162
+        if (is_array($form) && !empty($form)) {
163 163
             curl_setopt($this->client->ch, CURLOPT_POSTFIELDS, $this->httpBuildQuery($form));
164 164
         }
165 165
 
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
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
 
167 167
         if ($headers = $this->received_headers) {
168 168
             // Filter out HTTP status and empty header lines
169
-            $headers = array_filter(explode("\r\n", $headers), function ($header) {
169
+            $headers = array_filter(explode("\r\n", $headers), function($header) {
170 170
                 return empty($header) == false && strpos($header, ':');
171 171
             });
172 172
 
Please login to merge, or discard this patch.
Tests/api/ResponseTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
         $response = new Response(200, '', $this->responseTestHeaders, $this->responseTestData);
118 118
         $headers = $response->getHeaders();
119 119
         
120
-        $isAssociativeArray = (bool)count(array_filter(array_keys($headers), 'is_string')) > 0;
120
+        $isAssociativeArray = (bool) count(array_filter(array_keys($headers), 'is_string')) > 0;
121 121
 
122 122
         $this->assertTrue($isAssociativeArray);
123 123
     }
Please login to merge, or discard this patch.