@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | "picture" => $picture // (optionnal) full url only |
105 | 105 | ); |
106 | 106 | |
107 | - $res = $client->request('POST', $this->getDir() . '/pub/sso/registerUser/pubkey/' . urlencode($this->getGcPublic()) . '/key/' . urlencode($this->generateSsoData($data)), ['http_errors' => false, 'timeout' => 5]); |
|
107 | + $res = $client->request('POST', $this->getDir() . '/pub/sso/registerUser/pubkey/' . urlencode($this->getGcPublic()) . '/key/' . urlencode($this->generateSsoData($data)), [ 'http_errors' => false, 'timeout' => 5 ]); |
|
108 | 108 | |
109 | 109 | if ($res->getStatusCode() == "200") { |
110 | 110 | return $res->getBody(); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | "gc_id" => $gc_id |
129 | 129 | ); |
130 | 130 | |
131 | - $res = $client->request('POST', $this->getDir() . '/pub/sso/loginUser/pubkey/' . urlencode($this->getGcPublic()). '/key/' . urlencode($this->generateSsoData($data)), ['http_errors' => false, 'timeout' => 5]); |
|
131 | + $res = $client->request('POST', $this->getDir() . '/pub/sso/loginUser/pubkey/' . urlencode($this->getGcPublic()) . '/key/' . urlencode($this->generateSsoData($data)), [ 'http_errors' => false, 'timeout' => 5 ]); |
|
132 | 132 | |
133 | 133 | return $res->getBody(); |
134 | 134 | } |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | "gc_id" => $gc_id |
149 | 149 | ); |
150 | 150 | |
151 | - $res = $client->request('GET', $this->getDir() . '/pub/sso/getUser/pubkey/' . urlencode($this->getGcPublic()). '/key/' . urlencode($this->generateSsoData($data)), ['http_errors' => false, 'timeout' => 5]); |
|
151 | + $res = $client->request('GET', $this->getDir() . '/pub/sso/getUser/pubkey/' . urlencode($this->getGcPublic()) . '/key/' . urlencode($this->generateSsoData($data)), [ 'http_errors' => false, 'timeout' => 5 ]); |
|
152 | 152 | |
153 | 153 | return $res->getBody(); |
154 | 154 | } |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | "picture" => $picture |
185 | 185 | ); |
186 | 186 | |
187 | - $res = $client->request('PUT', $this->getDir() . '/pub/sso/updateUser/pubkey/' . urlencode($this->getGcPublic()). '/key/' . urlencode($this->generateSsoData($data)), ['http_errors' => false, 'timeout' => 5]); |
|
187 | + $res = $client->request('PUT', $this->getDir() . '/pub/sso/updateUser/pubkey/' . urlencode($this->getGcPublic()) . '/key/' . urlencode($this->generateSsoData($data)), [ 'http_errors' => false, 'timeout' => 5 ]); |
|
188 | 188 | |
189 | 189 | return $res->getBody(); |
190 | 190 | } |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | "gc_id" => $gc_id |
206 | 206 | ); |
207 | 207 | |
208 | - $res = $client->request('DELETE', $this->getDir() . '/pub/sso/deleteProfileByGcId/pubkey/' . urlencode($this->getGcPublic()). '/key/' . urlencode($this->generateSsoData($data)), ['http_errors' => false, 'timeout' => 5]); |
|
208 | + $res = $client->request('DELETE', $this->getDir() . '/pub/sso/deleteProfileByGcId/pubkey/' . urlencode($this->getGcPublic()) . '/key/' . urlencode($this->generateSsoData($data)), [ 'http_errors' => false, 'timeout' => 5 ]); |
|
209 | 209 | |
210 | 210 | return $res->getBody(); |
211 | 211 | } |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | * @param string $uid (unique id of the thread) optionnal |
220 | 220 | * @return object json {count: numberOfComments } |
221 | 221 | */ |
222 | - public function countComments($url, $uid='') { |
|
222 | + public function countComments($url, $uid = '') { |
|
223 | 223 | $client = new Client(); |
224 | 224 | |
225 | 225 | $data = array( |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | "uid" => $uid |
228 | 228 | ); |
229 | 229 | |
230 | - $res = $client->request('GET', $this->getDir() . '/pub/sso/numberOfComments/pubkey/' . urlencode($this->getGcPublic()). '/key/' . urlencode($this->generateSsoData($data)), ['http_errors' => false, 'timeout' => 5]); |
|
230 | + $res = $client->request('GET', $this->getDir() . '/pub/sso/numberOfComments/pubkey/' . urlencode($this->getGcPublic()) . '/key/' . urlencode($this->generateSsoData($data)), [ 'http_errors' => false, 'timeout' => 5 ]); |
|
231 | 231 | |
232 | 232 | return $res->getBody(); |
233 | 233 | } |