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 2e312c5 commit a35cc08
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 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;
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
"yii2",
"yii2-rbac",
"rbac management",
"yii2mod",
"rbac gui",
"yii rbac",
"yii2 rbac",
"rbac module"
],
"type": "yii2-extension",
Expand All @@ -28,7 +27,7 @@
"yiisoft/yii2-jui": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "~1.7"
"friendsofphp/php-cs-fixer": "~2.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit a35cc08

Please sign in to comment.