Skip to content

Commit 99f88a6

Browse files
committed
Configure php-cs-fixer as dev dependency
1 parent af4ab5b commit 99f88a6

File tree

3 files changed

+1652
-45
lines changed

3 files changed

+1652
-45
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ install:
4141

4242
script:
4343
- $PHPUNIT_BIN --coverage-clover=coverage.clover
44-
- if [ "${PHP_CS_FIXER}" = "true" ]; then wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar && php ./php-cs-fixer-v2.phar fix --dry-run --diff $TRAVIS_BUILD_DIR; fi
45-
- if [ "${PHPSTAN}" = "true" ]; then composer require --dev phpstan/phpstan ^0.12 && composer phpstan; fi
44+
- if [ "${PHP_CS_FIXER}" = "true" ]; then vendor/bin/php-cs-fixer fix --dry-run --diff $TRAVIS_BUILD_DIR; fi
45+
- if [ "${PHPSTAN}" = "true" ]; then composer phpstan; fi
4646

4747
after_success:
4848
- wget https://scrutinizer-ci.com/ocular.phar

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
"scripts": {
77
"test": "./vendor/bin/phpunit",
8-
"lint": "./vendor/bin/php-cs-fixer fix --verbose --diff --dry-run --config-file=.php_cs",
9-
"fix": "./vendor/bin/php-cs-fixer fix --verbose --diff --config-file=.php_cs",
8+
"lint": "./vendor/bin/php-cs-fixer fix --verbose --diff --dry-run",
9+
"fix": "./vendor/bin/php-cs-fixer fix --verbose --diff",
1010
"phpstan": "phpstan analyse -c phpstan.neon --no-progress -vvv"
1111
},
1212

@@ -31,7 +31,8 @@
3131
"phpstan/phpstan": "^0.12",
3232
"phpstan/phpstan-beberlei-assert": "^0.12.0",
3333
"thecodingmachine/phpstan-strict-rules": "^0.12",
34-
"sebastian/version": "^1.0.3|^2.0"
34+
"sebastian/version": "^1.0.3|^2.0",
35+
"friendsofphp/php-cs-fixer": "^2.16"
3536
},
3637

3738
"autoload": {

0 commit comments

Comments
 (0)