Completed
Pull Request — master (#11415)
by Daniel Gómez
09:01
created
framework/helpers/BaseConsole.php 1 patch
Doc Comments   +10 added lines, -7 removed lines patch added patch discarded remove patch
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
      * - windows without ansicon
577 577
      * - not tty consoles
578 578
      *
579
-     * @param mixed $stream
579
+     * @param resource $stream
580 580
      * @return boolean true if the stream supports ANSI colors, otherwise false.
581 581
      */
582 582
     public static function streamSupportsAnsiColors($stream)
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
      * @param boolean $refresh whether to force checking and not re-use cached size value.
602 602
      * This is useful to detect changing window size while the application is running but may
603 603
      * not get up to date values on every terminal.
604
-     * @return array|boolean An array of ($width, $height) or false when it was not able to determine size.
604
+     * @return string An array of ($width, $height) or false when it was not able to determine size.
605 605
      */
606 606
     public static function getScreenSize($refresh = false)
607 607
     {
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
      * Prints a string to STDOUT.
693 693
      *
694 694
      * @param string $string the string to print
695
-     * @return integer|boolean Number of bytes printed or false on error
695
+     * @return integer Number of bytes printed or false on error
696 696
      */
697 697
     public static function stdout($string)
698 698
     {
@@ -703,7 +703,7 @@  discard block
 block discarded – undo
703 703
      * Prints a string to STDERR.
704 704
      *
705 705
      * @param string $string the string to print
706
-     * @return integer|boolean Number of bytes printed or false on error
706
+     * @return integer Number of bytes printed or false on error
707 707
      */
708 708
     public static function stderr($string)
709 709
     {
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
      * Prints text to STDOUT appended with a carriage return (PHP_EOL).
731 731
      *
732 732
      * @param string $string the text to print
733
-     * @return integer|boolean number of bytes printed or false on error.
733
+     * @return integer number of bytes printed or false on error.
734 734
      */
735 735
     public static function output($string = null)
736 736
     {
@@ -741,7 +741,7 @@  discard block
 block discarded – undo
741 741
      * Prints text to STDERR appended with a carriage return (PHP_EOL).
742 742
      *
743 743
      * @param string $string the text to print
744
-     * @return integer|boolean number of bytes printed or false on error.
744
+     * @return integer number of bytes printed or false on error.
745 745
      */
746 746
     public static function error($string = null)
747 747
     {
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
      *
808 808
      * @param string $message to print out before waiting for user input
809 809
      * @param boolean $default this value is returned if no selection is made.
810
-     * @return boolean whether user confirmed
810
+     * @return boolean|null whether user confirmed
811 811
      */
812 812
     public static function confirm($message, $default = false)
813 813
     {
@@ -1035,6 +1035,9 @@  discard block
 block discarded – undo
1035 1035
         return $table;
1036 1036
     }
1037 1037
 
1038
+    /**
1039
+     * @param string $conector
1040
+     */
1038 1041
     protected static function renderRows(array $rows, array $size, $conector)
1039 1042
     {
1040 1043
         $render = '';
Please login to merge, or discard this patch.