|
1 | 1 | {
|
2 | 2 | "preset": "empty",
|
3 | 3 | "rules": {
|
| 4 | + "align_multiline_comment": true, |
4 | 5 | "array_indentation": true,
|
| 6 | + "array_syntax": { |
| 7 | + "syntax": "short" |
| 8 | + }, |
5 | 9 | "binary_operator_spaces": {
|
6 | 10 | "default": "single_space"
|
7 | 11 | },
|
|
13 | 17 | ]
|
14 | 18 | },
|
15 | 19 | "blank_line_between_import_groups": true,
|
| 20 | + "blank_lines_before_namespace": true, |
| 21 | + "braces_position": { |
| 22 | + "control_structures_opening_brace": "same_line", |
| 23 | + "functions_opening_brace": "next_line_unless_newline_at_signature_end", |
| 24 | + "anonymous_functions_opening_brace": "same_line", |
| 25 | + "classes_opening_brace": "next_line_unless_newline_at_signature_end", |
| 26 | + "anonymous_classes_opening_brace": "next_line_unless_newline_at_signature_end", |
| 27 | + "allow_single_line_empty_anonymous_classes": false, |
| 28 | + "allow_single_line_anonymous_functions": false |
| 29 | + }, |
16 | 30 | "cast_spaces": true,
|
| 31 | + "class_definition": true, |
17 | 32 | "class_reference_name_casing": true,
|
18 | 33 | "clean_namespace": true,
|
19 | 34 | "compact_nullable_type_declaration": true,
|
20 | 35 | "concat_space": true,
|
21 | 36 | "constant_case": {
|
22 | 37 | "case": "lower"
|
23 | 38 | },
|
| 39 | + "control_structure_braces": true, |
24 | 40 | "declare_equal_normalize": true,
|
25 | 41 | "elseif": true,
|
26 | 42 | "encoding": true,
|
27 | 43 | "full_opening_tag": true,
|
28 | 44 | "function_declaration": true,
|
29 | 45 | "heredoc_to_nowdoc": true,
|
30 | 46 | "include": true,
|
| 47 | + "increment_style": { |
| 48 | + "style": "post" |
| 49 | + }, |
31 | 50 | "indentation_type": true,
|
32 | 51 | "integer_literal_case": true,
|
| 52 | + "lambda_not_used_import": true, |
33 | 53 | "line_ending": true,
|
| 54 | + "list_syntax": { |
| 55 | + "syntax": "short" |
| 56 | + }, |
34 | 57 | "lowercase_cast": true,
|
35 | 58 | "lowercase_keywords": true,
|
36 | 59 | "lowercase_static_reference": true,
|
|
40 | 63 | "on_multiline": "ignore"
|
41 | 64 | },
|
42 | 65 | "method_chaining_indentation": true,
|
| 66 | + "multiline_whitespace_before_semicolons": { |
| 67 | + "strategy": "no_multi_line" |
| 68 | + }, |
43 | 69 | "native_function_casing": true,
|
44 | 70 | "native_type_declaration_casing": true,
|
45 | 71 | "no_alternative_syntax": true,
|
|
58 | 84 | },
|
59 | 85 | "no_leading_import_slash": true,
|
60 | 86 | "no_leading_namespace_whitespace": true,
|
| 87 | + "no_mixed_echo_print": { |
| 88 | + "use": "echo" |
| 89 | + }, |
61 | 90 | "no_multiline_whitespace_around_double_arrow": true,
|
62 | 91 | "no_short_bool_cast": true,
|
63 | 92 | "no_singleline_whitespace_before_semicolons": true,
|
64 | 93 | "no_space_around_double_colon": true,
|
| 94 | + "no_spaces_around_offset": { |
| 95 | + "positions": [ |
| 96 | + "inside", |
| 97 | + "outside" |
| 98 | + ] |
| 99 | + }, |
65 | 100 | "no_spaces_after_function_name": true,
|
| 101 | + "no_trailing_comma_in_singleline": true, |
66 | 102 | "no_trailing_whitespace": true,
|
67 | 103 | "no_trailing_whitespace_in_comment": true,
|
68 | 104 | "no_unneeded_braces": true,
|
|
85 | 121 | "function"
|
86 | 122 | ]
|
87 | 123 | },
|
| 124 | + "phpdoc_align": { |
| 125 | + "align": "left", |
| 126 | + "spacing": { |
| 127 | + "param": 2 |
| 128 | + } |
| 129 | + }, |
88 | 130 | "phpdoc_indent": true,
|
89 | 131 | "phpdoc_inline_tag_normalizer": true,
|
90 | 132 | "phpdoc_no_access": true,
|
91 | 133 | "phpdoc_no_package": true,
|
92 | 134 | "phpdoc_no_useless_inheritdoc": true,
|
| 135 | + "phpdoc_order": { |
| 136 | + "order": [ |
| 137 | + "param", |
| 138 | + "return", |
| 139 | + "throws" |
| 140 | + ] |
| 141 | + }, |
93 | 142 | "phpdoc_return_self_reference": true,
|
94 | 143 | "phpdoc_scalar": true,
|
| 144 | + "phpdoc_separation": { |
| 145 | + "groups": [ |
| 146 | + [ |
| 147 | + "deprecated", |
| 148 | + "link", |
| 149 | + "see", |
| 150 | + "since" |
| 151 | + ], |
| 152 | + [ |
| 153 | + "author", |
| 154 | + "copyright", |
| 155 | + "license" |
| 156 | + ], |
| 157 | + [ |
| 158 | + "category", |
| 159 | + "package", |
| 160 | + "subpackage" |
| 161 | + ], |
| 162 | + [ |
| 163 | + "property", |
| 164 | + "property-read", |
| 165 | + "property-write" |
| 166 | + ], |
| 167 | + [ |
| 168 | + "param", |
| 169 | + "return" |
| 170 | + ] |
| 171 | + ] |
| 172 | + }, |
95 | 173 | "phpdoc_single_line_var_spacing": true,
|
96 | 174 | "phpdoc_summary": true,
|
97 | 175 | "phpdoc_trim": true,
|
|
103 | 181 | "short_scalar_cast": true,
|
104 | 182 | "single_blank_line_at_eof": true,
|
105 | 183 | "single_class_element_per_statement": true,
|
| 184 | + "single_import_per_statement": true, |
106 | 185 | "single_line_after_imports": true,
|
107 | 186 | "single_line_comment_style": true,
|
108 | 187 | "single_quote": true,
|
109 | 188 | "space_after_semicolon": true,
|
| 189 | + "spaces_inside_parentheses": true, |
110 | 190 | "standardize_not_equals": true,
|
111 | 191 | "switch_case_semicolon_to_colon": true,
|
112 | 192 | "switch_case_space": true,
|
113 | 193 | "switch_continue_to_break": true,
|
114 | 194 | "ternary_operator_spaces": true,
|
| 195 | + "trailing_comma_in_multiline": true, |
115 | 196 | "trim_array_spaces": true,
|
116 | 197 | "type_declaration_spaces": true,
|
117 | 198 | "types_spaces": true,
|
|
0 commit comments