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