Conditions | 5 |
Paths | 6 |
Total Lines | 21 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function doRun(InputInterface $input, OutputInterface $output) |
||
29 | { |
||
30 | if (false === $input->hasParameterOption('--quiet')) { |
||
31 | $output->write( |
||
32 | sprintf( |
||
33 | 'phpmnd %s by Povilas Susinskas' . PHP_EOL, |
||
34 | $this->getVersion() |
||
35 | ) |
||
36 | ); |
||
37 | } |
||
38 | |||
39 | if ($input->hasParameterOption('--version') || $input->hasParameterOption('-V')) { |
||
40 | exit; |
||
41 | } |
||
42 | |||
43 | if ('run' === (string) $input) { |
||
44 | $input = new ArrayInput(['run','--help']); |
||
45 | } |
||
46 | |||
47 | parent::doRun($input, $output); |
||
48 | } |
||
49 | } |
||
50 |