@@ -13,31 +13,16 @@ $finder = PhpCsFixer\Finder::create()
13
13
->in (__DIR__ )
14
14
;
15
15
16
- $ rules = [
17
- '@PHP56Migration ' => true ,
18
- '@PHP56Migration:risky ' => true ,
19
- '@PHP71Migration ' => true ,
20
- '@PHP71Migration:risky ' => true ,
21
- ];
22
-
23
- if (\PHP_VERSION_ID >= 70300 ) {
24
- $ rules = array_merge ($ rules , [
25
- '@PHP73Migration ' => true ,
26
- ]);
27
- }
28
- if (\PHP_VERSION_ID >= 70400 ) {
29
- $ rules = array_merge ($ rules , [
30
- '@PHP74Migration ' => true ,
31
- '@PHP74Migration:risky ' => true ,
32
- ]);
33
- }
34
-
35
16
return PhpCsFixer \Config::create ()
36
17
->setRiskyAllowed (true )
37
18
->setRules ([
38
19
'@Symfony ' => true ,
39
20
'@Symfony:risky ' => true ,
40
21
'@DoctrineAnnotation ' => true ,
22
+ '@PHP56Migration ' => true ,
23
+ '@PHP56Migration:risky ' => true ,
24
+ '@PHP71Migration ' => true ,
25
+ '@PHP71Migration:risky ' => true ,
41
26
'array_syntax ' => ['syntax ' => 'short ' ],
42
27
'fopen_flags ' => true ,
43
28
'header_comment ' => ['header ' => $ fileHeaderComment , 'separate ' => 'both ' ],
0 commit comments