Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | protected function execute(InputInterface $input, OutputInterface $output) |
||
33 | { |
||
34 | $comodoDecodeCSR = new ComodoDecodeCSR(); |
||
35 | $comodoDecodeCSR->setCSR($this->loadCSR($input, $output)); |
||
36 | $hashes = $comodoDecodeCSR->fetchHashes(); |
||
37 | |||
38 | if ($hashes) { |
||
39 | $output->writeln('<info>MD5</info> ' . $hashes['md5']); |
||
40 | $output->writeln('<info>SHA1</info> ' . $hashes['sha1']); |
||
41 | |||
42 | return 0; |
||
43 | } |
||
44 | |||
45 | $output->writeln('<error>Fail!</error>'); |
||
46 | $output->writeln('Unable to fetch hashes'); |
||
47 | |||
48 | return 2; |
||
49 | } |
||
50 | } |
||
51 |