Completed
Pull Request — master (#293)
by
unknown
24:12 queued 40s
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   +38 added lines patch added patch discarded remove patch
@@ -825,42 +825,64 @@  discard block
 block discarded – undo
825 825
         return $scheme . Config::UC_HOST;
826 826
     }
827 827
 
828
+    /**
829
+     * @param string $body
830
+     */
828 831
     private function rsPost($path, $body = null)
829 832
     {
830 833
         $url = $this->getRsHost() . $path;
831 834
         return $this->post($url, $body);
832 835
     }
833 836
 
837
+    /**
838
+     * @param string $path
839
+     */
834 840
     private function apiPost($path, $body = null)
835 841
     {
836 842
         $url = $this->getApiHost() . $path;
837 843
         return $this->post($url, $body);
838 844
     }
839 845
 
846
+    /**
847
+     * @param string $path
848
+     * @param string $body
849
+     */
840 850
     private function ucPost($path, $body = null)
841 851
     {
842 852
         $url = $this->getUcHost() . $path;
843 853
         return $this->post($url, $body);
844 854
     }
845 855
 
856
+    /**
857
+     * @param string $path
858
+     */
846 859
     private function ucGet($path)
847 860
     {
848 861
         $url = $this->getUcHost() . $path;
849 862
         return $this->get($url);
850 863
     }
851 864
 
865
+    /**
866
+     * @param string $path
867
+     */
852 868
     private function apiGet($path)
853 869
     {
854 870
         $url = $this->getApiHost() . $path;
855 871
         return $this->get($url);
856 872
     }
857 873
 
874
+    /**
875
+     * @param string $path
876
+     */
858 877
     private function rsGet($path)
859 878
     {
860 879
         $url = $this->getRsHost() . $path;
861 880
         return $this->get($url);
862 881
     }
863 882
 
883
+    /**
884
+     * @param string $url
885
+     */
864 886
     private function get($url)
865 887
     {
866 888
         $headers = $this->auth->authorization($url);
@@ -871,6 +893,9 @@  discard block
 block discarded – undo
871 893
         return array($ret->json(), null);
872 894
     }
873 895
 
896
+    /**
897
+     * @param string $url
898
+     */
874 899
     private function post($url, $body)
875 900
     {
876 901
         $headers = $this->auth->authorization($url, $body, 'application/x-www-form-urlencoded');
@@ -882,12 +907,19 @@  discard block
 block discarded – undo
882 907
         return array($r, null);
883 908
     }
884 909
 
910
+    /**
911
+     * @param string $path
912
+     * @param string $body
913
+     */
885 914
     private function ucPostV2($path, $body)
886 915
     {
887 916
         $url = $this->getUcHost() . $path;
888 917
         return $this->postV2($url, $body);
889 918
     }
890 919
 
920
+    /**
921
+     * @param string $url
922
+     */
891 923
     private function postV2($url, $body)
892 924
     {
893 925
         $headers = $this->auth->authorizationV2($url, 'POST', $body, 'application/json');
@@ -956,6 +988,9 @@  discard block
 block discarded – undo
956 988
         return $data;
957 989
     }
958 990
 
991
+    /**
992
+     * @param string $operation
993
+     */
959 994
     private static function oneKeyBatch($operation, $bucket, $keys)
960 995
     {
961 996
         $data = array();
@@ -965,6 +1000,9 @@  discard block
 block discarded – undo
965 1000
         return $data;
966 1001
     }
967 1002
 
1003
+    /**
1004
+     * @param string $operation
1005
+     */
968 1006
     private static function twoKeyBatch($operation, $source_bucket, $key_pairs, $target_bucket, $force)
969 1007
     {
970 1008
         if ($target_bucket === null) {
Please login to merge, or discard this patch.