File tree 2 files changed +18
-16
lines changed
2 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- $ finder = Symfony \ CS \Finder::create ()
3
+ $ finder = PhpCsFixer \Finder::create ()
4
4
->exclude ('vendor ' )
5
5
->in ([__DIR__ ]);
6
6
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 ' ],
20
22
])
21
- ->finder ($ finder );
23
+ ->setFinder ($ finder );
22
24
23
25
return $ config ;
Original file line number Diff line number Diff line change 22
22
"yii2mod/yii2-enum" : " *"
23
23
},
24
24
"require-dev" : {
25
- "friendsofphp/php-cs-fixer" : " ~1.7 "
25
+ "friendsofphp/php-cs-fixer" : " ~2.0 "
26
26
},
27
27
"autoload" : {
28
28
"psr-4" : {
You can’t perform that action at this time.
0 commit comments