diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4bf9a5d..1553dac 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -38,15 +38,15 @@ jobs: sudo -u www-data php /var/www/wirhub/bin/console doctrine:database:create sudo -u www-data mkdir /var/www/wirhub/var/cache/test/sessions + - name: Update folder permissions + run: | + sudo chmod -R 777 /var/www/wirhub + - name: PHP-CS-Fixer uses: docker://ghcr.io/php-cs-fixer/php-cs-fixer:3-php8.2 with: args: check /var/www/wirhub - - name: Update folder permissions - run: | - sudo chmod -R 777 /var/www/wirhub - - name: Finish webserver run: | sudo rm /etc/apache2/sites-available/000-default.conf diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index e2e922e..4e9e72d 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -28,5 +28,11 @@ return (new PhpCsFixer\Config()) ->setRules([ '@Symfony' => true, + 'global_namespace_import' => [ + 'import_classes' => true, + 'import_constants' => true, + 'import_functions' => true, + ], ]) - ->setFinder($finder); + ->setFinder($finder) + ->setLineEnding("\n"); \ No newline at end of file