| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function ul(array $items, $indentation = 0, $symbol = '•') |
||
| 37 | { |
||
| 38 | $spaces = str_repeat(' ', $indentation); |
||
| 39 | |||
| 40 | foreach ($items as $item) { |
||
| 41 | |||
| 42 | if (is_array($item)) { |
||
| 43 | $this->ul($item, ++$indentation, $symbol); |
||
| 44 | continue; |
||
| 45 | } |
||
| 46 | |||
| 47 | $this->writeln(sprintf('%s [<fg=green>%s</>] %s', $spaces,$symbol, (string) $item)); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 67 |