Completed
Push — master ( 94350e...2756ab )
by Bai
16:19 queued 14:10
created
src/Qiniu/functions.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * array 辅助方法,无值时不set
128 128
      *
129 129
      * @param $array 待操作array
130
-     * @param $key key
130
+     * @param string $key key
131 131
      * @param $value value 为null时 不设置
132 132
      *
133 133
      * @return array 原来的array,便于连续操作
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      *
179 179
      * @param  string $url 图片链接
180 180
      * @param  string $image 水印图片链接
181
-     * @param  numeric $dissolve 透明度
181
+     * @param  integer $dissolve 透明度
182 182
      * @param  string $gravity 水印位置
183 183
      * @param  numeric $dx 横轴边距
184 184
      * @param  numeric $dy 纵轴边距
@@ -210,9 +210,9 @@  discard block
 block discarded – undo
210 210
      * @param  string $url 图片链接
211 211
      * @param  string $text 文字
212 212
      * @param  string $font 文字字体
213
-     * @param  string $fontSize 文字字号
213
+     * @param  integer $fontSize 文字字号
214 214
      * @param  string $fontColor 文字颜色
215
-     * @param  numeric $dissolve 透明度
215
+     * @param  integer $dissolve 透明度
216 216
      * @param  string $gravity 水印位置
217 217
      * @param  numeric $dx 横轴边距
218 218
      * @param  numeric $dy 纵轴边距
Please login to merge, or discard this patch.
src/Qiniu/Storage/BucketManager.php 2 patches
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -264,12 +264,19 @@  discard block
 block discarded – undo
264 264
         return $this->rsPost('/batch', $params);
265 265
     }
266 266
 
267
+    /**
268
+     * @param string $path
269
+     * @param string $body
270
+     */
267 271
     private function rsPost($path, $body = null)
268 272
     {
269 273
         $url = Config::RS_HOST . $path;
270 274
         return $this->post($url, $body);
271 275
     }
272 276
 
277
+    /**
278
+     * @param string $path
279
+     */
273 280
     private function rsGet($path)
274 281
     {
275 282
         $url = Config::RS_HOST . $path;
@@ -282,6 +289,9 @@  discard block
 block discarded – undo
282 289
         return $this->post($url, $body);
283 290
     }
284 291
 
292
+    /**
293
+     * @param string $url
294
+     */
285 295
     private function get($url)
286 296
     {
287 297
         $headers = $this->auth->authorization($url);
@@ -292,6 +302,9 @@  discard block
 block discarded – undo
292 302
         return array($ret->json(), null);
293 303
     }
294 304
 
305
+    /**
306
+     * @param string $url
307
+     */
295 308
     private function post($url, $body)
296 309
     {
297 310
         $headers = $this->auth->authorization($url, $body, 'application/x-www-form-urlencoded');
@@ -332,6 +345,9 @@  discard block
 block discarded – undo
332 345
         return self::oneKeyBatch('stat', $bucket, $keys);
333 346
     }
334 347
 
348
+    /**
349
+     * @param string $operation
350
+     */
335 351
     private static function oneKeyBatch($operation, $bucket, $keys)
336 352
     {
337 353
         $data = array();
@@ -341,6 +357,9 @@  discard block
 block discarded – undo
341 357
         return $data;
342 358
     }
343 359
 
360
+    /**
361
+     * @param string $operation
362
+     */
344 363
     private static function twoKeyBatch($operation, $source_bucket, $key_pairs, $target_bucket)
345 364
     {
346 365
         if ($target_bucket === null) {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 
4 4
 use Qiniu\Auth;
5 5
 use Qiniu\Config;
6
-use Qiniu\Zone;
7 6
 use Qiniu\Http\Client;
8 7
 use Qiniu\Http\Error;
8
+use Qiniu\Zone;
9 9
 
10 10
 /**
11 11
  * 主要涉及了空间资源管理及批量操作接口的实现,具体的接口规格可以参考
Please login to merge, or discard this patch.