From e9d68788993648768b1580d51cfab26358449d92 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 30 May 2020 12:51:37 +0100 Subject: [PATCH] Add phpcs to Makefile References #6 --- Makefile | 6 ++++-- composer.json | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) 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" } }