File tree Expand file tree Collapse file tree 4 files changed +141
-146
lines changed Expand file tree Collapse file tree 4 files changed +141
-146
lines changed Original file line number Diff line number Diff line change 11/vendor
2- /.php_cs .cache
2+ /.php-cs-fixer .cache
33/.phpunit.result.cache
44/phpunit.xml
Original file line number Diff line number Diff line change 44 ->in (__DIR__ .DIRECTORY_SEPARATOR .'src ' )
55;
66
7- return PhpCsFixer \Config::create ()
7+ $ config = new PhpCsFixer \Config ();
8+
9+ return $ config
810 ->setRiskyAllowed (true )
911 ->setRules ([
1012 '@PHP71Migration ' => true ,
1618 'no_useless_else ' => true ,
1719 'no_useless_return ' => true ,
1820 'ordered_imports ' => [
19- 'importsOrder ' => null ,
20- 'sortAlgorithm ' => 'alpha ' ,
21+ 'imports_order ' => null ,
22+ 'sort_algorithm ' => 'alpha ' ,
2123 ],
2224 '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+ ],
2431 // risky -->
2532 'strict_param ' => true ,
2633 ])
Original file line number Diff line number Diff line change 1919 "phpstan/phpstan" : " ^0.12.91"
2020 },
2121 "require-dev" : {
22- "friendsofphp/php-cs-fixer" : " ^2.18 " ,
22+ "friendsofphp/php-cs-fixer" : " ^3.1 " ,
2323 "phpunit/phpunit" : " ^8.0" ,
2424 "yiisoft/yii2" : " ^2.0.42" ,
2525 "phpstan/phpstan-phpunit" : " ^0.12"
You can’t perform that action at this time.
0 commit comments