File tree 4 files changed +141
-146
lines changed
4 files changed +141
-146
lines changed Original file line number Diff line number Diff line change 1
1
/vendor
2
- /.php_cs .cache
2
+ /.php-cs-fixer .cache
3
3
/.phpunit.result.cache
4
4
/phpunit.xml
Original file line number Diff line number Diff line change 4
4
->in (__DIR__ .DIRECTORY_SEPARATOR .'src ' )
5
5
;
6
6
7
- return PhpCsFixer \Config::create ()
7
+ $ config = new PhpCsFixer \Config ();
8
+
9
+ return $ config
8
10
->setRiskyAllowed (true )
9
11
->setRules ([
10
12
'@PHP71Migration ' => true ,
16
18
'no_useless_else ' => true ,
17
19
'no_useless_return ' => true ,
18
20
'ordered_imports ' => [
19
- 'importsOrder ' => null ,
20
- 'sortAlgorithm ' => 'alpha ' ,
21
+ 'imports_order ' => null ,
22
+ 'sort_algorithm ' => 'alpha ' ,
21
23
],
22
24
'phpdoc_order ' => true ,
23
- 'yoda_style ' => null ,
25
+ 'yoda_style ' => [
26
+ 'equal ' => null ,
27
+ 'identical ' => null ,
28
+ 'less_and_greater ' => null ,
29
+ 'always_move_variable ' => false ,
30
+ ],
24
31
// risky -->
25
32
'strict_param ' => true ,
26
33
])
Original file line number Diff line number Diff line change 19
19
"phpstan/phpstan" : " ^0.12.91"
20
20
},
21
21
"require-dev" : {
22
- "friendsofphp/php-cs-fixer" : " ^2.18 " ,
22
+ "friendsofphp/php-cs-fixer" : " ^3.1 " ,
23
23
"phpunit/phpunit" : " ^8.0" ,
24
24
"yiisoft/yii2" : " ^2.0.42" ,
25
25
"phpstan/phpstan-phpunit" : " ^0.12"
You can’t perform that action at this time.
0 commit comments