diff --git a/src/cli/Command.php b/src/cli/Command.php index 3e1cf99..0fc3e6c 100644 --- a/src/cli/Command.php +++ b/src/cli/Command.php @@ -75,6 +75,17 @@ protected function handleConfiguration(CodeCoverage $coverage, Arguments $argume protected function handleReports(CodeCoverage $coverage, Arguments $arguments): void { + if ($arguments->php()) { + print 'Generating code coverage report in PHP format ... '; + + $writer = new PhpReport; + + /* @noinspection UnusedFunctionResultInspection */ + $writer->process($coverage, $arguments->php()); + + print 'done' . PHP_EOL; + } + if ($arguments->clover()) { print 'Generating code coverage report in Clover XML format ... '; @@ -118,17 +129,6 @@ protected function handleReports(CodeCoverage $coverage, Arguments $arguments): print 'done' . PHP_EOL; } - if ($arguments->php()) { - print 'Generating code coverage report in PHP format ... '; - - $writer = new PhpReport; - - /* @noinspection UnusedFunctionResultInspection */ - $writer->process($coverage, $arguments->php()); - - print 'done' . PHP_EOL; - } - if ($arguments->text()) { print 'Generating code coverage report in text format ... ';