Completed
Push — master ( f18dcd...2545e4 )
by r
14:31 queued 12:47
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   +37 added lines patch added patch discarded remove patch
@@ -946,42 +946,63 @@  discard block
 block discarded – undo
946 946
         return $scheme . Config::UC_HOST;
947 947
     }
948 948
 
949
+    /**
950
+     * @param string $body
951
+     */
949 952
     private function rsPost($path, $body = null)
950 953
     {
951 954
         $url = $this->getRsHost() . $path;
952 955
         return $this->post($url, $body);
953 956
     }
954 957
 
958
+    /**
959
+     * @param string $path
960
+     */
955 961
     private function apiPost($path, $body = null)
956 962
     {
957 963
         $url = $this->getApiHost() . $path;
958 964
         return $this->post($url, $body);
959 965
     }
960 966
 
967
+    /**
968
+     * @param string $body
969
+     */
961 970
     private function ucPost($path, $body = null)
962 971
     {
963 972
         $url = $this->getUcHost() . $path;
964 973
         return $this->post($url, $body);
965 974
     }
966 975
 
976
+    /**
977
+     * @param string $path
978
+     */
967 979
     private function ucGet($path)
968 980
     {
969 981
         $url = $this->getUcHost() . $path;
970 982
         return $this->get($url);
971 983
     }
972 984
 
985
+    /**
986
+     * @param string $path
987
+     */
973 988
     private function apiGet($path)
974 989
     {
975 990
         $url = $this->getApiHost() . $path;
976 991
         return $this->get($url);
977 992
     }
978 993
 
994
+    /**
995
+     * @param string $path
996
+     */
979 997
     private function rsGet($path)
980 998
     {
981 999
         $url = $this->getRsHost() . $path;
982 1000
         return $this->get($url);
983 1001
     }
984 1002
 
1003
+    /**
1004
+     * @param string $url
1005
+     */
985 1006
     private function get($url)
986 1007
     {
987 1008
         $headers = $this->auth->authorization($url);
@@ -992,6 +1013,9 @@  discard block
 block discarded – undo
992 1013
         return array($ret->json(), null);
993 1014
     }
994 1015
 
1016
+    /**
1017
+     * @param string $url
1018
+     */
995 1019
     private function post($url, $body)
996 1020
     {
997 1021
         $headers = $this->auth->authorization($url, $body, 'application/x-www-form-urlencoded');
@@ -1003,12 +1027,19 @@  discard block
 block discarded – undo
1003 1027
         return array($r, null);
1004 1028
     }
1005 1029
 
1030
+    /**
1031
+     * @param string $path
1032
+     * @param string $body
1033
+     */
1006 1034
     private function ucPostV2($path, $body)
1007 1035
     {
1008 1036
         $url = $this->getUcHost() . $path;
1009 1037
         return $this->postV2($url, $body);
1010 1038
     }
1011 1039
 
1040
+    /**
1041
+     * @param string $url
1042
+     */
1012 1043
     private function postV2($url, $body)
1013 1044
     {
1014 1045
         $headers = $this->auth->authorizationV2($url, 'POST', $body, 'application/json');
@@ -1077,6 +1108,9 @@  discard block
 block discarded – undo
1077 1108
         return $data;
1078 1109
     }
1079 1110
 
1111
+    /**
1112
+     * @param string $operation
1113
+     */
1080 1114
     private static function oneKeyBatch($operation, $bucket, $keys)
1081 1115
     {
1082 1116
         $data = array();
@@ -1086,6 +1120,9 @@  discard block
 block discarded – undo
1086 1120
         return $data;
1087 1121
     }
1088 1122
 
1123
+    /**
1124
+     * @param string $operation
1125
+     */
1089 1126
     private static function twoKeyBatch($operation, $source_bucket, $key_pairs, $target_bucket, $force)
1090 1127
     {
1091 1128
         if ($target_bucket === null) {
Please login to merge, or discard this patch.