|
@@ 633-636 (lines=4) @@
|
| 630 |
|
unset($bold); |
| 631 |
|
$coloredString = ''; |
| 632 |
|
// Check if given foreground color found |
| 633 |
|
if ( isset(static::$colours['fore'][$foregroundColor]) ) |
| 634 |
|
{ |
| 635 |
|
$coloredString .= "\033[" . static::$colours['fore'][$foregroundColor] . "m"; |
| 636 |
|
} |
| 637 |
|
// Check if given background color found |
| 638 |
|
if ( isset(static::$colours['back'][$backgroundColor]) ) |
| 639 |
|
{ |
|
@@ 638-641 (lines=4) @@
|
| 635 |
|
$coloredString .= "\033[" . static::$colours['fore'][$foregroundColor] . "m"; |
| 636 |
|
} |
| 637 |
|
// Check if given background color found |
| 638 |
|
if ( isset(static::$colours['back'][$backgroundColor]) ) |
| 639 |
|
{ |
| 640 |
|
$coloredString .= "\033[" . static::$colours['back'][$backgroundColor] . "m"; |
| 641 |
|
} |
| 642 |
|
// Add string and end coloring |
| 643 |
|
$coloredString .= $string . "\033[0m"; |
| 644 |
|
|