Skip to content

Commit a35cc08

Browse files
author
Igor Chepurnoy
committed
update php-cs-fixer version
1 parent 2e312c5 commit a35cc08

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

.php_cs

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
<?php
22

3-
$finder = Symfony\CS\Finder::create()
3+
$finder = PhpCsFixer\Finder::create()
44
->exclude('vendor')
55
->in([__DIR__]);
66

7-
$config = Symfony\CS\Config::create()
8-
->fixers([
9-
'-phpdoc_params',
10-
'-phpdoc_short_description',
11-
'-phpdoc_inline_tag',
12-
'-pre_increment',
13-
'-heredoc_to_nowdoc',
14-
'-spaces_cast',
15-
'-include',
16-
'-phpdoc_no_package',
17-
'concat_with_spaces',
18-
'ordered_use',
19-
'short_array_syntax',
7+
$config = PhpCsFixer\Config::create()
8+
->setUsingCache(false)
9+
->setRules([
10+
'@Symfony' => true,
11+
'phpdoc_align' => false,
12+
'phpdoc_summary' => false,
13+
'phpdoc_inline_tag' => false,
14+
'pre_increment' => false,
15+
'heredoc_to_nowdoc' => false,
16+
'cast_spaces' => false,
17+
'include' => false,
18+
'phpdoc_no_package' => false,
19+
'concat_space' => ['spacing' => 'one'],
20+
'ordered_imports' => true,
21+
'array_syntax' => ['syntax' => 'short'],
2022
])
21-
->finder($finder);
23+
->setFinder($finder);
2224

2325
return $config;

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
"yii2",
66
"yii2-rbac",
77
"rbac management",
8-
"yii2mod",
98
"rbac gui",
10-
"yii rbac",
9+
"yii2 rbac",
1110
"rbac module"
1211
],
1312
"type": "yii2-extension",
@@ -28,7 +27,7 @@
2827
"yiisoft/yii2-jui": "*"
2928
},
3029
"require-dev": {
31-
"friendsofphp/php-cs-fixer": "~1.7"
30+
"friendsofphp/php-cs-fixer": "~2.0"
3231
},
3332
"autoload": {
3433
"psr-4": {

0 commit comments

Comments
 (0)