|
21 | 21 | '@PSR12' => true,
|
22 | 22 | '@PHP82Migration' => true,
|
23 | 23 | 'align_multiline_comment' => true,
|
24 |
| - 'array_syntax' => ['syntax' => 'short'], |
25 |
| - 'binary_operator_spaces' => [ |
| 24 | + 'array_syntax' => [ |
| 25 | + 'syntax' => 'short', |
| 26 | + ], |
| 27 | + 'binary_operator_spaces' => [ |
26 | 28 | 'operators' => [
|
27 | 29 | '*=' => 'align_single_space_minimal',
|
28 | 30 | '+=' => 'align_single_space_minimal',
|
|
32 | 34 | '=>' => 'align_single_space_minimal',
|
33 | 35 | ],
|
34 | 36 | ],
|
35 |
| - 'declare_equal_normalize' => ['space' => 'none'], |
| 37 | + 'blank_line_between_import_groups' => true, |
| 38 | + 'cast_spaces' => true, |
| 39 | + 'declare_equal_normalize' => [ |
| 40 | + 'space' => 'none', |
| 41 | + ], |
36 | 42 | 'declare_parentheses' => true,
|
37 | 43 | 'declare_strict_types' => true,
|
38 | 44 | 'fully_qualified_strict_types' => true,
|
39 |
| - 'header_comment' => ['comment_type' => 'PHPDoc', 'header' => $header, 'separate' => 'top'], |
40 |
| - 'heredoc_to_nowdoc' => true, |
41 |
| - //'global_namespace_import' => ['import_classes' => true, 'import_constants' => true, 'import_functions' => true], |
42 |
| - 'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced', 'strict' => true], |
43 |
| - 'native_constant_invocation' => ['fix_built_in' => false, 'include' => ['DIRECTORY_SEPARATOR', 'PHP_INT_SIZE', 'PHP_SAPI', 'PHP_VERSION_ID'], 'scope' => 'namespaced', 'strict' => true], |
44 |
| - 'no_leading_import_slash' => true, |
45 |
| - 'no_unneeded_import_alias' => true, |
46 |
| - 'no_unused_imports' => true, |
47 |
| - 'ordered_class_elements' => [ |
| 45 | + 'header_comment' => [ |
| 46 | + 'comment_type' => 'PHPDoc', |
| 47 | + 'header' => $header, |
| 48 | + 'separate' => 'top', |
| 49 | + ], |
| 50 | + 'heredoc_indentation' => true, |
| 51 | + 'heredoc_to_nowdoc' => true, |
| 52 | + //'global_namespace_import' => ['import_classes' => true, 'import_constants' => true, 'import_functions' => true], |
| 53 | + 'native_function_invocation' => [ |
| 54 | + 'include' => [ |
| 55 | + '@compiler_optimized', |
| 56 | + ], |
| 57 | + 'scope' => 'namespaced', |
| 58 | + 'strict' => true, |
| 59 | + ], |
| 60 | + 'native_constant_invocation' => [ |
| 61 | + 'fix_built_in' => false, |
| 62 | + 'include' => [ |
| 63 | + 'DIRECTORY_SEPARATOR', |
| 64 | + 'PHP_INT_SIZE', |
| 65 | + 'PHP_SAPI', |
| 66 | + 'PHP_VERSION_ID', |
| 67 | + ], |
| 68 | + 'scope' => 'namespaced', |
| 69 | + 'strict' => true, |
| 70 | + ], |
| 71 | + 'no_empty_comment' => true, |
| 72 | + 'no_empty_phpdoc' => true, |
| 73 | + 'no_extra_blank_lines' => [ |
| 74 | + 'tokens' => [ |
| 75 | + 'case', |
| 76 | + 'continue', |
| 77 | + 'curly_brace_block', |
| 78 | + 'default', |
| 79 | + 'extra', |
| 80 | + 'parenthesis_brace_block', |
| 81 | + 'square_brace_block', |
| 82 | + 'switch', |
| 83 | + 'throw', |
| 84 | + 'use', |
| 85 | + ], |
| 86 | + ], |
| 87 | + 'no_leading_import_slash' => true, |
| 88 | + 'no_unneeded_import_alias' => true, |
| 89 | + 'no_unused_imports' => true, |
| 90 | + 'ordered_class_elements' => [ |
48 | 91 | 'order' => [
|
49 | 92 | 'use_trait',
|
50 | 93 | 'case',
|
|
70 | 113 | ],
|
71 | 114 | 'sort_algorithm' => 'alpha',
|
72 | 115 | ],
|
73 |
| - 'ordered_imports' => ['imports_order' => ['class', 'function', 'const', ]], |
| 116 | + 'ordered_imports' => [ |
| 117 | + 'imports_order' => [ |
| 118 | + 'class', |
| 119 | + 'function', |
| 120 | + 'const', |
| 121 | + ], |
| 122 | + ], |
74 | 123 | 'ordered_interfaces' => [
|
75 | 124 | 'direction' => 'ascend',
|
76 | 125 | 'order' => 'alpha',
|
|
100 | 149 | 'phpdoc_types_order' => true,
|
101 | 150 | 'phpdoc_var_annotation_correct_order' => true,
|
102 | 151 | 'phpdoc_var_without_name' => true,
|
103 |
| - 'php_unit_internal_class' => ['types' => ['normal', 'final']], |
104 |
| - 'php_unit_expectation' => true, |
105 |
| - 'single_import_per_statement' => true, |
106 |
| - 'static_lambda' => true, |
107 |
| - 'strict_param' => true, |
108 |
| - 'use_arrow_functions' => true, |
109 |
| - 'whitespace_after_comma_in_array' => true, |
| 152 | + 'php_unit_data_provider_return_type' => true, |
| 153 | + 'php_unit_data_provider_static' => [ |
| 154 | + 'force' => true, |
| 155 | + ], |
| 156 | + 'php_unit_expectation' => true, |
| 157 | + 'php_unit_internal_class' => [ |
| 158 | + 'types' => [ |
| 159 | + 'normal', |
| 160 | + 'final', |
| 161 | + ], |
| 162 | + ], |
| 163 | + 'php_unit_method_casing' => [ |
| 164 | + 'case' => 'camel_case', |
| 165 | + ], |
| 166 | + 'php_unit_mock' => [ |
| 167 | + 'target' => 'newest', |
| 168 | + ], |
| 169 | + 'php_unit_mock_short_will_return' => true, |
| 170 | + 'php_unit_set_up_tear_down_visibility' => true, |
| 171 | + 'php_unit_size_class' => false, |
| 172 | + 'php_unit_test_annotation' => [ |
| 173 | + 'style' => 'prefix', |
| 174 | + ], |
| 175 | + 'php_unit_test_case_static_method_calls' => [ |
| 176 | + 'call_type' => 'self', |
| 177 | + ], |
| 178 | + 'single_import_per_statement' => true, |
| 179 | + 'single_quote' => true, |
| 180 | + 'single_space_around_construct' => true, |
| 181 | + 'static_lambda' => true, |
| 182 | + 'strict_param' => true, |
| 183 | + 'types_spaces' => true, |
| 184 | + 'use_arrow_functions' => true, |
| 185 | + 'whitespace_after_comma_in_array' => true, |
110 | 186 | ])
|
111 | 187 | ->setLineEnding("\n")
|
112 | 188 | ->setFinder(
|
|
0 commit comments