From 72f3797deb308dce5f487eabd02f7723a205af61 Mon Sep 17 00:00:00 2001 From: Igor Chepurnoy Date: Tue, 13 Dec 2016 00:50:17 +0200 Subject: [PATCH] update php-cs-fixer version --- .php_cs | 32 +++++++++++++++++--------------- composer.json | 2 +- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/.php_cs b/.php_cs index b810a08..3867449 100644 --- a/.php_cs +++ b/.php_cs @@ -1,23 +1,25 @@ exclude('vendor') ->in([__DIR__]); -$config = Symfony\CS\Config::create() - ->fixers([ - '-phpdoc_params', - '-phpdoc_short_description', - '-phpdoc_inline_tag', - '-pre_increment', - '-heredoc_to_nowdoc', - '-spaces_cast', - '-include', - '-phpdoc_no_package', - 'concat_with_spaces', - 'ordered_use', - 'short_array_syntax', +$config = PhpCsFixer\Config::create() + ->setUsingCache(false) + ->setRules([ + '@Symfony' => true, + 'phpdoc_align' => false, + 'phpdoc_summary' => false, + 'phpdoc_inline_tag' => false, + 'pre_increment' => false, + 'heredoc_to_nowdoc' => false, + 'cast_spaces' => false, + 'include' => false, + 'phpdoc_no_package' => false, + 'concat_space' => ['spacing' => 'one'], + 'ordered_imports' => true, + 'array_syntax' => ['syntax' => 'short'], ]) - ->finder($finder); + ->setFinder($finder); return $config; diff --git a/composer.json b/composer.json index 9a8a62d..83a1072 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "yiisoft/yii2": "*" }, "require-dev": { - "friendsofphp/php-cs-fixer": "~1.7" + "friendsofphp/php-cs-fixer": "~2.0" }, "autoload": { "psr-4": {