| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 42 | { |
||
| 43 | $filename = $input->getArgument('file'); |
||
| 44 | $args = []; |
||
| 45 | foreach (['use', 'alg'] as $key) { |
||
| 46 | $value = $input->getOption($key); |
||
| 47 | if (null !== $value) { |
||
| 48 | $args[$key] = $value; |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 52 | $jwk = JWKFactory::createFromCertificateFile($filename, $args); |
||
| 53 | $this->prepareJsonOutput($input, $output, $jwk); |
||
| 54 | } |
||
| 55 | } |
||
| 56 |