| @@ 68-75 (lines=8) @@ | ||
| 65 | ); |
|
| 66 | } |
|
| 67 | ||
| 68 | public function colorValue($string) |
|
| 69 | { |
|
| 70 | if (!self::$cli_colors) { |
|
| 71 | return $string; |
|
| 72 | } else { |
|
| 73 | return "\x1b[32m".str_replace("\n", "\x1b[0m\n\x1b[32m", $string)."\x1b[0m"; |
|
| 74 | } |
|
| 75 | } |
|
| 76 | ||
| 77 | public function colorType($string) |
|
| 78 | { |
|
| @@ 77-84 (lines=8) @@ | ||
| 74 | } |
|
| 75 | } |
|
| 76 | ||
| 77 | public function colorType($string) |
|
| 78 | { |
|
| 79 | if (!self::$cli_colors) { |
|
| 80 | return $string; |
|
| 81 | } else { |
|
| 82 | return "\x1b[35;1m".str_replace("\n", "\x1b[0m\n\x1b[35;1m", $string)."\x1b[0m"; |
|
| 83 | } |
|
| 84 | } |
|
| 85 | ||
| 86 | public function colorTitle($string) |
|
| 87 | { |
|
| @@ 86-93 (lines=8) @@ | ||
| 83 | } |
|
| 84 | } |
|
| 85 | ||
| 86 | public function colorTitle($string) |
|
| 87 | { |
|
| 88 | if (!self::$cli_colors) { |
|
| 89 | return $string; |
|
| 90 | } else { |
|
| 91 | return "\x1b[36m".str_replace("\n", "\x1b[0m\n\x1b[36m", $string)."\x1b[0m"; |
|
| 92 | } |
|
| 93 | } |
|
| 94 | ||
| 95 | public function renderTitle(Kint_Object $o) |
|
| 96 | { |
|