@@ -153,7 +153,7 @@ |
||
153 | 153 | fseek($file, 0); |
154 | 154 | |
155 | 155 | // url needs some variable data, so we'll parse it in |
156 | - $api = preg_replace_callback('/\{([a-z0-9]+)\}/i', function ($match) use ($data) { |
|
156 | + $api = preg_replace_callback('/\{([a-z0-9]+)\}/i', function($match) use ($data) { |
|
157 | 157 | return isset($data[$match[1]]) ? $data[$match[1]] : $match[0]; |
158 | 158 | }, $api); |
159 | 159 | // if parts of url are now empty, just omit them (e.g. branch could be) |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | public function get($uri) |
33 | 33 | { |
34 | 34 | $options = array( |
35 | - CURLOPT_URL => $this->api . $uri, |
|
35 | + CURLOPT_URL => $this->api.$uri, |
|
36 | 36 | CURLOPT_FOLLOWLOCATION => 1, |
37 | 37 | CURLOPT_RETURNTRANSFER => 1, |
38 | 38 | ); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | fseek($file, 0); |
59 | 59 | |
60 | 60 | $options = array( |
61 | - CURLOPT_URL => $this->api . $uri, |
|
61 | + CURLOPT_URL => $this->api.$uri, |
|
62 | 62 | CURLOPT_FOLLOWLOCATION => 1, |
63 | 63 | CURLOPT_RETURNTRANSFER => 1, |
64 | 64 | CURLOPT_PUT => 1, |