phpstan level 3, fixed deprecations, code cleanup (#811)

This commit is contained in:
Kevin Papst
2019-05-28 12:24:21 +02:00
committed by GitHub
parent d9dca96a32
commit 393abe9e62
69 changed files with 381 additions and 189 deletions

View File

@@ -47,27 +47,29 @@ class VersionCommand extends Command
if ($input->getOption('semver')) {
$io->writeln(Constants::VERSION . '-' . Constants::STATUS);
return;
return 0;
}
if ($input->getOption('short')) {
$io->writeln(Constants::VERSION);
return;
return 0;
}
if ($input->getOption('name')) {
$io->writeln(Constants::NAME);
return;
return 0;
}
if ($input->getOption('candidate')) {
$io->writeln(Constants::STATUS);
return;
return 0;
}
$io->writeln('Kimai 2 - ' . Constants::VERSION . ' ' . Constants::STATUS . ' (' . Constants::NAME . ') by Kevin Papst and contributors.');
return 0;
}
}