| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function loadCSR(InputInterface $input, OutputInterface $output) |
||
| 26 | { |
||
| 27 | $csrFile = $input->getArgument('csr'); |
||
| 28 | if (!file_exists($csrFile)) { |
||
| 29 | $output->writeln('<error>Unable to load '. $csrFile .'</error>'); |
||
| 30 | $output->writeln('<error>Please check the path and try again</error>'); |
||
| 31 | |||
| 32 | exit(); |
||
| 33 | } |
||
| 34 | |||
| 35 | return file_get_contents($csrFile); |
||
| 36 | } |
||
| 37 | } |
||
| 38 |