| Conditions | 5 |
| Paths | 5 |
| Total Lines | 24 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | public static function writeLine($message = '', $type = 'notice') |
||
| 56 | { |
||
| 57 | switch ($type) { |
||
| 58 | |||
| 59 | case 'success': |
||
| 60 | print self::$foregroundColors['light_green']; |
||
| 61 | break; |
||
| 62 | |||
| 63 | case 'notice': |
||
| 64 | print self::$foregroundColors['light_blue']; |
||
| 65 | break; |
||
| 66 | |||
| 67 | case 'warning': |
||
| 68 | print self::$foregroundColors['yellow']; |
||
| 69 | break; |
||
| 70 | |||
| 71 | case 'error': |
||
| 72 | print self::$foregroundColors['light_red']; |
||
| 73 | break; |
||
| 74 | |||
| 75 | } |
||
| 76 | |||
| 77 | print $message . self::$foregroundColors['default'] . PHP_EOL; |
||
| 78 | } |
||
| 79 | |||
| 89 | } |