Completed
Push — master ( 98fd9c...c23e7d )
by r
04:55
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
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.
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -288,12 +288,18 @@  discard block
 block discarded – undo
288 288
         return $error;
289 289
     }
290 290
 
291
+    /**
292
+     * @param string $body
293
+     */
291 294
     private function rsPost($path, $body = null)
292 295
     {
293 296
         $url = Config::RS_HOST . $path;
294 297
         return $this->post($url, $body);
295 298
     }
296 299
 
300
+    /**
301
+     * @param string $path
302
+     */
297 303
     private function rsGet($path)
298 304
     {
299 305
         $url = Config::RS_HOST . $path;
@@ -306,6 +312,9 @@  discard block
 block discarded – undo
306 312
         return $this->post($url, $body);
307 313
     }
308 314
 
315
+    /**
316
+     * @param string $url
317
+     */
309 318
     private function get($url)
310 319
     {
311 320
         $headers = $this->auth->authorization($url);
@@ -316,6 +325,9 @@  discard block
 block discarded – undo
316 325
         return array($ret->json(), null);
317 326
     }
318 327
 
328
+    /**
329
+     * @param string $url
330
+     */
319 331
     private function post($url, $body)
320 332
     {
321 333
         $headers = $this->auth->authorization($url, $body, 'application/x-www-form-urlencoded');
@@ -356,6 +368,9 @@  discard block
 block discarded – undo
356 368
         return self::oneKeyBatch('stat', $bucket, $keys);
357 369
     }
358 370
 
371
+    /**
372
+     * @param string $operation
373
+     */
359 374
     private static function oneKeyBatch($operation, $bucket, $keys)
360 375
     {
361 376
         $data = array();
@@ -365,6 +380,9 @@  discard block
 block discarded – undo
365 380
         return $data;
366 381
     }
367 382
 
383
+    /**
384
+     * @param string $operation
385
+     */
368 386
     private static function twoKeyBatch($operation, $source_bucket, $key_pairs, $target_bucket)
369 387
     {
370 388
         if ($target_bucket === null) {
Please login to merge, or discard this patch.
src/Qiniu/Cdn/CdnManager.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -132,6 +132,10 @@
 block discarded – undo
132 132
         return $this->post($url, $body);
133 133
     }
134 134
 
135
+    /**
136
+     * @param string $url
137
+     * @param string $body
138
+     */
135 139
     private function post($url, $body)
136 140
     {
137 141
         $headers = $this->auth->authorization($url, $body, 'application/json');
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Qiniu\Cdn;
4 4
 
5 5
 use Qiniu\Auth;
6
-use Qiniu\Http\Error;
7 6
 use Qiniu\Http\Client;
7
+use Qiniu\Http\Error;
8 8
 
9 9
 final class CdnManager
10 10
 {
Please login to merge, or discard this patch.