Skip to content

Commit

Permalink
update php-cs-fixer version
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Chepurnoy committed Dec 12, 2016
1 parent 4f26c31 commit 72f3797
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
32 changes: 17 additions & 15 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
<?php

$finder = Symfony\CS\Finder::create()
$finder = PhpCsFixer\Finder::create()
->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;
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"yiisoft/yii2": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "~1.7"
"friendsofphp/php-cs-fixer": "~2.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 72f3797

Please sign in to comment.