diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-09 17:21:34 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-09 17:25:12 +0200 |
commit | 73823f4507c7e139ad45bef90b31a0d68e7aea45 (patch) | |
tree | 9067d38bf168ee672bc9229679df52272a0635b4 /composer.json | |
parent | 01418849f36b15722fb018a5101044de3d3cfe93 (diff) |
Add php cs
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'composer.json')
-rw-r--r-- | composer.json | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/composer.json b/composer.json index 54f2a482..901fbe29 100644 --- a/composer.json +++ b/composer.json @@ -1,12 +1,15 @@ { "require-dev": { - "christophwurst/nextcloud_testing": "^0.7.0" + "christophwurst/nextcloud_testing": "^0.7.0", + "nextcloud/coding-standard": "^0.3.0" }, "config": { "optimize-autoloader": true, "classmap-authoritative": true }, "scripts": { + "cs:fix": "php-cs-fixer fix", + "cs:check": "php-cs-fixer fix --dry-run --diff", "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l", "test:unit": "phpunit -c phpunit.xml --fail-on-warning", "test:integration": "phpunit -c phpunit.integration.xml --fail-on-warning" |