| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 1 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 34 | { |
||
| 35 | 1 | $client = $this->getClient($input->getOption('client')); |
|
| 36 | 1 | $index = $input->getArgument('index'); |
|
| 37 | |||
| 38 | 1 | $output->writeln(sprintf( |
|
| 39 | 1 | '<info>Aliases for index <comment>%s</comment></info>', |
|
| 40 | $index |
||
| 41 | 1 | )); |
|
| 42 | |||
| 43 | $aliases = $client |
||
| 44 | 1 | ->getIndex($index) |
|
| 45 | 1 | ->getAliases() |
|
| 46 | 1 | ; |
|
| 47 | |||
| 48 | 1 | foreach ($aliases as $alias) { |
|
| 49 | 1 | $output->writeln(' * ' . $alias); |
|
| 50 | 1 | } |
|
| 51 | 1 | } |
|
| 52 | } |
||
| 53 |