Completed
Pull Request — master (#213)
by r
25:04
created
src/Qiniu/Storage/BucketManager.php 2 patches
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -288,12 +288,18 @@  discard block
 block discarded – undo
288 288
         return $error;
289 289
     }
290 290
 
291
+    /**
292
+     * @param string $body
293
+     */
291 294
     private function rsPost($path, $body = null)
292 295
     {
293 296
         $url = Config::RS_HOST . $path;
294 297
         return $this->post($url, $body);
295 298
     }
296 299
 
300
+    /**
301
+     * @param string $path
302
+     */
297 303
     private function rsGet($path)
298 304
     {
299 305
         $url = Config::RS_HOST . $path;
@@ -306,6 +312,9 @@  discard block
 block discarded – undo
306 312
         return $this->post($url, $body);
307 313
     }
308 314
 
315
+    /**
316
+     * @param string $url
317
+     */
309 318
     private function get($url)
310 319
     {
311 320
         $headers = $this->auth->authorization($url);
@@ -316,6 +325,9 @@  discard block
 block discarded – undo
316 325
         return array($ret->json(), null);
317 326
     }
318 327
 
328
+    /**
329
+     * @param string $url
330
+     */
319 331
     private function post($url, $body)
320 332
     {
321 333
         $headers = $this->auth->authorization($url, $body, 'application/x-www-form-urlencoded');
@@ -356,6 +368,9 @@  discard block
 block discarded – undo
356 368
         return self::oneKeyBatch('stat', $bucket, $keys);
357 369
     }
358 370
 
371
+    /**
372
+     * @param string $operation
373
+     */
359 374
     private static function oneKeyBatch($operation, $bucket, $keys)
360 375
     {
361 376
         $data = array();
@@ -365,6 +380,9 @@  discard block
 block discarded – undo
365 380
         return $data;
366 381
     }
367 382
 
383
+    /**
384
+     * @param string $operation
385
+     */
368 386
     private static function twoKeyBatch($operation, $source_bucket, $key_pairs, $target_bucket)
369 387
     {
370 388
         if ($target_bucket === null) {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,13 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Qiniu\Storage;
3 3
 
4
-use phpDocumentor\Reflection\Types\Integer;
5
-use phpDocumentor\Reflection\Types\Mixed;
6 4
 use Qiniu\Auth;
7 5
 use Qiniu\Config;
8
-use Qiniu\Zone;
9 6
 use Qiniu\Http\Client;
10 7
 use Qiniu\Http\Error;
8
+use Qiniu\Zone;
9
+use phpDocumentor\Reflection\Types\Mixed;
11 10
 
12 11
 /**
13 12
  * 主要涉及了空间资源管理及批量操作接口的实现,具体的接口规格可以参考
Please login to merge, or discard this patch.