Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
36 | public function __construct(OutputInterface $output, $hosts) |
||
37 | { |
||
38 | $headers = []; |
||
39 | $this->template = []; |
||
40 | foreach ($hosts as $host) { |
||
41 | $headers[] = $host->tag(); |
||
42 | $this->template[] = $host->alias(); |
||
43 | } |
||
44 | $this->table = new Table($output); |
||
45 | $this->table->setHeaders($headers); |
||
46 | $this->table->setStyle('box'); |
||
47 | } |
||
48 | |||
74 |