diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb6b1ea..9ea52ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,7 +101,7 @@ jobs: run: composer stan-setup - name: Run PHP CodeSniffer - run: vendor/bin/phpcs --report=checkstyle src/ tests/ | cs2pr + run: composer cs-check - name: Run phpstan if: success() || failure() diff --git a/composer.json b/composer.json index 4089c03..d401ee2 100644 --- a/composer.json +++ b/composer.json @@ -72,8 +72,8 @@ "@cs-check", "@test" ], - "cs-check": "phpcs -p -v --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/", - "cs-fix": "phpcbf -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/", + "cs-check": "phpcs", + "cs-fix": "phpcbf", "test": "phpunit", "stan": "phpstan analyse && psalm", "phpstan": "phpstan analyse", diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000..ca08438 --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,12 @@ + + + + + + src/ + tests/ + + + + */templates/* +