From c28df65f42b09ee6a05aafae9bedacb0587d6cd0 Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Sat, 11 Jan 2025 20:21:41 +0100 Subject: [PATCH] adhere to (mostly) PSR12, check codestyle in CI --- .github/workflows/php.yml | 5 ++++- AltoRouter.php | 6 +++--- composer.json | 5 +++-- phpcs.xml | 5 +++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index acd5e2f..87b97b4 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-versions: [ '7.3', 'highest' ] + php-versions: [ '7.3', 'highest' ] steps: - uses: actions/checkout@v2 @@ -35,5 +35,8 @@ jobs: if: steps.composer-cache.outputs.cache-hit != 'true' run: composer install --no-progress + - name: Check codestyle + run: composer run-script check-codestyle + - name: Run test suite run: composer run-script test diff --git a/AltoRouter.php b/AltoRouter.php index a0081b3..051ef7d 100644 --- a/AltoRouter.php +++ b/AltoRouter.php @@ -1,4 +1,5 @@ rules - + + + - tests AltoRouter.php examples/