File tree Expand file tree Collapse file tree 5 files changed +2618
-2085
lines changed
Expand file tree Collapse file tree 5 files changed +2618
-2085
lines changed Original file line number Diff line number Diff line change 1- /.php_cs .cache
1+ /.php-cs-fixer .cache
22/.phpunit.result.cache
33/.idea
44/vendor
Original file line number Diff line number Diff line change 11<?php
22
3- PhpCsFixer \Config::create ()->setCacheFile (__DIR__ .'/.php_cs.cache ' );
4-
53// Define excludes
4+ use PhpCsFixer \Finder ;
5+
66$ excludes = [];
77
88// Create finder
9- $ finder = PhpCsFixer \ Finder:: create ( )
9+ $ finder = ( new Finder () )
1010 ->exclude ($ excludes )
1111 ->in ([
1212 './src ' ,
1313 './tests ' ,
1414 ]);
1515
1616// Create config
17- return PhpCsFixer \Config::create ()
17+ return (new PhpCsFixer \Config ())
18+ ->setCacheFile (__DIR__ . '/.php-cs-fixer.cache ' )
1819 ->setRiskyAllowed (true )
1920 ->setRules ([
2021 '@PSR1 ' => true ,
Original file line number Diff line number Diff line change 2525 "run phpunit" : " phpunit --configuration phpunit.xml.dist"
2626 },
2727 "require" : {
28- "php" : " ^7.3" ,
29- "friendsofphp/php-cs-fixer" : " ^2.16"
28+ "php" : " >=7.3"
3029 },
3130 "require-dev" : {
32- "phpunit/phpunit" : " ^9.2" ,
31+ "friendsofphp/php-cs-fixer" : " ^3.0" ,
32+ "phpunit/phpunit" : " ^9.5" ,
3333 "php-coveralls/php-coveralls" : " ^2.2" ,
3434 "pds/skeleton" : " ^1.0"
3535 }
You can’t perform that action at this time.
0 commit comments