@@ 857-860 (lines=4) @@ | ||
854 | unset($bold); |
|
855 | $coloredString = ''; |
|
856 | // Check if given foreground color found |
|
857 | if ( isset(static::$colours['fore'][$foregroundColor]) ) |
|
858 | { |
|
859 | $coloredString .= "\033[" . static::$colours['fore'][$foregroundColor] . "m"; |
|
860 | } |
|
861 | // Check if given background color found |
|
862 | if ( isset(static::$colours['back'][$backgroundColor]) ) |
|
863 | { |
|
@@ 862-865 (lines=4) @@ | ||
859 | $coloredString .= "\033[" . static::$colours['fore'][$foregroundColor] . "m"; |
|
860 | } |
|
861 | // Check if given background color found |
|
862 | if ( isset(static::$colours['back'][$backgroundColor]) ) |
|
863 | { |
|
864 | $coloredString .= "\033[" . static::$colours['back'][$backgroundColor] . "m"; |
|
865 | } |
|
866 | // Add string and end coloring |
|
867 | $coloredString .= $string . "\033[0m"; |
|
868 |