| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 33 | 2 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 34 | { |
||
| 35 | 2 | $client = $this->getClient($input->getOption('client')); |
|
| 36 | |||
| 37 | 2 | $uri = sprintf('_cat/indices/%s?h=i', $input->getOption('pattern')); |
|
| 38 | |||
| 39 | 2 | $response = $client->request($uri); |
|
| 40 | |||
| 41 | 2 | $output->writeln($response->getData()['message']); |
|
| 42 | 2 | } |
|
| 43 | } |
||
| 44 |