File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ composer.phar
2
2
composer.lock
3
3
/vendor /
4
4
/.idea /
5
- /.php_cs
6
- /.php_cs .cache
5
+ /.php-cs-fixer.php
6
+ /.php-cs-fixer .cache
7
7
/.phpunit.result.cache
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- $ finder = PhpCsFixer \Finder:: create ( )
3
+ $ finder = ( new PhpCsFixer \Finder () )
4
4
->in ([
5
5
__DIR__ .'/src ' ,
6
6
__DIR__ .'/tests '
7
7
])
8
8
;
9
9
10
- return PhpCsFixer \Config::create ()
10
+ return (new PhpCsFixer \Config ())
11
+ ->setFinder ($ finder )
11
12
->setRules ([
12
13
'@Symfony ' => true ,
13
14
'array_syntax ' => ['syntax ' => 'short ' ],
14
15
'linebreak_after_opening_tag ' => true ,
15
16
'ordered_imports ' => true ,
16
17
'phpdoc_add_missing_param_annotation ' => true ,
17
18
'phpdoc_order ' => true ,
18
- 'yoda_style ' => null ,
19
+ 'yoda_style ' => false ,
19
20
'no_superfluous_phpdoc_tags ' => false ,
20
21
])
21
- ->setFinder ($ finder )
22
22
;
Original file line number Diff line number Diff line change 15
15
"swisnl/illuminate-collections" : " ^6.0|^7.0|^8.0"
16
16
},
17
17
"require-dev" : {
18
- "friendsofphp/php-cs-fixer" : " ^2.16 " ,
18
+ "friendsofphp/php-cs-fixer" : " ^3.0 " ,
19
19
"guzzlehttp/guzzle" : " ^7.3" ,
20
20
"phpunit/phpunit" : " ^8.0|^9.0" ,
21
21
"php-http/mock-client" : " ^1.2"
You can’t perform that action at this time.
0 commit comments