Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.3149 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 5 | public function loadCSR(InputInterface $input, OutputInterface $output) |
|
26 | { |
||
27 | 5 | $csrFile = $input->getArgument('csr'); |
|
28 | 5 | 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 | 5 | return file_get_contents($csrFile); |
|
36 | } |
||
37 | } |
||
38 |