Passed
Push — master ( 412c28...27021d )
by Fran
04:12
created
src/base/Service.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     protected $cache;
55 55
 
56 56
     private function closeConnection() {
57
-        if(null !== $this->con) {
57
+        if (null !== $this->con) {
58 58
             curl_close($this->con);
59 59
         }
60 60
     }
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         $this->url = NULL;
221 221
         $this->params = array();
222 222
         $this->headers = array();
223
-        Logger::log("Context service for " . get_called_class() . " cleared!");
223
+        Logger::log("Context service for ".get_called_class()." cleared!");
224 224
         $this->closeConnection();
225 225
     }
226 226
 
@@ -267,8 +267,8 @@  discard block
 block discarded – undo
267 267
 
268 268
     protected function applyHeaders() {
269 269
         $headers = [];
270
-        foreach($this->headers as $key => $value) {
271
-            $headers[] = $key . ': ' . $value;
270
+        foreach ($this->headers as $key => $value) {
271
+            $headers[] = $key.': '.$value;
272 272
         }
273 273
         curl_setopt($this->con, CURLOPT_HTTPHEADER, $headers);
274 274
     }
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
         $this->applyHeaders();
309 309
         $result = curl_exec($this->con);
310 310
         $this->result = json_decode($result, true);
311
-        Logger::log($this->url . ' response: ', LOG_DEBUG, $this->result);
311
+        Logger::log($this->url.' response: ', LOG_DEBUG, $this->result);
312 312
         $this->info = curl_getinfo($this->con);
313 313
     }
314 314
 
Please login to merge, or discard this patch.