@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | "picture" => $picture // (optionnal) full url only |
107 | 107 | ); |
108 | 108 | |
109 | - $res = $client->request('POST', $this->getDir() . '/pub/sso/registerUser/pubkey/' . $this->getGcPublic() . '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]); |
|
109 | + $res = $client->request('POST', $this->getDir() . '/pub/sso/registerUser/pubkey/' . $this->getGcPublic() . '/key/' . $this->generateSsoData($data), [ 'http_errors' => false, 'timeout' => 5 ]); |
|
110 | 110 | |
111 | 111 | if ($res->getStatusCode() == "200") { |
112 | 112 | return $res->getBody(); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | "gc_id" => $gc_id |
132 | 132 | ); |
133 | 133 | |
134 | - $res = $client->request('POST', $this->getDir() . '/pub/sso/loginUser/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]); |
|
134 | + $res = $client->request('POST', $this->getDir() . '/pub/sso/loginUser/pubkey/' . $this->getGcPublic() . '/key/' . $this->generateSsoData($data), [ 'http_errors' => false, 'timeout' => 5 ]); |
|
135 | 135 | |
136 | 136 | return $res->getBody(); |
137 | 137 | } |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | "gc_id" => $gc_id |
153 | 153 | ); |
154 | 154 | |
155 | - $res = $client->request('GET', $this->getDir() . '/pub/sso/getUser/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]); |
|
155 | + $res = $client->request('GET', $this->getDir() . '/pub/sso/getUser/pubkey/' . $this->getGcPublic() . '/key/' . $this->generateSsoData($data), [ 'http_errors' => false, 'timeout' => 5 ]); |
|
156 | 156 | |
157 | 157 | return $res->getBody(); |
158 | 158 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | "picture" => $picture |
190 | 190 | ); |
191 | 191 | |
192 | - $res = $client->request('PUT', $this->getDir() . '/pub/sso/updateUser/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]); |
|
192 | + $res = $client->request('PUT', $this->getDir() . '/pub/sso/updateUser/pubkey/' . $this->getGcPublic() . '/key/' . $this->generateSsoData($data), [ 'http_errors' => false, 'timeout' => 5 ]); |
|
193 | 193 | |
194 | 194 | return $res->getBody(); |
195 | 195 | } |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | { |
208 | 208 | $client = new Client(); |
209 | 209 | |
210 | - $res = $client->request('DELETE', $this->getDir() . '/pub/sso/deleteProfileByGcId/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]); |
|
210 | + $res = $client->request('DELETE', $this->getDir() . '/pub/sso/deleteProfileByGcId/pubkey/' . $this->getGcPublic() . '/key/' . $this->generateSsoData($data), [ 'http_errors' => false, 'timeout' => 5 ]); |
|
211 | 211 | |
212 | 212 | return $res->getBody(); |
213 | 213 | } |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | * @return object json {count: numberOfComments } |
222 | 222 | * @throws GuzzleException |
223 | 223 | */ |
224 | - public function countComments($url, $uid='') { |
|
224 | + public function countComments($url, $uid = '') { |
|
225 | 225 | $client = new Client(); |
226 | 226 | |
227 | 227 | $data = array( |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | "uid" => $uid |
230 | 230 | ); |
231 | 231 | |
232 | - $res = $client->request('GET', $this->getDir() . '/pub/sso/numberOfComments/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]); |
|
232 | + $res = $client->request('GET', $this->getDir() . '/pub/sso/numberOfComments/pubkey/' . $this->getGcPublic() . '/key/' . $this->generateSsoData($data), [ 'http_errors' => false, 'timeout' => 5 ]); |
|
233 | 233 | |
234 | 234 | return $res->getBody(); |
235 | 235 | } |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | * @return object json-ld |
243 | 243 | * @throws GuzzleException |
244 | 244 | */ |
245 | - public function getThreadJsonLdFormat($url, $uid='') { |
|
245 | + public function getThreadJsonLdFormat($url, $uid = '') { |
|
246 | 246 | $client = new Client(); |
247 | 247 | |
248 | 248 | $data = array( |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | "uid" => $uid |
251 | 251 | ); |
252 | 252 | |
253 | - $res = $client->request('GET', $this->getDir() . '/pub/sso/thread-jsonld/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]); |
|
253 | + $res = $client->request('GET', $this->getDir() . '/pub/sso/thread-jsonld/pubkey/' . $this->getGcPublic() . '/key/' . $this->generateSsoData($data), [ 'http_errors' => false, 'timeout' => 5 ]); |
|
254 | 254 | |
255 | 255 | return $res->getBody(); |
256 | 256 | } |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | public function exportComments() { |
265 | 265 | $client = new Client(); |
266 | 266 | |
267 | - $res = $client->request('GET', $this->getDir() . '/pub/export-comments/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData('key'), ['http_errors' => false, 'timeout' => 5]); |
|
267 | + $res = $client->request('GET', $this->getDir() . '/pub/export-comments/pubkey/' . $this->getGcPublic() . '/key/' . $this->generateSsoData('key'), [ 'http_errors' => false, 'timeout' => 5 ]); |
|
268 | 268 | |
269 | 269 | return $res->getBody(); |
270 | 270 | } |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | |
283 | 283 | $data = $commentIds; |
284 | 284 | |
285 | - $res = $client->request('POST', $this->getDir() . '/pub/export-comments/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]); |
|
285 | + $res = $client->request('POST', $this->getDir() . '/pub/export-comments/pubkey/' . $this->getGcPublic() . '/key/' . $this->generateSsoData($data), [ 'http_errors' => false, 'timeout' => 5 ]); |
|
286 | 286 | |
287 | 287 | return $res->getBody(); |
288 | 288 | } |