Upgrade php-cs-fixer to v3 (#178)

This commit is contained in:
Farhad Safarov 2021-05-10 11:14:54 +03:00 committed by GitHub
parent 0bd4de0cd1
commit 497d831b07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@ -2,7 +2,7 @@
.build/!.gitkeep
vendor
composer.lock
.php_cs.cache
.php-cs-fixer.cache
tests/_run
/.idea
/.phpunit.result.cache

View File

@ -7,12 +7,12 @@ $finder = PhpCsFixer\Finder::create()
->files()
->name('*.php');
return PhpCsFixer\Config::create()
return (new PhpCsFixer\Config())
->setFinder($finder)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['align_double_arrow' => false],
'binary_operator_spaces' => true,
'no_useless_else' => true,
'no_useless_return' => false,
'ordered_imports' => true,