Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
edgrosvenor authored and github-actions[bot] committed May 8, 2024
1 parent a142c1c commit 6959d23
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Commands/BuildCodeCoverageHtml.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,22 @@
class BuildCodeCoverageHtml extends Command
{
public $signature = 'build:coverage-html';

public $description = 'Generate a code coverage HTML file';

public function handle(): int
{
if (!file_exists(base_path('coverage.php'))) {
if (! file_exists(base_path('coverage.php'))) {
$this->error('No code coverage report has been generated.');

return self::FAILURE;
}

$coverage = include base_path("coverage.php");
$coverage = include base_path('coverage.php');

(new HtmlReport())->process($coverage, public_path('coverage'));

$this->info("See your coverage report at " . url('/coverage/index.html'));
$this->info('See your coverage report at '.url('/coverage/index.html'));

return self::SUCCESS;
}
Expand Down

0 comments on commit 6959d23

Please sign in to comment.