File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ // Needed to get styleci-bridge loaded
4+ require_once __DIR__ .'/vendor/sllh/php-cs-fixer-styleci-bridge/autoload.php ' ;
5+
6+ use SLLH \StyleCIBridge \ConfigBridge ;
7+
8+ return ConfigBridge::create ();
Original file line number Diff line number Diff line change 1+ preset : recommended
Original file line number Diff line number Diff line change 2727 "phpunit/phpunit" : " ^5.5" ,
2828 "fzaninotto/faker" : " ^1.6" ,
2929 "mockery/mockery" : " ^0.9.5" ,
30- "satooshi/php-coveralls" : " ^1.0"
30+ "satooshi/php-coveralls" : " ^1.0" ,
31+ "friendsofphp/php-cs-fixer" : " ^1.12" ,
32+ "sllh/php-cs-fixer-styleci-bridge" : " ^2.1"
3133 },
3234 "autoload-dev" : {
3335 "psr-4" : {
3436 "Jrean\\ UserVerification\\ Tests\\ " : " tests"
3537 }
3638 },
3739 "scripts" : {
38- "test" : " phpunit --colors=always;" ,
39- "travis" : " phpunit --coverage-clover build/logs/clover.xml"
40+ "test" : " phpunit --colors=always; ./vendor/bin/php-cs-fixer fix src --dry-run --diff --ansi" ,
41+ "travis" : " phpunit --coverage-clover build/logs/clover.xml" ,
42+ "fix" : " ./vendor/bin/php-cs-fixer fix src --diff --ansi"
4043 }
4144}
You can’t perform that action at this time.
0 commit comments