Commit 2efbdec5b529bd40fcedcd4a06ad2317b2ceef0a
1 parent
2c498f60
Initializer completed
Showing
1 changed file
with
13 additions
and
2 deletions
Show diff stats
Initializer.php
@@ -865,8 +865,19 @@ | @@ -865,8 +865,19 @@ | ||
865 | if (empty( $styles ) || !$this->ansiColorsSupported()) { | 865 | if (empty( $styles ) || !$this->ansiColorsSupported()) { |
866 | return $message; | 866 | return $message; |
867 | } | 867 | } |
868 | - | ||
869 | - return sprintf("\x1b[%sm", implode(';', array_map('getStyleCode', $styles))) . $message . "\x1b[0m"; | 868 | + return sprintf( |
869 | + "\x1b[%sm", | ||
870 | + implode( | ||
871 | + ';', | ||
872 | + array_map( | ||
873 | + [ | ||
874 | + $this, | ||
875 | + 'getStyleCode', | ||
876 | + ], | ||
877 | + $styles | ||
878 | + ) | ||
879 | + ) | ||
880 | + ) . $message . "\x1b[0m"; | ||
870 | } | 881 | } |
871 | 882 | ||
872 | /** | 883 | /** |