Passed
Pull Request — master (#65)
by
unknown
02:05
created
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.