|
1 | 1 | <?php |
2 | 2 |
|
3 | | -return PhpCsFixer\Config::create() |
| 3 | +return (new PhpCsFixer\Config()) |
4 | 4 | ->setFinder( |
5 | | - \Symfony\Component\Finder\Finder::create() |
| 5 | + PhpCsFixer\Finder::create() |
6 | 6 | ->in([ |
7 | 7 | __DIR__ . '/src', |
8 | 8 | __DIR__ . '/spec', |
|
15 | 15 | 'array_indentation' => true, |
16 | 16 | 'array_syntax' => ['syntax' => 'short'], |
17 | 17 | 'backtick_to_shell_exec' => true, |
18 | | - 'blank_line_before_statement' => true, |
| 18 | + 'blank_line_before_statement' => ['statements' => ['return']], |
19 | 19 | 'class_keyword_remove' => false, |
20 | 20 | 'combine_consecutive_issets' => true, |
21 | 21 | 'combine_consecutive_unsets' => true, |
|
30 | 30 | 'escape_implicit_backslashes' => true, |
31 | 31 | 'explicit_indirect_variable' => true, |
32 | 32 | 'explicit_string_variable' => true, |
33 | | - 'final_internal_class' => false, |
| 33 | + 'final_internal_class' => true, |
34 | 34 | 'fully_qualified_strict_types' => true, |
35 | 35 | 'general_phpdoc_annotation_remove' => false, |
36 | 36 | 'header_comment' => false, |
37 | 37 | 'heredoc_to_nowdoc' => false, |
38 | 38 | 'linebreak_after_opening_tag' => true, |
39 | | - 'list_syntax' => true, |
| 39 | + 'list_syntax' => ['syntax' => 'short'], |
40 | 40 | 'mb_str_functions' => true, |
41 | 41 | 'method_chaining_indentation' => true, |
42 | 42 | 'multiline_comment_opening_closing' => true, |
|
46 | 46 | 'no_blank_lines_before_namespace' => false, |
47 | 47 | 'no_null_property_initialization' => true, |
48 | 48 | 'no_php4_constructor' => true, |
49 | | - 'no_short_echo_tag' => false, |
| 49 | + 'echo_tag_syntax' => ['format'=> 'long'], |
50 | 50 | 'no_superfluous_elseif' => true, |
51 | 51 | 'no_unreachable_default_argument_value' => true, |
52 | 52 | 'no_useless_else' => true, |
|
60 | 60 | 'php_unit_mock' => false, |
61 | 61 | 'php_unit_namespaced' => false, |
62 | 62 | 'php_unit_no_expectation_annotation' => false, |
63 | | - 'php_unit_ordered_covers' => true, |
| 63 | + 'phpdoc_order_by_value' => ['annotations' => ['covers']], |
64 | 64 | 'php_unit_set_up_tear_down_visibility' => true, |
65 | 65 | 'php_unit_strict' => false, |
66 | 66 | 'php_unit_test_annotation' => false, |
67 | 67 | 'php_unit_test_class_requires_covers' => false, |
| 68 | + 'php_unit_method_casing' => ['case' => 'snake_case'], |
68 | 69 | 'phpdoc_add_missing_param_annotation' => true, |
69 | 70 | 'phpdoc_order' => true, |
70 | 71 | 'phpdoc_types_order' => ['null_adjustment' => 'always_last'], |
71 | 72 | 'pow_to_exponentiation' => true, |
72 | | - 'psr0' => true, |
| 73 | + 'psr_autoloading' => ['dir' => 'src'], |
73 | 74 | 'random_api_migration' => false, |
74 | 75 | 'simplified_null_return' => true, |
75 | 76 | 'static_lambda' => false, |
|
79 | 80 | 'ternary_to_null_coalescing' => true, |
80 | 81 | 'void_return' => true, |
81 | 82 | 'yoda_style' => true, |
| 83 | + 'single_line_throw' => false, |
| 84 | + 'phpdoc_align' => ['align' => 'left'], |
| 85 | + 'phpdoc_to_comment' => false, |
| 86 | + 'global_namespace_import' => [ |
| 87 | + 'import_classes' => true, |
| 88 | + 'import_constants' => true, |
| 89 | + 'import_functions' => true, |
| 90 | + ], |
82 | 91 | ]) |
83 | 92 | ; |
0 commit comments