Completed
Pull Request — master (#293)
by
unknown
21:33
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   +28 added lines patch added patch discarded remove patch
@@ -546,6 +546,9 @@  discard block
 block discarded – undo
546 546
         return $scheme . Config::UC_HOST;
547 547
     }
548 548
 
549
+    /**
550
+     * @param string $body
551
+     */
549 552
     private function rsPost($path, $body = null)
550 553
     {
551 554
         $url = $this->getRsHost() . $path;
@@ -558,30 +561,46 @@  discard block
 block discarded – undo
558 561
         return $this->post($url, $body);
559 562
     }
560 563
 
564
+    /**
565
+     * @param string $path
566
+     * @param string $body
567
+     */
561 568
     private function ucPost($path, $body = null)
562 569
     {
563 570
         $url = $this->getUcHost() . $path;
564 571
         return $this->post($url, $body);
565 572
     }
566 573
 
574
+    /**
575
+     * @param string $path
576
+     */
567 577
     private function ucGet($path)
568 578
     {
569 579
         $url = $this->getUcHost() . $path;
570 580
         return $this->get($url);
571 581
     }
572 582
 
583
+    /**
584
+     * @param string $path
585
+     */
573 586
     private function apiGet($path)
574 587
     {
575 588
         $url = $this->getApiHost() . $path;
576 589
         return $this->get($url);
577 590
     }
578 591
 
592
+    /**
593
+     * @param string $path
594
+     */
579 595
     private function rsGet($path)
580 596
     {
581 597
         $url = $this->getRsHost() . $path;
582 598
         return $this->get($url);
583 599
     }
584 600
 
601
+    /**
602
+     * @param string $url
603
+     */
585 604
     private function get($url)
586 605
     {
587 606
         $headers = $this->auth->authorization($url);
@@ -592,6 +611,9 @@  discard block
 block discarded – undo
592 611
         return array($ret->json(), null);
593 612
     }
594 613
 
614
+    /**
615
+     * @param string $url
616
+     */
595 617
     private function post($url, $body)
596 618
     {
597 619
         $headers = $this->auth->authorization($url, $body, 'application/x-www-form-urlencoded');
@@ -659,6 +681,9 @@  discard block
 block discarded – undo
659 681
         return $data;
660 682
     }
661 683
 
684
+    /**
685
+     * @param string $operation
686
+     */
662 687
     private static function oneKeyBatch($operation, $bucket, $keys)
663 688
     {
664 689
         $data = array();
@@ -668,6 +693,9 @@  discard block
 block discarded – undo
668 693
         return $data;
669 694
     }
670 695
 
696
+    /**
697
+     * @param string $operation
698
+     */
671 699
     private static function twoKeyBatch($operation, $source_bucket, $key_pairs, $target_bucket, $force)
672 700
     {
673 701
         if ($target_bucket === null) {
Please login to merge, or discard this patch.