|
18 | 18 | }, |
19 | 19 | "require-dev": { |
20 | 20 | "fig/http-message-util": "^1.1", |
| 21 | + "friendsofphp/php-cs-fixer": "^2.16", |
21 | 22 | "overtrue/phplint": "^1.1", |
22 | | - "phpstan/phpstan": "0.*", |
23 | | - "phpunit/phpunit": "^7.0|^8.0", |
| 23 | + "phpstan/phpstan": "^0.12", |
| 24 | + "phpunit/phpunit": "^7 || ^8 || ^9", |
24 | 25 | "relay/relay": "^2.0", |
25 | 26 | "slim/psr7": "^1", |
26 | 27 | "squizlabs/php_codesniffer": "^3.4", |
27 | 28 | "symfony/validator": "^5.1" |
28 | 29 | }, |
29 | 30 | "scripts": { |
30 | | - "test": "phpunit --configuration phpunit.xml", |
31 | | - "test-coverage": "phpunit --configuration phpunit.xml --coverage-clover build/logs/clover.xml --coverage-html build/coverage", |
32 | | - "check-style": "phpcs --standard=phpcs.xml", |
33 | | - "fix-style": "phpcbf --standard=phpcs.xml", |
34 | | - "phpstan": "phpstan analyse src --level=max -c phpstan.neon --no-progress", |
35 | | - "lint": "phplint ./ --exclude=vendor --no-interaction --no-cache", |
36 | | - "install-cs": "php -r \"@mkdir('build'); copy('https://cs.symfony.com/download/php-cs-fixer-v2.phar', 'build/php-cs-fixer-v2.phar');\"", |
37 | | - "fix-cs": "php build/php-cs-fixer-v2.phar fix --config=.cs.php", |
38 | | - "check-cs": "php build/php-cs-fixer-v2.phar fix --dry-run --format=txt --verbose --diff --diff-format=udiff --config=.cs.php", |
39 | | - "check-all": [ |
| 31 | + "check": [ |
40 | 32 | "@lint", |
41 | | - "@check-style", |
| 33 | + "@cs:check", |
| 34 | + "@sniffer:check", |
42 | 35 | "@phpstan", |
43 | | - "@test-coverage" |
44 | | - ] |
| 36 | + "@test:coverage" |
| 37 | + ], |
| 38 | + "cs:check": "php-cs-fixer fix --dry-run --format=txt --verbose --diff --diff-format=udiff --config=.cs.php", |
| 39 | + "cs:fix": "php-cs-fixer fix --config=.cs.php", |
| 40 | + "lint": "phplint ./ --exclude=vendor --no-interaction --no-cache", |
| 41 | + "phpstan": "phpstan analyse src --level=max -c phpstan.neon --no-progress --ansi", |
| 42 | + "sniffer:check": "phpcs --standard=phpcs.xml", |
| 43 | + "sniffer:fix": "phpcbf --standard=phpcs.xml", |
| 44 | + "test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always", |
| 45 | + "test:coverage": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --coverage-clover build/logs/clover.xml --coverage-html build/coverage" |
45 | 46 | }, |
46 | 47 | "autoload": { |
47 | 48 | "psr-4": { |
|
0 commit comments