@@ -42,7 +42,7 @@ public function buckets()
4242 * @param $limit 单次列举个数限制
4343 * @param $delimiter 指定目录分隔符
4444 *
45- * @return array[] 包含文件信息的数组,类似:[
45+ * @return array 包含文件信息的数组,类似:[
4646 * {
4747 * "hash" => "<Hash string>",
4848 * "key" => "<Key string>",
@@ -83,7 +83,7 @@ public function listFiles($bucket, $prefix = null, $marker = null, $limit = 1000
8383 * @param $bucket 待获取信息资源所在的空间
8484 * @param $key 待获取资源的文件名
8585 *
86- * @return array[] 包含文件信息的数组,类似:
86+ * @return array 包含文件信息的数组,类似:
8787 * [
8888 * "hash" => "<Hash string>",
8989 * "key" => "<Key string>",
@@ -105,13 +105,13 @@ public function stat($bucket, $key)
105105 * @param $bucket 待删除资源所在的空间
106106 * @param $key 待删除资源的文件名
107107 *
108- * @return 成功返回NULL,失败返回对象{"error" => "<errMsg string>", ...}
108+ * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error
109109 * @link http://developer.qiniu.com/docs/v6/api/reference/rs/delete.html
110110 */
111111 public function delete ($ bucket , $ key )
112112 {
113113 $ path = '/delete/ ' . \Qiniu \entry ($ bucket , $ key );
114- list ($ _ , $ error ) = $ this ->rsPost ($ path );
114+ list (, $ error ) = $ this ->rsPost ($ path );
115115 return $ error ;
116116 }
117117
@@ -123,7 +123,7 @@ public function delete($bucket, $key)
123123 * @param $oldname 待操作资源文件名
124124 * @param $newname 目标资源文件名
125125 *
126- * @return 成功返回NULL,失败返回对象{"error" => "<errMsg string>", ...}
126+ * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error
127127 */
128128 public function rename ($ bucket , $ oldname , $ newname )
129129 {
@@ -138,15 +138,15 @@ public function rename($bucket, $oldname, $newname)
138138 * @param $to_bucket 目标资源空间名
139139 * @param $to_key 目标资源文件名
140140 *
141- * @return 成功返回NULL,失败返回对象{"error" => "<errMsg string>", ...}
141+ * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error
142142 * @link http://developer.qiniu.com/docs/v6/api/reference/rs/copy.html
143143 */
144144 public function copy ($ from_bucket , $ from_key , $ to_bucket , $ to_key )
145145 {
146146 $ from = \Qiniu \entry ($ from_bucket , $ from_key );
147147 $ to = \Qiniu \entry ($ to_bucket , $ to_key );
148148 $ path = '/copy/ ' . $ from . '/ ' . $ to ;
149- list ($ _ , $ error ) = $ this ->rsPost ($ path );
149+ list (, $ error ) = $ this ->rsPost ($ path );
150150 return $ error ;
151151 }
152152
@@ -158,15 +158,15 @@ public function copy($from_bucket, $from_key, $to_bucket, $to_key)
158158 * @param $to_bucket 目标资源空间名
159159 * @param $to_key 目标资源文件名
160160 *
161- * @return 成功返回NULL,失败返回对象{"error" => "<errMsg string>", ...}
161+ * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error
162162 * @link http://developer.qiniu.com/docs/v6/api/reference/rs/move.html
163163 */
164164 public function move ($ from_bucket , $ from_key , $ to_bucket , $ to_key )
165165 {
166166 $ from = \Qiniu \entry ($ from_bucket , $ from_key );
167167 $ to = \Qiniu \entry ($ to_bucket , $ to_key );
168168 $ path = '/move/ ' . $ from . '/ ' . $ to ;
169- list ($ _ , $ error ) = $ this ->rsPost ($ path );
169+ list (, $ error ) = $ this ->rsPost ($ path );
170170 return $ error ;
171171 }
172172
@@ -177,15 +177,15 @@ public function move($from_bucket, $from_key, $to_bucket, $to_key)
177177 * @param $key 待操作资源文件名
178178 * @param $mime 待操作文件目标mimeType
179179 *
180- * @return 成功返回NULL,失败返回对象{"error" => "<errMsg string>", ...}
180+ * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error
181181 * @link http://developer.qiniu.com/docs/v6/api/reference/rs/chgm.html
182182 */
183183 public function changeMime ($ bucket , $ key , $ mime )
184184 {
185185 $ resource = \Qiniu \entry ($ bucket , $ key );
186186 $ encode_mime = \Qiniu \base64_urlSafeEncode ($ mime );
187187 $ path = '/chgm/ ' . $ resource . '/mime/ ' .$ encode_mime ;
188- list ($ _ , $ error ) = $ this ->rsPost ($ path );
188+ list (, $ error ) = $ this ->rsPost ($ path );
189189 return $ error ;
190190 }
191191
@@ -196,7 +196,7 @@ public function changeMime($bucket, $key, $mime)
196196 * @param $bucket 目标资源空间
197197 * @param $key 目标资源文件名
198198 *
199- * @return array[] 包含已拉取的文件信息。
199+ * @return array 包含已拉取的文件信息。
200200 * 成功时: [
201201 * [
202202 * "hash" => "<Hash string>",
@@ -226,14 +226,14 @@ public function fetch($url, $bucket, $key)
226226 * @param $bucket 待获取资源所在的空间
227227 * @param $key 代获取资源文件名
228228 *
229- * @return 成功返回NULL,失败返回对象{"error" => "<errMsg string>", ...}
229+ * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error
230230 * @link http://developer.qiniu.com/docs/v6/api/reference/rs/prefetch.html
231231 */
232232 public function prefetch ($ bucket , $ key )
233233 {
234234 $ resource = \Qiniu \entry ($ bucket , $ key );
235235 $ path = '/prefetch/ ' . $ resource ;
236- list ($ _ , $ error ) = $ this ->ioPost ($ path );
236+ list (, $ error ) = $ this ->ioPost ($ path );
237237 return $ error ;
238238 }
239239
@@ -242,7 +242,7 @@ public function prefetch($bucket, $key)
242242 *
243243 * @param $operations 资源管理操作数组
244244 *
245- * @return 每个资源的处理情况,结果类似:
245+ * @return array 每个资源的处理情况,结果类似:
246246 * [
247247 * { "code" => <HttpCode int>, "data" => <Data> },
248248 * { "code" => <HttpCode int> },
0 commit comments