|
1 | 1 | <?php |
2 | 2 |
|
3 | | -return PhpCsFixer\Config::create() |
| 3 | +return (new PhpCsFixer\Config()) |
4 | 4 | ->setFinder( |
5 | 5 | \Symfony\Component\Finder\Finder::create() |
6 | 6 | ->in([ |
|
16 | 16 | 'array_indentation' => true, |
17 | 17 | 'array_syntax' => ['syntax' => 'short'], |
18 | 18 | 'backtick_to_shell_exec' => true, |
19 | | - 'blank_line_before_return' => true, |
| 19 | + 'blank_line_before_statement' => [ |
| 20 | + 'statements' => ['return'] |
| 21 | + ], |
20 | 22 | 'class_keyword_remove' => false, |
21 | 23 | 'combine_consecutive_issets' => true, |
22 | 24 | 'combine_consecutive_unsets' => true, |
|
48 | 50 | 'no_blank_lines_before_namespace' => false, |
49 | 51 | 'no_null_property_initialization' => true, |
50 | 52 | 'no_php4_constructor' => true, |
51 | | - 'no_short_echo_tag' => false, |
| 53 | + 'echo_tag_syntax' => [ |
| 54 | + 'format' => 'long' |
| 55 | + ], |
52 | 56 | 'no_superfluous_elseif' => true, |
53 | 57 | 'no_unreachable_default_argument_value' => true, |
54 | 58 | 'no_useless_else' => true, |
|
62 | 66 | 'php_unit_mock' => false, |
63 | 67 | 'php_unit_namespaced' => false, |
64 | 68 | 'php_unit_no_expectation_annotation' => false, |
65 | | - 'php_unit_ordered_covers' => true, |
| 69 | + 'phpdoc_order_by_value' => [ |
| 70 | + 'annotations' => ['covers'] |
| 71 | + ], |
| 72 | + 'php_unit_method_casing' => [ |
| 73 | + 'case' => 'snake_case', |
| 74 | + ], |
66 | 75 | 'php_unit_set_up_tear_down_visibility' => true, |
67 | 76 | 'php_unit_strict' => false, |
68 | 77 | 'php_unit_test_annotation' => false, |
|
71 | 80 | 'phpdoc_order' => true, |
72 | 81 | 'phpdoc_types_order' => ['null_adjustment' => 'always_last'], |
73 | 82 | 'pow_to_exponentiation' => true, |
74 | | - 'psr0' => true, |
| 83 | + 'psr_autoloading' => true, |
75 | 84 | 'random_api_migration' => false, |
76 | 85 | 'simplified_null_return' => true, |
77 | 86 | 'static_lambda' => false, |
|
0 commit comments