@@ -42,7 +42,7 @@ public function buckets()
42
42
* @param $limit 单次列举个数限制
43
43
* @param $delimiter 指定目录分隔符
44
44
*
45
- * @return array[] 包含文件信息的数组,类似:[
45
+ * @return array 包含文件信息的数组,类似:[
46
46
* {
47
47
* "hash" => "<Hash string>",
48
48
* "key" => "<Key string>",
@@ -83,7 +83,7 @@ public function listFiles($bucket, $prefix = null, $marker = null, $limit = 1000
83
83
* @param $bucket 待获取信息资源所在的空间
84
84
* @param $key 待获取资源的文件名
85
85
*
86
- * @return array[] 包含文件信息的数组,类似:
86
+ * @return array 包含文件信息的数组,类似:
87
87
* [
88
88
* "hash" => "<Hash string>",
89
89
* "key" => "<Key string>",
@@ -105,13 +105,13 @@ public function stat($bucket, $key)
105
105
* @param $bucket 待删除资源所在的空间
106
106
* @param $key 待删除资源的文件名
107
107
*
108
- * @return 成功返回NULL,失败返回对象{"error" => "<errMsg string>", ...}
108
+ * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error
109
109
* @link http://developer.qiniu.com/docs/v6/api/reference/rs/delete.html
110
110
*/
111
111
public function delete ($ bucket , $ key )
112
112
{
113
113
$ path = '/delete/ ' . \Qiniu \entry ($ bucket , $ key );
114
- list ($ _ , $ error ) = $ this ->rsPost ($ path );
114
+ list (, $ error ) = $ this ->rsPost ($ path );
115
115
return $ error ;
116
116
}
117
117
@@ -123,7 +123,7 @@ public function delete($bucket, $key)
123
123
* @param $oldname 待操作资源文件名
124
124
* @param $newname 目标资源文件名
125
125
*
126
- * @return 成功返回NULL,失败返回对象{"error" => "<errMsg string>", ...}
126
+ * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error
127
127
*/
128
128
public function rename ($ bucket , $ oldname , $ newname )
129
129
{
@@ -138,15 +138,15 @@ public function rename($bucket, $oldname, $newname)
138
138
* @param $to_bucket 目标资源空间名
139
139
* @param $to_key 目标资源文件名
140
140
*
141
- * @return 成功返回NULL,失败返回对象{"error" => "<errMsg string>", ...}
141
+ * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error
142
142
* @link http://developer.qiniu.com/docs/v6/api/reference/rs/copy.html
143
143
*/
144
144
public function copy ($ from_bucket , $ from_key , $ to_bucket , $ to_key )
145
145
{
146
146
$ from = \Qiniu \entry ($ from_bucket , $ from_key );
147
147
$ to = \Qiniu \entry ($ to_bucket , $ to_key );
148
148
$ path = '/copy/ ' . $ from . '/ ' . $ to ;
149
- list ($ _ , $ error ) = $ this ->rsPost ($ path );
149
+ list (, $ error ) = $ this ->rsPost ($ path );
150
150
return $ error ;
151
151
}
152
152
@@ -158,15 +158,15 @@ public function copy($from_bucket, $from_key, $to_bucket, $to_key)
158
158
* @param $to_bucket 目标资源空间名
159
159
* @param $to_key 目标资源文件名
160
160
*
161
- * @return 成功返回NULL,失败返回对象{"error" => "<errMsg string>", ...}
161
+ * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error
162
162
* @link http://developer.qiniu.com/docs/v6/api/reference/rs/move.html
163
163
*/
164
164
public function move ($ from_bucket , $ from_key , $ to_bucket , $ to_key )
165
165
{
166
166
$ from = \Qiniu \entry ($ from_bucket , $ from_key );
167
167
$ to = \Qiniu \entry ($ to_bucket , $ to_key );
168
168
$ path = '/move/ ' . $ from . '/ ' . $ to ;
169
- list ($ _ , $ error ) = $ this ->rsPost ($ path );
169
+ list (, $ error ) = $ this ->rsPost ($ path );
170
170
return $ error ;
171
171
}
172
172
@@ -177,15 +177,15 @@ public function move($from_bucket, $from_key, $to_bucket, $to_key)
177
177
* @param $key 待操作资源文件名
178
178
* @param $mime 待操作文件目标mimeType
179
179
*
180
- * @return 成功返回NULL,失败返回对象{"error" => "<errMsg string>", ...}
180
+ * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error
181
181
* @link http://developer.qiniu.com/docs/v6/api/reference/rs/chgm.html
182
182
*/
183
183
public function changeMime ($ bucket , $ key , $ mime )
184
184
{
185
185
$ resource = \Qiniu \entry ($ bucket , $ key );
186
186
$ encode_mime = \Qiniu \base64_urlSafeEncode ($ mime );
187
187
$ path = '/chgm/ ' . $ resource . '/mime/ ' .$ encode_mime ;
188
- list ($ _ , $ error ) = $ this ->rsPost ($ path );
188
+ list (, $ error ) = $ this ->rsPost ($ path );
189
189
return $ error ;
190
190
}
191
191
@@ -196,7 +196,7 @@ public function changeMime($bucket, $key, $mime)
196
196
* @param $bucket 目标资源空间
197
197
* @param $key 目标资源文件名
198
198
*
199
- * @return array[] 包含已拉取的文件信息。
199
+ * @return array 包含已拉取的文件信息。
200
200
* 成功时: [
201
201
* [
202
202
* "hash" => "<Hash string>",
@@ -226,14 +226,14 @@ public function fetch($url, $bucket, $key)
226
226
* @param $bucket 待获取资源所在的空间
227
227
* @param $key 代获取资源文件名
228
228
*
229
- * @return 成功返回NULL,失败返回对象{"error" => "<errMsg string>", ...}
229
+ * @return mixed 成功返回NULL,失败返回对象Qiniu\Http\Error
230
230
* @link http://developer.qiniu.com/docs/v6/api/reference/rs/prefetch.html
231
231
*/
232
232
public function prefetch ($ bucket , $ key )
233
233
{
234
234
$ resource = \Qiniu \entry ($ bucket , $ key );
235
235
$ path = '/prefetch/ ' . $ resource ;
236
- list ($ _ , $ error ) = $ this ->ioPost ($ path );
236
+ list (, $ error ) = $ this ->ioPost ($ path );
237
237
return $ error ;
238
238
}
239
239
@@ -242,7 +242,7 @@ public function prefetch($bucket, $key)
242
242
*
243
243
* @param $operations 资源管理操作数组
244
244
*
245
- * @return 每个资源的处理情况,结果类似:
245
+ * @return array 每个资源的处理情况,结果类似:
246
246
* [
247
247
* { "code" => <HttpCode int>, "data" => <Data> },
248
248
* { "code" => <HttpCode int> },
0 commit comments