| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 37 | { |
||
| 38 | $io = new SymfonyStyle($input, $output); |
||
| 39 | |||
| 40 | try { |
||
| 41 | $key = $this->storage->get($input->getArgument('key')); |
||
| 42 | } catch (KeyNotFoundException $e) { |
||
| 43 | $io->error('Key not found.'); |
||
| 44 | |||
| 45 | return 1; |
||
| 46 | } |
||
| 47 | |||
| 48 | $io->writeln(''); |
||
| 49 | $io->table([], [ |
||
| 50 | ['Key', (string) $key], |
||
| 51 | ['Username', $key->username()], |
||
| 52 | ['TTL', $key->ttl()], |
||
| 53 | ]); |
||
| 56 |