Completed
Pull Request — master (#14)
by frey
12:43
created
src/Client/Auth.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@
 block discarded – undo
31 31
     /**
32 32
      * 生成单次有效签名函数(用于删除和更新指定fileId资源,使用一次即失效).
33 33
      *
34
-     * @param string $fileId     文件路径,以 /{$appId}/{$bucketName} 开头
35 34
      * @param string $bucketName 文件所在bucket
35
+     * @param string $path
36 36
      *
37 37
      * @return string 签名
38 38
      */
Please login to merge, or discard this patch.
src/Client/Cosapi.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,6 +197,10 @@  discard block
 block discarded – undo
197 197
      * 'Content-Language' => '*'
198 198
      * 'x-cos-meta-自定义内容' => '*'
199 199
      */
200
+
201
+    /**
202
+     * @param string $authority
203
+     */
200 204
     public static function update($bucketName, $path,
201 205
                   $bizAttr = null, $authority = null, $customer_headers_array = null)
202 206
     {
@@ -866,8 +870,8 @@  discard block
 block discarded – undo
866 870
     /**
867 871
      * 判断pattern值是否正确.
868 872
      *
869
-     * @param string $authority
870 873
      *
874
+     * @param string $pattern
871 875
      * @return [type] bool
872 876
      */
873 877
     private static function isPatternValid($pattern)
Please login to merge, or discard this patch.
src/Adapter.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     }
40 40
 
41 41
     /**
42
-     * @return mixed
42
+     * @return string
43 43
      */
44 44
     public function getBucket()
45 45
     {
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-     * @param $path
50
+     * @param string $path
51 51
      *
52 52
      * @return string
53 53
      */
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
     /**
276 276
      * @param string $path
277 277
      *
278
-     * @return array
278
+     * @return string
279 279
      */
280 280
     public function read($path)
281 281
     {
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
     }
385 385
 
386 386
     /**
387
-     * @param $content
387
+     * @param string $content
388 388
      *
389 389
      * @return bool|string
390 390
      */
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
     }
401 401
 
402 402
     /**
403
-     * @param $tmpfname
403
+     * @param boolean|string $tmpfname
404 404
      */
405 405
     private function deleteTempFile($tmpfname)
406 406
     {
@@ -408,8 +408,8 @@  discard block
 block discarded – undo
408 408
     }
409 409
 
410 410
     /**
411
-     * @param $path
412
-     * @param $content
411
+     * @param string $path
412
+     * @param string $content
413 413
      *
414 414
      * @return bool
415 415
      */
Please login to merge, or discard this patch.