This repository was archived by the owner on Feb 21, 2022. It is now read-only.
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
- return Symfony \CS \Config \Config::create ()
4
- // use SYMFONY_LEVEL:
5
- ->level (Symfony \CS \FixerInterface::SYMFONY_LEVEL )
6
- // and extra fixers:
7
- ->fixers (array (
8
- 'concat_with_spaces ' ,
9
- 'multiline_spaces_before_semicolon ' ,
10
- 'short_array_syntax ' ,
11
- '-remove_lines_between_uses '
12
- ))
13
- ->finder (
14
- Symfony \CS \Finder \DefaultFinder::create ()
15
- ->in ('src/ ' )
16
- ->in ('tests/ ' )
17
- )
3
+ $ finder = PhpCsFixer \Finder::create ()
4
+ ->in (__DIR__ .'/src ' )
5
+ ->in (__DIR__ .'/tests ' )
6
+ ;
7
+
8
+ return PhpCsFixer \Config::create ()
9
+ ->setRules ([
10
+ '@Symfony ' => true ,
11
+ 'concat_space ' => ['spacing ' => 'one ' ],
12
+ 'no_multiline_whitespace_before_semicolons ' => false ,
13
+ 'array_syntax ' => ['syntax ' => 'short ' ],
14
+ 'yoda_style ' => false ,
15
+ 'return_type_declaration ' => ['space_before ' => 'one ' ],
16
+ 'self_accessor ' => false ,
17
+ 'no_extra_consecutive_blank_lines ' => false ,
18
+ ])
19
+ ->setFinder ($ finder )
18
20
;
Original file line number Diff line number Diff line change 23
23
"symfony/property-access" : " ^3.2"
24
24
},
25
25
"require-dev" : {
26
- "friendsofphp/php-cs-fixer" : " ^1.12.4 " ,
26
+ "friendsofphp/php-cs-fixer" : " ^2.8.3 " ,
27
27
"phpunit/phpunit" : " ^5.6.4"
28
28
},
29
29
"bin" : [
You can’t perform that action at this time.
0 commit comments