From b2d7fb2fefb4ddac8fd869de759f626b932751ad Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 14 Aug 2023 12:08:05 +0300 Subject: [PATCH] fix line break return --- src/library/cli.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/library/cli.php b/src/library/cli.php index 0cb256c..cccfbb9 100644 --- a/src/library/cli.php +++ b/src/library/cli.php @@ -9,26 +9,36 @@ class CLI { public static function default(string $string) { - echo sprintf("%s", $string) . self::break(); + echo sprintf("%s", $string); + + self::break(); } public static function notice(string $string) { - echo sprintf("\033[36m%s\033[0m", $string) . self::break(); + echo sprintf("\033[36m%s\033[0m", $string); + + self::break(); } public static function warning(string $string) { - echo sprintf("\033[33m%s\033[0m", $string) . self::break(); + echo sprintf("\033[33m%s\033[0m", $string); + + self::break(); } public static function danger(string $string) { - echo sprintf("\033[31m%s\033[0m", $string) . self::break(); + echo sprintf("\033[31m%s\033[0m", $string); + + self::break(); } public static function success(string $string) { - echo sprintf("\033[32m%s\033[0m", $string) . self::break(); + echo sprintf("\033[32m%s\033[0m", $string); + + self::break(); } } \ No newline at end of file