Completed
Pull Request — master (#4)
by
unknown
15:46 queued 08:25
created
lib/PHPLicengine/Api/Api.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
            { 
45 45
                   if (!function_exists('curl_init')) 
46 46
                   { 
47
-                      throw new CurlException ("cURL is not available. This API wrapper cannot be used."); 
47
+                      throw new CurlException("cURL is not available. This API wrapper cannot be used."); 
48 48
                   } 
49 49
                   
50 50
                   if (isset($api_key))
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                           case 'GET':
132 132
                                      curl_setopt(resource $ch, CURLOPT_HTTPGET, true);
133 133
                                      if (!empty($params)) {
134
-                                         $url .= '?' . http_build_query($params);
134
+                                         $url .= '?'.http_build_query($params);
135 135
                                          curl_setopt(resource $ch, CURLOPT_URL, $url);
136 136
                                      }
137 137
                           break;
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                        $headers = array();
167 167
                        $key = '';
168 168
 
169
-                       foreach(explode("\n", $raw_headers) as $i => $h) {
169
+                       foreach (explode("\n", $raw_headers) as $i => $h) {
170 170
                                $h = explode(':', $h, 2);
171 171
 
172 172
                                if (isset($h[1])) {
@@ -244,17 +244,17 @@  discard block
 block discarded – undo
244 244
                   return $this->curlInfo;
245 245
            }
246 246
 
247
-           public function isCurlError () 
247
+           public function isCurlError() 
248 248
            {
249 249
                   return (bool) $this->curlErrno;
250 250
            }
251 251
 
252
-           public function getCurlErrno () 
252
+           public function getCurlErrno() 
253 253
            {
254 254
                   return $this->curlErrno;
255 255
            }
256 256
 
257
-           public function getCurlError () 
257
+           public function getCurlError() 
258 258
            {
259 259
                   return $this->curlError;
260 260
            }
Please login to merge, or discard this patch.
lib/PHPLicengine/Api/Result.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,12 +102,12 @@  discard block
 block discarded – undo
102 102
               $this->curlInfo = $curlInfo;
103 103
        }
104 104
 
105
-       public function isError () 
105
+       public function isError() 
106 106
        {
107 107
               return isset($this->getResponseObject()->errors) && $this->getResponseObject()->errors;
108 108
        }
109 109
      
110
-       public function getDescription () 
110
+       public function getDescription() 
111 111
        {
112 112
               return $this->getResponseObject()->description;
113 113
        }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
               return json_decode($this->body);
128 128
        }
129 129
 
130
-       public function getResponseArray () 
130
+       public function getResponseArray() 
131 131
        {
132 132
               return json_decode($this->body, true);
133 133
        }
Please login to merge, or discard this patch.