From a0e305baa1609dc382476662588ba8e8e998213e Mon Sep 17 00:00:00 2001 From: Dariusz Ruminski Date: Sat, 3 Dec 2016 10:46:32 +0100 Subject: [PATCH] Update PHP CS Fixer config file --- .php_cs => .php_cs.dist | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) rename .php_cs => .php_cs.dist (84%) diff --git a/.php_cs b/.php_cs.dist similarity index 84% rename from .php_cs rename to .php_cs.dist index 5a702adb3a..baee1a5ec0 100644 --- a/.php_cs +++ b/.php_cs.dist @@ -1,15 +1,14 @@ setUsingLinter(false) - ->setUsingCache(true) - ->fixers(array( - 'long_array_syntax', - 'php_unit_construct', - 'php_unit_dedicate_assert', +return PhpCsFixer\Config::create() + ->setRules(array( + '@Symfony' => true, + '@Symfony:risky' => true, + 'array_syntax' => array('syntax' => 'long'), )) - ->finder( - Symfony\CS\Finder\DefaultFinder::create() + ->setRiskyAllowed(true) + ->setFinder( + PhpCsFixer\Finder::create() ->in(__DIR__) ->exclude(array( // directories containing files with content that is autogenerated by `var_export`, which breaks CS in output code