44 ->in (__DIR__ . '/src ' )
55 ->in (__DIR__ . '/tests ' );
66
7- return PhpCsFixer \Config:: create ()
8- ->setRules ([
7+ $ config = new PhpCsFixer \Config ();
8+ return $ config ->setRules ([
99 '@Symfony ' => true ,
10+ '@PHP71Migration:risky ' => true ,
11+ '@PHPUnit60Migration:risky ' => true ,
12+ 'array_indentation ' => true ,
1013 'array_syntax ' => ['syntax ' => 'short ' ],
1114 'blank_line_after_opening_tag ' => true ,
1215 'concat_space ' => ['spacing ' => 'one ' ],
1316 'declare_strict_types ' => true ,
14- 'is_null ' => ['use_yoda_style ' => false ],
17+ 'increment_style ' => ['style ' => ' post ' ],
1518 '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 ,
1721 '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 ,
1925 'no_useless_else ' => true ,
2026 'no_useless_return ' => true ,
2127 'ordered_imports ' => true ,
2228 'phpdoc_align ' => false ,
2329 'phpdoc_order ' => true ,
2430 'php_unit_construct ' => true ,
2531 'php_unit_dedicate_assert ' => true ,
26- 'pre_increment ' => false ,
32+ 'return_assignment ' => true ,
2733 'single_line_comment_style ' => true ,
2834 'ternary_to_null_coalescing ' => true ,
35+ 'yoda_style ' => ['equal ' => false , 'identical ' => false , 'less_and_greater ' => false ],
2936 'void_return ' => true ,
3037 ])
3138 ->setFinder ($ finder )
3239 ->setUsingCache (true )
33- ->setRiskyAllowed (true );
40+ ->setRiskyAllowed (true );
0 commit comments