Skip to content

Commit 938dcf6

Browse files
committed
Fix arguments
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
1 parent ff1e9c0 commit 938dcf6

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/Command/ReportsCommand.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int
4949
{
5050
$output->writeln('<info>Generating frontpage for Fast Forward documentation...</info>');
5151

52-
$docsPath = $this->getAbsolutePath('./public/api');
53-
$coveragePath = $this->getAbsolutePath('./public/coverage');
52+
$docsPath = $this->getAbsolutePath('public/api');
53+
$coveragePath = $this->getAbsolutePath('public/coverage');
5454

5555
$output->writeln('<info>Generating API documentation on path: ' . $docsPath . '</info>');
56-
$this->runCommand('docs', ['target' => $docsPath], $output);
56+
$this->runCommand('docs', ['--target' => $docsPath], $output);
5757

5858
$output->writeln('<info>Generating test coverage report on path: ' . $coveragePath . '</info>');
59-
$this->runCommand('tests', ['coverage' => $coveragePath], $output);
59+
$this->runCommand('tests', ['--coverage' => $coveragePath], $output);
6060

6161
$this->generateFrontpage();
6262

@@ -79,7 +79,7 @@ private function generateFrontpage(): void
7979
]
8080
);
8181

82-
$this->filesystem->dumpFile($this->getAbsolutePath('./public/index.html'), $html);
82+
$this->filesystem->dumpFile($this->getAbsolutePath('public/index.html'), $html);
8383
}
8484

8585
/**
@@ -95,7 +95,7 @@ private function renderTemplate(string $title, array $links): string
9595
'title' => $title,
9696
'links' => $links,
9797
]);
98-
include $this->getAbsolutePath('./resources/index.php');
98+
include $this->getAbsolutePath('resources/index.php');
9999

100100
return ob_get_clean();
101101
}

0 commit comments

Comments
 (0)