From 497d831b07b3f87bd48183e21d4894f5ed09e4f1 Mon Sep 17 00:00:00 2001 From: Farhad Safarov Date: Mon, 10 May 2021 11:14:54 +0300 Subject: [PATCH] Upgrade php-cs-fixer to v3 (#178) --- .gitignore | 2 +- .php_cs.dist => .php-cs-fixer.dist.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename .php_cs.dist => .php-cs-fixer.dist.php (80%) diff --git a/.gitignore b/.gitignore index f9e6148..2f98b0c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ .build/!.gitkeep vendor composer.lock -.php_cs.cache +.php-cs-fixer.cache tests/_run /.idea /.phpunit.result.cache diff --git a/.php_cs.dist b/.php-cs-fixer.dist.php similarity index 80% rename from .php_cs.dist rename to .php-cs-fixer.dist.php index d2d94d7..048233c 100644 --- a/.php_cs.dist +++ b/.php-cs-fixer.dist.php @@ -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,