|
1 | 1 | <?php |
2 | 2 |
|
3 | | -return PhpCsFixer\Config::create() |
| 3 | +return (new PhpCsFixer\Config()) |
4 | 4 | ->setFinder( |
5 | | - \Symfony\Component\Finder\Finder::create() |
6 | | - ->name('*.php') |
| 5 | + PhpCsFixer\Finder::create() |
7 | 6 | ->in([ |
8 | 7 | __DIR__ . '/examples', |
9 | 8 | __DIR__ . '/src', |
10 | 9 | __DIR__ . '/tests', |
11 | 10 | ]) |
| 11 | + ->name('*.php') |
12 | 12 | ) |
13 | 13 | ->setRiskyAllowed(true) |
14 | 14 | ->setRules([ |
|
17 | 17 | 'array_indentation' => true, |
18 | 18 | 'array_syntax' => ['syntax' => 'short'], |
19 | 19 | 'backtick_to_shell_exec' => true, |
20 | | - 'blank_line_before_return' => true, |
| 20 | + 'blank_line_before_statement' => ['statements' => ['return']], |
21 | 21 | 'class_keyword_remove' => false, |
22 | 22 | 'combine_consecutive_issets' => true, |
23 | 23 | 'combine_consecutive_unsets' => true, |
|
49 | 49 | 'no_blank_lines_before_namespace' => false, |
50 | 50 | 'no_null_property_initialization' => true, |
51 | 51 | 'no_php4_constructor' => true, |
52 | | - 'no_short_echo_tag' => false, |
| 52 | + 'echo_tag_syntax' => ['format'=> 'long'], |
53 | 53 | 'no_superfluous_elseif' => true, |
54 | 54 | 'no_unreachable_default_argument_value' => true, |
55 | 55 | 'no_useless_else' => true, |
|
63 | 63 | 'php_unit_mock' => false, |
64 | 64 | 'php_unit_namespaced' => false, |
65 | 65 | 'php_unit_no_expectation_annotation' => false, |
66 | | - 'php_unit_ordered_covers' => true, |
| 66 | + 'phpdoc_order_by_value' => ['annotations' => ['covers']], |
67 | 67 | 'php_unit_set_up_tear_down_visibility' => true, |
68 | 68 | 'php_unit_strict' => false, |
69 | 69 | 'php_unit_test_annotation' => false, |
|
73 | 73 | 'phpdoc_order' => true, |
74 | 74 | 'phpdoc_types_order' => ['null_adjustment' => 'always_last'], |
75 | 75 | 'pow_to_exponentiation' => true, |
76 | | - 'psr0' => true, |
| 76 | + 'psr_autoloading' => ['dir' => 'src'], |
77 | 77 | 'random_api_migration' => false, |
78 | 78 | 'simplified_null_return' => true, |
79 | 79 | 'static_lambda' => false, |
|
0 commit comments