Completed
Push — master ( b4c21f...0af6cb )
by Bai
15s queued 10s
created
src/Qiniu/Storage/ArgusManager.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -90,12 +90,18 @@  discard block
 block discarded – undo
90 90
         return $scheme . Config::ARGUS_HOST;
91 91
     }
92 92
 
93
+    /**
94
+     * @param string $path
95
+     */
93 96
     private function arPost($path, $body = null)
94 97
     {
95 98
         $url = $this->getArHost() . $path;
96 99
         return $this->post($url, $body);
97 100
     }
98 101
 
102
+    /**
103
+     * @param string $url
104
+     */
99 105
     private function get($url)
100 106
     {
101 107
         $headers = $this->auth->authorizationV2($url, 'GET');
@@ -103,6 +109,9 @@  discard block
 block discarded – undo
103 109
         return Client::get($url, $headers);
104 110
     }
105 111
 
112
+    /**
113
+     * @param string $url
114
+     */
106 115
     private function post($url, $body)
107 116
     {
108 117
         $headers = $this->auth->authorizationV2($url, 'POST', $body, 'application/json');
Please login to merge, or discard this patch.
src/Qiniu/Storage/BucketManager.php 1 patch
Doc Comments   +40 added lines patch added patch discarded remove patch
@@ -1037,42 +1037,63 @@  discard block
 block discarded – undo
1037 1037
         return $scheme . Config::UC_HOST;
1038 1038
     }
1039 1039
 
1040
+    /**
1041
+     * @param string $body
1042
+     */
1040 1043
     private function rsPost($path, $body = null)
1041 1044
     {
1042 1045
         $url = $this->getRsHost() . $path;
1043 1046
         return $this->post($url, $body);
1044 1047
     }
1045 1048
 
1049
+    /**
1050
+     * @param string $path
1051
+     */
1046 1052
     private function apiPost($path, $body = null)
1047 1053
     {
1048 1054
         $url = $this->getApiHost() . $path;
1049 1055
         return $this->post($url, $body);
1050 1056
     }
1051 1057
 
1058
+    /**
1059
+     * @param string $body
1060
+     */
1052 1061
     private function ucPost($path, $body = null)
1053 1062
     {
1054 1063
         $url = $this->getUcHost() . $path;
1055 1064
         return $this->post($url, $body);
1056 1065
     }
1057 1066
 
1067
+    /**
1068
+     * @param string $path
1069
+     */
1058 1070
     private function ucGet($path)
1059 1071
     {
1060 1072
         $url = $this->getUcHost() . $path;
1061 1073
         return $this->get($url);
1062 1074
     }
1063 1075
 
1076
+    /**
1077
+     * @param string $path
1078
+     */
1064 1079
     private function apiGet($path)
1065 1080
     {
1066 1081
         $url = $this->getApiHost() . $path;
1067 1082
         return $this->get($url);
1068 1083
     }
1069 1084
 
1085
+    /**
1086
+     * @param string $path
1087
+     */
1070 1088
     private function rsGet($path)
1071 1089
     {
1072 1090
         $url = $this->getRsHost() . $path;
1073 1091
         return $this->get($url);
1074 1092
     }
1075 1093
 
1094
+    /**
1095
+     * @param string $url
1096
+     */
1076 1097
     private function get($url)
1077 1098
     {
1078 1099
         $headers = $this->auth->authorization($url);
@@ -1083,12 +1104,18 @@  discard block
 block discarded – undo
1083 1104
         return array($ret->json(), null);
1084 1105
     }
1085 1106
 
1107
+    /**
1108
+     * @param string $url
1109
+     */
1086 1110
     private function getV2($url)
1087 1111
     {
1088 1112
         $headers = $this->auth->authorizationV2($url, 'GET');
1089 1113
         return Client::get($url, $headers);
1090 1114
     }
1091 1115
 
1116
+    /**
1117
+     * @param string $url
1118
+     */
1092 1119
     private function post($url, $body)
1093 1120
     {
1094 1121
         $headers = $this->auth->authorization($url, $body, 'application/x-www-form-urlencoded');
@@ -1100,12 +1127,19 @@  discard block
 block discarded – undo
1100 1127
         return array($r, null);
1101 1128
     }
1102 1129
 
1130
+    /**
1131
+     * @param string $path
1132
+     * @param string $body
1133
+     */
1103 1134
     private function ucPostV2($path, $body)
1104 1135
     {
1105 1136
         $url = $this->getUcHost() . $path;
1106 1137
         return $this->postV2($url, $body);
1107 1138
     }
1108 1139
 
1140
+    /**
1141
+     * @param string $url
1142
+     */
1109 1143
     private function postV2($url, $body)
1110 1144
     {
1111 1145
         $headers = $this->auth->authorizationV2($url, 'POST', $body, 'application/json');
@@ -1174,6 +1208,9 @@  discard block
 block discarded – undo
1174 1208
         return $data;
1175 1209
     }
1176 1210
 
1211
+    /**
1212
+     * @param string $operation
1213
+     */
1177 1214
     private static function oneKeyBatch($operation, $bucket, $keys)
1178 1215
     {
1179 1216
         $data = array();
@@ -1183,6 +1220,9 @@  discard block
 block discarded – undo
1183 1220
         return $data;
1184 1221
     }
1185 1222
 
1223
+    /**
1224
+     * @param string $operation
1225
+     */
1186 1226
     private static function twoKeyBatch($operation, $source_bucket, $key_pairs, $target_bucket, $force)
1187 1227
     {
1188 1228
         if ($target_bucket === null) {
Please login to merge, or discard this patch.