@@ -142,6 +142,8 @@ class CLI
142142
143143 /**
144144 * Static "constructor".
145+ *
146+ * @return void
145147 */
146148 public static function init ()
147149 {
@@ -429,6 +431,8 @@ protected static function validate(string $field, string $value, $rules): bool
429431 /**
430432 * Outputs a string to the CLI without any surrounding newlines.
431433 * Useful for showing repeating elements on a single line.
434+ *
435+ * @return void
432436 */
433437 public static function print (string $ text = '' , ?string $ foreground = null , ?string $ background = null )
434438 {
@@ -443,6 +447,8 @@ public static function print(string $text = '', ?string $foreground = null, ?str
443447
444448 /**
445449 * Outputs a string to the cli on it's own line.
450+ *
451+ * @return void
446452 */
447453 public static function write (string $ text = '' , ?string $ foreground = null , ?string $ background = null )
448454 {
@@ -460,6 +466,8 @@ public static function write(string $text = '', ?string $foreground = null, ?str
460466
461467 /**
462468 * Outputs an error to the CLI using STDERR instead of STDOUT
469+ *
470+ * @return void
463471 */
464472 public static function error (string $ text , string $ foreground = 'light_red ' , ?string $ background = null )
465473 {
@@ -481,6 +489,8 @@ public static function error(string $text, string $foreground = 'light_red', ?st
481489 * Beeps a certain number of times.
482490 *
483491 * @param int $num The number of times to beep
492+ *
493+ * @return void
484494 */
485495 public static function beep (int $ num = 1 )
486496 {
@@ -493,6 +503,8 @@ public static function beep(int $num = 1)
493503 *
494504 * @param int $seconds Number of seconds
495505 * @param bool $countdown Show a countdown or not
506+ *
507+ * @return void
496508 */
497509 public static function wait (int $ seconds , bool $ countdown = false )
498510 {
@@ -529,6 +541,8 @@ public static function isWindows(): bool
529541
530542 /**
531543 * Enter a number of empty lines
544+ *
545+ * @return void
532546 */
533547 public static function newLine (int $ num = 1 )
534548 {
@@ -542,6 +556,8 @@ public static function newLine(int $num = 1)
542556 * Clears the screen of output
543557 *
544558 * @codeCoverageIgnore
559+ *
560+ * @return void
545561 */
546562 public static function clearScreen ()
547563 {
@@ -735,6 +751,8 @@ public static function getHeight(int $default = 32): int
735751 * Populates the CLI's dimensions.
736752 *
737753 * @codeCoverageIgnore
754+ *
755+ * @return void
738756 */
739757 public static function generateDimensions ()
740758 {
@@ -778,6 +796,8 @@ public static function generateDimensions()
778796 * to update it. Set $thisStep = false to erase the progress bar.
779797 *
780798 * @param bool|int $thisStep
799+ *
800+ * @return void
781801 */
782802 public static function showProgress ($ thisStep = 1 , int $ totalSteps = 10 )
783803 {
@@ -859,6 +879,8 @@ public static function wrap(?string $string = null, int $max = 0, int $padLeft =
859879 /**
860880 * Parses the command line it was called from and collects all
861881 * options and valid segments.
882+ *
883+ * @return void
862884 */
863885 protected static function parseCommandLine ()
864886 {
@@ -998,6 +1020,8 @@ public static function getOptionString(bool $useLongOpts = false, bool $trim = f
9981020 *
9991021 * @param array $tbody List of rows
10001022 * @param array $thead List of columns
1023+ *
1024+ * @return void
10011025 */
10021026 public static function table (array $ tbody , array $ thead = [])
10031027 {
@@ -1096,6 +1120,8 @@ public static function table(array $tbody, array $thead = [])
10961120 * solution down the road.
10971121 *
10981122 * @param resource $handle
1123+ *
1124+ * @return void
10991125 */
11001126 protected static function fwrite ($ handle , string $ string )
11011127 {
0 commit comments