Completed
Pull Request — master (#17)
by frey
29:23
created
src/Adapter.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     }
47 47
 
48 48
     /**
49
-     * @return mixed
49
+     * @return string
50 50
      */
51 51
     public function getBucket()
52 52
     {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     }
55 55
 
56 56
     /**
57
-     * @param $path
57
+     * @param string $path
58 58
      *
59 59
      * @return string
60 60
      */
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
     }
394 394
 
395 395
     /**
396
-     * @param $content
396
+     * @param string $content
397 397
      *
398 398
      * @return string|bool
399 399
      */
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
     }
410 410
 
411 411
     /**
412
-     * @param $tmpfname
412
+     * @param string|boolean $tmpfname
413 413
      *
414 414
      * @return bool
415 415
      */
@@ -423,8 +423,8 @@  discard block
 block discarded – undo
423 423
     }
424 424
 
425 425
     /**
426
-     * @param $path
427
-     * @param $content
426
+     * @param string $path
427
+     * @param string $content
428 428
      *
429 429
      * @return bool
430 430
      */
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
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
      *
608 608
      * @param string $path 待编码路径
609 609
      *
610
-     * @return mixed
610
+     * @return string
611 611
      */
612 612
     private static function cosUrlEncode($path)
613 613
     {
@@ -791,6 +791,10 @@  discard block
 block discarded – undo
791 791
 
792 792
     // Check |$path| is a valid file path.
793 793
     // Return true on success, otherwise return false.
794
+
795
+    /**
796
+     * @param string $path
797
+     */
794 798
     private static function isValidPath($path)
795 799
     {
796 800
         if (strpos($path, '?') !== false) {
Please login to merge, or discard this patch.