diff --git a/administration/format-code.sh b/administration/format-code.sh index 309d3a2..3f1c633 100644 --- a/administration/format-code.sh +++ b/administration/format-code.sh @@ -1,3 +1,3 @@ #!/bin/bash cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" || exit 1 -docker-compose exec php php vendor/bin/php-cs-fixer fix . +docker-compose exec php php vendor/bin/php-cs-fixer fix diff --git a/application/.php_cs.dist b/application/.php_cs.dist index d80e5d6..53ed6c9 100644 --- a/application/.php_cs.dist +++ b/application/.php_cs.dist @@ -1,8 +1,11 @@ exclude('var') + ->in(__DIR__); return PhpCsFixer\Config::create() ->setRules([ '@Symfony' => true, 'array_syntax' => ['syntax' => 'short'], - ]) + ])->setFinder($finder) ;