From 9e2e38f86d1ee324afb9b82a01dc152a677622f0 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Tue, 4 Nov 2025 22:28:12 +0100 Subject: [PATCH] CS fixes --- Blacklight/ColorCLI.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Blacklight/ColorCLI.php b/Blacklight/ColorCLI.php index 32cf93ac9..e39ad222e 100755 --- a/Blacklight/ColorCLI.php +++ b/Blacklight/ColorCLI.php @@ -153,8 +153,8 @@ class ColorCLI /** * Apply ANSI color code to a string and return it (does not render) * - * @param string $string The string to colorize - * @param string $color The color name + * @param string $string The string to colorize + * @param string $color The color name * @return string The colored string with ANSI codes */ public function ansiString(string $string, string $color): string @@ -171,6 +171,7 @@ class ColorCLI ]; $code = $colors[$color] ?? '0;37'; + return "\033[{$code}m{$string}\033[0m"; } }