Completed
Pull Request — master (#319)
by
unknown
38:55 queued 13:57
created
src/Qiniu/Storage/BucketManager.php 1 patch
Doc Comments   +40 added lines patch added patch discarded remove patch
@@ -967,42 +967,63 @@  discard block
 block discarded – undo
967 967
         return $scheme . Config::UC_HOST;
968 968
     }
969 969
 
970
+    /**
971
+     * @param string $body
972
+     */
970 973
     private function rsPost($path, $body = null)
971 974
     {
972 975
         $url = $this->getRsHost() . $path;
973 976
         return $this->post($url, $body);
974 977
     }
975 978
 
979
+    /**
980
+     * @param string $path
981
+     */
976 982
     private function apiPost($path, $body = null)
977 983
     {
978 984
         $url = $this->getApiHost() . $path;
979 985
         return $this->post($url, $body);
980 986
     }
981 987
 
988
+    /**
989
+     * @param string $body
990
+     */
982 991
     private function ucPost($path, $body = null)
983 992
     {
984 993
         $url = $this->getUcHost() . $path;
985 994
         return $this->post($url, $body);
986 995
     }
987 996
 
997
+    /**
998
+     * @param string $path
999
+     */
988 1000
     private function ucGet($path)
989 1001
     {
990 1002
         $url = $this->getUcHost() . $path;
991 1003
         return $this->get($url);
992 1004
     }
993 1005
 
1006
+    /**
1007
+     * @param string $path
1008
+     */
994 1009
     private function apiGet($path)
995 1010
     {
996 1011
         $url = $this->getApiHost() . $path;
997 1012
         return $this->get($url);
998 1013
     }
999 1014
 
1015
+    /**
1016
+     * @param string $path
1017
+     */
1000 1018
     private function rsGet($path)
1001 1019
     {
1002 1020
         $url = $this->getRsHost() . $path;
1003 1021
         return $this->get($url);
1004 1022
     }
1005 1023
 
1024
+    /**
1025
+     * @param string $url
1026
+     */
1006 1027
     private function get($url)
1007 1028
     {
1008 1029
         $headers = $this->auth->authorization($url);
@@ -1013,6 +1034,9 @@  discard block
 block discarded – undo
1013 1034
         return array($ret->json(), null);
1014 1035
     }
1015 1036
 
1037
+    /**
1038
+     * @param string $url
1039
+     */
1016 1040
     private function post($url, $body)
1017 1041
     {
1018 1042
         $headers = $this->auth->authorization($url, $body, 'application/x-www-form-urlencoded');
@@ -1024,18 +1048,28 @@  discard block
 block discarded – undo
1024 1048
         return array($r, null);
1025 1049
     }
1026 1050
 
1051
+    /**
1052
+     * @param string $path
1053
+     * @param string $body
1054
+     */
1027 1055
     private function ucPostV2($path, $body)
1028 1056
     {
1029 1057
         $url = $this->getUcHost() . $path;
1030 1058
         return $this->postV2($url, $body);
1031 1059
     }
1032 1060
 
1061
+    /**
1062
+     * @param string $path
1063
+     */
1033 1064
     private function rsPostV2($path, $body)
1034 1065
     {
1035 1066
         $url = $this->getRsHost() . $path;
1036 1067
         return $this->postV2($url, $body);
1037 1068
     }
1038 1069
 
1070
+    /**
1071
+     * @param string $url
1072
+     */
1039 1073
     private function postV2($url, $body)
1040 1074
     {
1041 1075
         $headers = $this->auth->authorizationV2($url, 'POST', $body, 'application/json');
@@ -1104,6 +1138,9 @@  discard block
 block discarded – undo
1104 1138
         return $data;
1105 1139
     }
1106 1140
 
1141
+    /**
1142
+     * @param string $operation
1143
+     */
1107 1144
     private static function oneKeyBatch($operation, $bucket, $keys)
1108 1145
     {
1109 1146
         $data = array();
@@ -1113,6 +1150,9 @@  discard block
 block discarded – undo
1113 1150
         return $data;
1114 1151
     }
1115 1152
 
1153
+    /**
1154
+     * @param string $operation
1155
+     */
1116 1156
     private static function twoKeyBatch($operation, $source_bucket, $key_pairs, $target_bucket, $force)
1117 1157
     {
1118 1158
         if ($target_bucket === null) {
Please login to merge, or discard this patch.