Completed
Push — master ( 0af6cb...e278f8 )
by Bai
12s queued 10s
created
src/Qiniu/Rtc/AppClient.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Qiniu\Auth;
6 6
 use Qiniu\Config;
7
-use Qiniu\Http\Error;
8 7
 use Qiniu\Http\Client;
8
+use Qiniu\Http\Error;
9 9
 
10 10
 class AppClient
11 11
 {
Please login to merge, or discard this patch.
src/Qiniu/Sms/Sms.php 2 patches
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -291,6 +291,9 @@  discard block
 block discarded – undo
291 291
     }
292 292
 
293 293
 
294
+    /**
295
+     * @param string $img_file
296
+     */
294 297
     public function imgToBase64($img_file)
295 298
     {
296 299
         $img_base64 = '';
@@ -325,6 +328,9 @@  discard block
 block discarded – undo
325 328
         return $img_base64;
326 329
     }
327 330
 
331
+    /**
332
+     * @param string $url
333
+     */
328 334
     private function get($url, $contentType = 'application/x-www-form-urlencoded')
329 335
     {
330 336
         $headers = $this->auth->authorizationV2($url, "GET", null, $contentType);
@@ -336,6 +342,9 @@  discard block
 block discarded – undo
336 342
         return array($ret->json(), null);
337 343
     }
338 344
 
345
+    /**
346
+     * @param string $url
347
+     */
339 348
     private function delete($url, $contentType = 'application/json')
340 349
     {
341 350
         $headers = $this->auth->authorizationV2($url, "DELETE", null, $contentType);
@@ -347,6 +356,10 @@  discard block
 block discarded – undo
347 356
         return array($ret->json(), null);
348 357
     }
349 358
 
359
+    /**
360
+     * @param string $url
361
+     * @param string $body
362
+     */
350 363
     private function post($url, $body, $contentType = 'application/json')
351 364
     {
352 365
         $headers = $this->auth->authorizationV2($url, "POST", $body, $contentType);
@@ -361,6 +374,10 @@  discard block
 block discarded – undo
361 374
         return array($r, null);
362 375
     }
363 376
 
377
+    /**
378
+     * @param string $url
379
+     * @param string $body
380
+     */
364 381
     private function PUT($url, $body, $contentType = 'application/json')
365 382
     {
366 383
         $headers = $this->auth->authorizationV2($url, "PUT", $body, $contentType);
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Qiniu\Auth;
6 6
 use Qiniu\Config;
7
-use Qiniu\Http\Error;
8 7
 use Qiniu\Http\Client;
8
+use Qiniu\Http\Error;
9 9
 
10 10
 class Sms
11 11
 {
Please login to merge, or discard this patch.