From 7e370734291efae02b596800acfb522f69ad1dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Tue, 20 Feb 2024 10:31:16 +0100 Subject: [PATCH] Simplify code --- .castor/qa.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.castor/qa.php b/.castor/qa.php index 3380dbe..a80784f 100644 --- a/.castor/qa.php +++ b/.castor/qa.php @@ -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'); }