@@ 826-829 (lines=4) @@ | ||
823 | unset($bold); |
|
824 | $coloredString = ''; |
|
825 | // Check if given foreground color found |
|
826 | if ( isset(static::$colours['fore'][$foregroundColor]) ) |
|
827 | { |
|
828 | $coloredString .= "\033[" . static::$colours['fore'][$foregroundColor] . "m"; |
|
829 | } |
|
830 | // Check if given background color found |
|
831 | if ( isset(static::$colours['back'][$backgroundColor]) ) |
|
832 | { |
|
@@ 831-834 (lines=4) @@ | ||
828 | $coloredString .= "\033[" . static::$colours['fore'][$foregroundColor] . "m"; |
|
829 | } |
|
830 | // Check if given background color found |
|
831 | if ( isset(static::$colours['back'][$backgroundColor]) ) |
|
832 | { |
|
833 | $coloredString .= "\033[" . static::$colours['back'][$backgroundColor] . "m"; |
|
834 | } |
|
835 | // Add string and end coloring |
|
836 | $coloredString .= $string . "\033[0m"; |
|
837 |