Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
26 | { |
||
27 | $attribute = $input->getOption('attribute'); |
||
28 | |||
29 | $sites = $this->getSites(); |
||
30 | |||
31 | $table = new Table($output); |
||
32 | $table->setHeaders(['Site ID', 'Domain', 'Attribute']); |
||
33 | foreach ($sites as $site) { |
||
34 | $table->addRow([$site['site_id'], $site['domain'], $site[$attribute]]); |
||
35 | } |
||
36 | $table->render(); |
||
37 | |||
38 | return 0; |
||
39 | } |
||
59 |