File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 99
1010$ config = new PhpCsFixer \Config ();
1111return $ config ->setRules ([
12- '@Symfony ' => true ,
13-
12+ '@PER-CS2.0 ' => true ,
13+ ' @PER-CS2.0:risky ' => true ,
1414 'array_syntax ' => ['syntax ' => 'short ' ],
1515 'linebreak_after_opening_tag ' => true ,
1616 'ordered_imports ' => true ,
1717 'phpdoc_order ' => true ,
1818 ])
1919 ->setFinder ($ finder )
20+ ->setRiskyAllowed (true )
2021;
Original file line number Diff line number Diff line change 2929 "psr/http-factory" : " ^1.0"
3030 },
3131 "require-dev" : {
32- "friendsofphp/php-cs-fixer" : " ^3" ,
32+ "friendsofphp/php-cs-fixer" : " ^3.45 " ,
3333 "phpunit/phpunit" : " ^9 || ^10.5" ,
3434 "guzzlehttp/psr7" : " ^2" ,
3535 "php-mock/php-mock-phpunit" : " ^2.6" ,
4646 }
4747 },
4848 "scripts" : {
49+ "codestyle" : " php-cs-fixer fix" ,
4950 "coverage" : " phpunit --coverage-html=\" .phpunit.cache/code-coverage\" " ,
5051 "phpstan" : " phpstan analyze --memory-limit 512M --configuration .phpstan.neon" ,
5152 "test" : " phpunit"
You can’t perform that action at this time.
0 commit comments