From fe8fec4491ecbef42db6005a0f7ae3675e6b1847 Mon Sep 17 00:00:00 2001 From: Gary PEGEOT Date: Sat, 21 Nov 2020 11:30:34 +0000 Subject: [PATCH 1/2] Update rules to match other repos --- .php_cs.dist | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.php_cs.dist b/.php_cs.dist index 7f0a46b..8efc190 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -1,19 +1,17 @@ in('src') - ->in('tests') -; -return PhpCsFixer\Config::create() +$config = PhpCsFixer\Config::create() + ->setRiskyAllowed(true) ->setRules([ '@Symfony' => true, - '@Symfony:risky' => true, + 'array_syntax' => ['syntax' => 'short'], ]) - ->setRiskyAllowed(true) - ->setFinder($finder); + ->setFinder( + PhpCsFixer\Finder::create() + ->in(__DIR__.'/src') + ->in(__DIR__.'/tests') + ->name('*.php') + ) +; + +return $config; From fc38615b15f9a58fe9187925a3364d0fb03c72c0 Mon Sep 17 00:00:00 2001 From: Gary PEGEOT Date: Sat, 21 Nov 2020 12:50:26 +0100 Subject: [PATCH 2/2] Remove array rule --- .php_cs.dist | 2 +- .styleci.yml | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.php_cs.dist b/.php_cs.dist index 8efc190..17499d0 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -4,7 +4,7 @@ $config = PhpCsFixer\Config::create() ->setRiskyAllowed(true) ->setRules([ '@Symfony' => true, - 'array_syntax' => ['syntax' => 'short'], + '@Symfony:risky' => true, ]) ->setFinder( PhpCsFixer\Finder::create() diff --git a/.styleci.yml b/.styleci.yml index f105be8..5621433 100644 --- a/.styleci.yml +++ b/.styleci.yml @@ -4,6 +4,3 @@ finder: path: - "src" - "tests" - -enabled: - - short_array_syntax