diff --git a/Makefile b/Makefile index a4e4065..4dcba86 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,9 @@ .PHONY: * +phpcs: + php vendor/bin/phpcs --standard=PSR2 src tests + phpunit: php vendor/bin/phpunit -v --color=always --testdox tests -test: phpunit - +test: phpunit phpcs diff --git a/composer.json b/composer.json index eb0cac6..8a173dd 100644 --- a/composer.json +++ b/composer.json @@ -23,6 +23,7 @@ } }, "require-dev": { - "phpunit/phpunit": "^9.1" + "phpunit/phpunit": "^9.1", + "squizlabs/php_codesniffer": "^3.5" } }