Conditions | 3 |
Paths | 3 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | protected function execute(InputInterface $input, OutputInterface $output) |
||
34 | { |
||
35 | $this->init(); |
||
36 | |||
37 | $configs = $this->getConfigs(); |
||
38 | |||
39 | if (\count($configs)) { |
||
40 | $result = "\t".'<fg=green>'.\count($configs).'</fg=green> configs found:'; |
||
41 | $output->writeln($result); |
||
42 | foreach ($configs as $config) { |
||
43 | $result = "\t".'(id: <fg=cyan>'.$config->getId().'</fg=cyan>)'; |
||
44 | $result .= "\t".$config->getName(); |
||
45 | |||
46 | $output->writeln($result); |
||
47 | } |
||
48 | } else { |
||
49 | $output->writeln('No configs found'); |
||
50 | } |
||
51 | |||
52 | } |
||
53 | |||
67 |