Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Feb 20, 2024
1 parent 9b0f104 commit 7e37073
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .castor/qa.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ function install(): void
#[AsTask(description: 'Runs PHPStan', aliases: ['phpstan'])]
function phpstan(): int
{
return docker_exit_code('phpstan', workDir: '/var/www');
return docker_exit_code('phpstan');
}

#[AsTask(description: 'Fixes Coding Style', aliases: ['cs'])]
function cs(bool $dryRun = false): int
{
if ($dryRun) {
return docker_exit_code('php-cs-fixer fix --dry-run --diff', workDir: '/var/www');
return docker_exit_code('php-cs-fixer fix --dry-run --diff');
}

return docker_exit_code('php-cs-fixer fix', workDir: '/var/www');
return docker_exit_code('php-cs-fixer fix');
}

0 comments on commit 7e37073

Please sign in to comment.