Passed
Push — master ( ac443d...cc4e96 )
by david
03:11
created
src/Graphcomment.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,13 +229,13 @@  discard block
 block discarded – undo
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
     }
236 236
 
237 237
 
238
-    public function getThreadJsonLdFormat($url, $uid='') {
238
+    public function getThreadJsonLdFormat($url, $uid = '') {
239 239
         $client = new Client();
240 240
 
241 241
         $data = array(
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
             "uid" => $uid
244 244
         );
245 245
 
246
-        $res = $client->request('GET', $this->getDir() . '/pub/sso/thread-jsonld/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]);
246
+        $res = $client->request('GET', $this->getDir() . '/pub/sso/thread-jsonld/pubkey/' . $this->getGcPublic() . '/key/' . $this->generateSsoData($data), [ 'http_errors' => false, 'timeout' => 5 ]);
247 247
 
248 248
         return $res->getBody();
249 249
     }
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     public function exportComments() {
258 258
         $client = new Client();
259 259
 
260
-        $res = $client->request('GET', $this->getDir() . '/pub/export-comments/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData('key'), ['http_errors' => false, 'timeout' => 5]);
260
+        $res = $client->request('GET', $this->getDir() . '/pub/export-comments/pubkey/' . $this->getGcPublic() . '/key/' . $this->generateSsoData('key'), [ 'http_errors' => false, 'timeout' => 5 ]);
261 261
 
262 262
         return $res->getBody();
263 263
     }
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
 
276 276
         $data = $commentIds;
277 277
 
278
-        $res = $client->request('POST', $this->getDir() . '/pub/export-comments/pubkey/' . $this->getGcPublic(). '/key/' . $this->generateSsoData($data), ['http_errors' => false, 'timeout' => 5]);
278
+        $res = $client->request('POST', $this->getDir() . '/pub/export-comments/pubkey/' . $this->getGcPublic() . '/key/' . $this->generateSsoData($data), [ 'http_errors' => false, 'timeout' => 5 ]);
279 279
 
280 280
         return $res->getBody();
281 281
     }
Please login to merge, or discard this patch.