4
4
->in (__DIR__ . '/src ' )
5
5
->in (__DIR__ . '/tests ' );
6
6
7
- return PhpCsFixer \Config:: create ()
8
- ->setRules ([
7
+ $ config = new PhpCsFixer \Config ();
8
+ return $ config ->setRules ([
9
9
'@Symfony ' => true ,
10
+ '@PHP71Migration:risky ' => true ,
11
+ '@PHPUnit60Migration:risky ' => true ,
12
+ 'array_indentation ' => true ,
10
13
'array_syntax ' => ['syntax ' => 'short ' ],
11
14
'blank_line_after_opening_tag ' => true ,
12
15
'concat_space ' => ['spacing ' => 'one ' ],
13
16
'declare_strict_types ' => true ,
14
- 'is_null ' => ['use_yoda_style ' => false ],
17
+ 'increment_style ' => ['style ' => ' post ' ],
15
18
'list_syntax ' => ['syntax ' => 'short ' ],
16
- 'method_argument_space ' => ['ensure_fully_multiline ' => true ],
19
+ 'method_argument_space ' => ['on_multiline ' => 'ensure_fully_multiline ' ],
20
+ 'method_chaining_indentation ' => true ,
17
21
'modernize_types_casting ' => true ,
18
- 'no_multiline_whitespace_before_semicolons ' => true ,
22
+ 'multiline_whitespace_before_semicolons ' => false ,
23
+ 'no_superfluous_elseif ' => true ,
24
+ 'no_superfluous_phpdoc_tags ' => true ,
19
25
'no_useless_else ' => true ,
20
26
'no_useless_return ' => true ,
21
27
'ordered_imports ' => true ,
22
28
'phpdoc_align ' => false ,
23
29
'phpdoc_order ' => true ,
24
30
'php_unit_construct ' => true ,
25
31
'php_unit_dedicate_assert ' => true ,
26
- 'pre_increment ' => false ,
32
+ 'return_assignment ' => true ,
27
33
'single_line_comment_style ' => true ,
28
34
'ternary_to_null_coalescing ' => true ,
35
+ 'yoda_style ' => ['equal ' => false , 'identical ' => false , 'less_and_greater ' => false ],
29
36
'void_return ' => true ,
30
37
])
31
38
->setFinder ($ finder )
32
39
->setUsingCache (true )
33
- ->setRiskyAllowed (true );
40
+ ->setRiskyAllowed (true );
0 commit comments