Conditions | 4 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function doRun(InputInterface $input, OutputInterface $output) |
||
37 | { |
||
38 | if (! $output->isQuiet()) { |
||
39 | $output->writeln(sprintf( |
||
40 | "phpunitgen %s by Paul Thébaud.\n\n", |
||
41 | $this->getVersion() |
||
42 | )); |
||
43 | } |
||
44 | |||
45 | if ($input->hasParameterOption('--version') || |
||
46 | $input->hasParameterOption('-V')) { |
||
47 | exit; |
||
|
|||
48 | } |
||
49 | |||
50 | parent::doRun($input, $output); |
||
51 | } |
||
53 |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.