Completed
Pull Request — master (#293)
by
unknown
30:06 queued 05:14
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   +35 added lines patch added patch discarded remove patch
@@ -733,6 +733,9 @@  discard block
 block discarded – undo
733 733
         return $scheme . Config::UC_HOST;
734 734
     }
735 735
 
736
+    /**
737
+     * @param string $body
738
+     */
736 739
     private function rsPost($path, $body = null)
737 740
     {
738 741
         $url = $this->getRsHost() . $path;
@@ -745,30 +748,46 @@  discard block
 block discarded – undo
745 748
         return $this->post($url, $body);
746 749
     }
747 750
 
751
+    /**
752
+     * @param string $path
753
+     * @param string $body
754
+     */
748 755
     private function ucPost($path, $body = null)
749 756
     {
750 757
         $url = $this->getUcHost() . $path;
751 758
         return $this->post($url, $body);
752 759
     }
753 760
 
761
+    /**
762
+     * @param string $path
763
+     */
754 764
     private function ucGet($path)
755 765
     {
756 766
         $url = $this->getUcHost() . $path;
757 767
         return $this->get($url);
758 768
     }
759 769
 
770
+    /**
771
+     * @param string $path
772
+     */
760 773
     private function apiGet($path)
761 774
     {
762 775
         $url = $this->getApiHost() . $path;
763 776
         return $this->get($url);
764 777
     }
765 778
 
779
+    /**
780
+     * @param string $path
781
+     */
766 782
     private function rsGet($path)
767 783
     {
768 784
         $url = $this->getRsHost() . $path;
769 785
         return $this->get($url);
770 786
     }
771 787
 
788
+    /**
789
+     * @param string $url
790
+     */
772 791
     private function get($url)
773 792
     {
774 793
         $headers = $this->auth->authorization($url);
@@ -779,6 +798,9 @@  discard block
 block discarded – undo
779 798
         return array($ret->json(), null);
780 799
     }
781 800
 
801
+    /**
802
+     * @param string $url
803
+     */
782 804
     private function post($url, $body)
783 805
     {
784 806
         $headers = $this->auth->authorization($url, $body, 'application/x-www-form-urlencoded');
@@ -790,11 +812,18 @@  discard block
 block discarded – undo
790 812
         return array($r, null);
791 813
     }
792 814
 
815
+    /**
816
+     * @param string $path
817
+     * @param string $body
818
+     */
793 819
     private function ucPostV2($path, $body){
794 820
         $url = $this->getUcHost() . $path;
795 821
         return $this->postV2($url, $body);
796 822
     }
797 823
 
824
+    /**
825
+     * @param string $url
826
+     */
798 827
     private function postV2($url, $body)
799 828
     {
800 829
         $headers = $this->auth->authorizationV2($url, 'POST', $body, 'application/json');
@@ -863,6 +892,9 @@  discard block
 block discarded – undo
863 892
         return $data;
864 893
     }
865 894
 
895
+    /**
896
+     * @param string $operation
897
+     */
866 898
     private static function oneKeyBatch($operation, $bucket, $keys)
867 899
     {
868 900
         $data = array();
@@ -872,6 +904,9 @@  discard block
 block discarded – undo
872 904
         return $data;
873 905
     }
874 906
 
907
+    /**
908
+     * @param string $operation
909
+     */
875 910
     private static function twoKeyBatch($operation, $source_bucket, $key_pairs, $target_bucket, $force)
876 911
     {
877 912
         if ($target_bucket === null) {
Please login to merge, or discard this patch.