Completed
Pull Request — master (#293)
by
unknown
23:27
created
src/Qiniu/Storage/FormUploader.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,10 +13,11 @@
 block discarded – undo
13 13
      * @param $upToken    上传凭证
14 14
      * @param $key        上传文件名
15 15
      * @param $data       上传二进制流
16
-     * @param $config     上传配置
16
+     * @param \Qiniu\Config $config     上传配置
17 17
      * @param $params     自定义变量,规格参考
18 18
      *                    http://developer.qiniu.com/docs/v6/api/overview/up/response/vars.html#xvar
19
-     * @param $mime       上传数据的mimeType
19
+     * @param string $mime       上传数据的mimeType
20
+     * @param boolean $checkCrc
20 21
      *
21 22
      * @return array    包含已上传文件的信息,类似:
22 23
      *                                              [
Please login to merge, or discard this patch.
src/Qiniu/Region.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -21,6 +21,10 @@
 block discarded – undo
21 21
     public $iovipHost;
22 22
 
23 23
     //构造一个Region对象
24
+
25
+    /**
26
+     * @param string $iovipHost
27
+     */
24 28
     public function __construct(
25 29
         $srcUpHosts = array(),
26 30
         $cdnUpHosts = array(),
Please login to merge, or discard this patch.
src/Qiniu/Storage/BucketManager.php 1 patch
Doc Comments   +24 added lines patch added patch discarded remove patch
@@ -431,6 +431,9 @@  discard block
 block discarded – undo
431 431
         return $scheme . Config::UC_HOST;
432 432
     }
433 433
 
434
+    /**
435
+     * @param string $body
436
+     */
434 437
     private function rsPost($path, $body = null)
435 438
     {
436 439
         $url = $this->getRsHost() . $path;
@@ -443,24 +446,36 @@  discard block
 block discarded – undo
443 446
         return $this->post($url, $body);
444 447
     }
445 448
 
449
+    /**
450
+     * @param string $path
451
+     */
446 452
     private function ucPost($path, $body = null)
447 453
     {
448 454
         $url = $this->getUcHost() . $path;
449 455
         return $this->post($url, $body);
450 456
     }
451 457
 
458
+    /**
459
+     * @param string $path
460
+     */
452 461
     private function apiGet($path)
453 462
     {
454 463
         $url = $this->getApiHost() . $path;
455 464
         return $this->get($url);
456 465
     }
457 466
 
467
+    /**
468
+     * @param string $path
469
+     */
458 470
     private function rsGet($path)
459 471
     {
460 472
         $url = $this->getRsHost() . $path;
461 473
         return $this->get($url);
462 474
     }
463 475
 
476
+    /**
477
+     * @param string $url
478
+     */
464 479
     private function get($url)
465 480
     {
466 481
         $headers = $this->auth->authorization($url);
@@ -471,6 +486,9 @@  discard block
 block discarded – undo
471 486
         return array($ret->json(), null);
472 487
     }
473 488
 
489
+    /**
490
+     * @param string $url
491
+     */
474 492
     private function post($url, $body)
475 493
     {
476 494
         $headers = $this->auth->authorization($url, $body, 'application/x-www-form-urlencoded');
@@ -538,6 +556,9 @@  discard block
 block discarded – undo
538 556
         return $data;
539 557
     }
540 558
 
559
+    /**
560
+     * @param string $operation
561
+     */
541 562
     private static function oneKeyBatch($operation, $bucket, $keys)
542 563
     {
543 564
         $data = array();
@@ -547,6 +568,9 @@  discard block
 block discarded – undo
547 568
         return $data;
548 569
     }
549 570
 
571
+    /**
572
+     * @param string $operation
573
+     */
550 574
     private static function twoKeyBatch($operation, $source_bucket, $key_pairs, $target_bucket, $force)
551 575
     {
552 576
         if ($target_bucket === null) {
Please login to merge, or discard this patch.