| Total Complexity | 7 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Output extends BaseConsole |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param array $data |
||
| 14 | * @param bool $withIndex |
||
| 15 | */ |
||
| 16 | public static function arrayList(array $data, $withIndex = true) |
||
| 17 | { |
||
| 18 | foreach ($data as $index => $line) { |
||
| 19 | if ($withIndex) { |
||
| 20 | self::stdout(' ' . $index . ' - '); |
||
| 21 | } |
||
| 22 | self::output($line); |
||
| 23 | } |
||
| 24 | } |
||
| 25 | |||
| 26 | |||
| 27 | public static function separator($string = '-', $multiplier = 25) |
||
| 30 | } |
||
| 31 | |||
| 32 | public static function info($string) |
||
| 33 | { |
||
| 34 | self::output(self::ansiFormat($string, [self::FG_CYAN])); |
||
| 35 | } |
||
| 36 | |||
| 37 | public static function success($string) |
||
| 40 | } |
||
| 41 | |||
| 42 | public static function warn($string) |
||
| 47 |