Skip to content

Commit 56e0b08

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

7 files changed

Lines changed: 9 additions & 8 deletions

File tree

src/Command/AbstractCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ protected function runCommand(string $commandName, array|InputInterface $input,
141141
$application = $this->getApplication();
142142

143143
$command = $application->find($commandName);
144-
$command->ignoreValidationErrors();
145144

146145
if (\is_array($input)) {
147146
$input = new ArgvInput($input);

src/Command/CodeStyleCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6363
parent::runProcess($command, $output);
6464

6565
$command = new Process([
66-
\dirname(__DIR__, 2) . '/vendor/bin/ecs',
66+
$this->getAbsolutePath('vendor/bin/ecs'),
6767
'--config=' . parent::getConfigFile(self::CONFIG),
6868
$input->getOption('fix') ? '--fix' : '--clear-cache',
6969
]);

src/Command/DocsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5353
$output->writeln('<info>Generating API documentation...</info>');
5454

5555
$arguments = [
56-
\dirname(__DIR__, 2) . '/vendor/bin/phpdoc',
56+
$this->getAbsolutePath('vendor/bin/phpdoc'),
5757
'--cache-folder',
5858
$this->getCurrentWorkingDirectory() . '/tmp/cache/phpdoc',
5959
];

src/Command/PhpDocCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private function runPhpCsFixer(InputInterface $input, OutputInterface $output):
102102
private function runRector(InputInterface $input, OutputInterface $output): int
103103
{
104104
$arguments = [
105-
\dirname(__DIR__, 2) . '/vendor/bin/rector',
105+
$this->getAbsolutePath('vendor/bin/rector'),
106106
'process',
107107
'--config',
108108
parent::getConfigFile(RefactorCommand::CONFIG),

src/Command/RefactorCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5555
$output->writeln('<info>Running Rector for code refactoring...</info>');
5656

5757
$command = new Process([
58-
\dirname(__DIR__, 2) . '/vendor/bin/rector',
58+
$this->getAbsolutePath('vendor/bin/rector'),
5959
'process',
6060
'--config',
6161
parent::getConfigFile(self::CONFIG),

src/Command/ReportsCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5353
$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

src/Command/TestsCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8080
$output->writeln('<info>Running PHPUnit tests...</info>');
8181

8282
$arguments = [
83-
\dirname(__DIR__, 2) . '/vendor/bin/phpunit',
83+
$this->getAbsolutePath('vendor/bin/phpunit'),
8484
'--configuration=' . parent::getConfigFile(self::CONFIG),
8585
'--bootstrap=' . $this->resolvePath($input, 'bootstrap'),
8686
];
@@ -90,6 +90,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9090
}
9191

9292
if ($input->getOption('coverage')) {
93+
$output->writeln('<info>Generating code coverage reports on path: ' . $this->resolvePath($input, 'coverage') . '</info>');
94+
9395
foreach ($this->getPsr4Namespaces() as $path) {
9496
$arguments[] = '--coverage-filter=' . $this->getAbsolutePath($path);
9597
}

0 commit comments

Comments
 (0)