Completed
Push — master ( a1d7e5...66381a )
by
unknown
06:54
created
src/Qiniu/Storage/BucketManager.php 1 patch
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -351,24 +351,36 @@  discard block
 block discarded – undo
351 351
         return $scheme . Config::API_HOST;
352 352
     }
353 353
 
354
+    /**
355
+     * @param string $body
356
+     */
354 357
     private function rsPost($path, $body = null)
355 358
     {
356 359
         $url = $this->getRsHost() . $path;
357 360
         return $this->post($url, $body);
358 361
     }
359 362
 
363
+    /**
364
+     * @param string $path
365
+     */
360 366
     private function apiGet($path)
361 367
     {
362 368
         $url = $this->getApiHost() . $path;
363 369
         return $this->get($url);
364 370
     }
365 371
 
372
+    /**
373
+     * @param string $path
374
+     */
366 375
     private function rsGet($path)
367 376
     {
368 377
         $url = $this->getRsHost() . $path;
369 378
         return $this->get($url);
370 379
     }
371 380
 
381
+    /**
382
+     * @param string $url
383
+     */
372 384
     private function get($url)
373 385
     {
374 386
         $headers = $this->auth->authorization($url);
@@ -379,6 +391,9 @@  discard block
 block discarded – undo
379 391
         return array($ret->json(), null);
380 392
     }
381 393
 
394
+    /**
395
+     * @param string $url
396
+     */
382 397
     private function post($url, $body)
383 398
     {
384 399
         $headers = $this->auth->authorization($url, $body, 'application/x-www-form-urlencoded');
@@ -446,6 +461,9 @@  discard block
 block discarded – undo
446 461
         return $data;
447 462
     }
448 463
 
464
+    /**
465
+     * @param string $operation
466
+     */
449 467
     private static function oneKeyBatch($operation, $bucket, $keys)
450 468
     {
451 469
         $data = array();
@@ -455,6 +473,9 @@  discard block
 block discarded – undo
455 473
         return $data;
456 474
     }
457 475
 
476
+    /**
477
+     * @param string $operation
478
+     */
458 479
     private static function twoKeyBatch($operation, $source_bucket, $key_pairs, $target_bucket, $force)
459 480
     {
460 481
         if ($target_bucket === null) {
Please login to merge, or discard this patch.