|
1 | 1 | { |
2 | 2 | "preset": "psr12", |
3 | 3 | "rules": { |
| 4 | + "align_multiline_comment": true, |
4 | 5 | "array_indentation": true, |
| 6 | + "array_syntax": { |
| 7 | + "syntax": "short" |
| 8 | + }, |
| 9 | + "assign_null_coalescing_to_coalesce_equal": false, |
| 10 | + "blank_line_before_statement": { |
| 11 | + "statements": [ |
| 12 | + "break", |
| 13 | + "continue", |
| 14 | + "declare", |
| 15 | + "return", |
| 16 | + "throw", |
| 17 | + "try" |
| 18 | + ] |
| 19 | + }, |
| 20 | + "cast_spaces": { |
| 21 | + "space": "single" |
| 22 | + }, |
| 23 | + "class_attributes_separation": { |
| 24 | + "elements": { |
| 25 | + "const": "one", |
| 26 | + "method": "one", |
| 27 | + "property": "one", |
| 28 | + "trait_import": "none", |
| 29 | + "case": "none" |
| 30 | + } |
| 31 | + }, |
| 32 | + "class_reference_name_casing": true, |
| 33 | + "clean_namespace": true, |
| 34 | + "combine_consecutive_issets": true, |
| 35 | + "combine_consecutive_unsets": true, |
5 | 36 | "concat_space": { |
6 | 37 | "spacing": "one" |
7 | 38 | }, |
| 39 | + "explicit_string_variable": true, |
8 | 40 | "function_declaration": { |
9 | 41 | "closure_fn_spacing": "none", |
10 | 42 | "closure_function_spacing": "one", |
11 | 43 | "trailing_comma_single_line": false |
12 | 44 | }, |
| 45 | + "global_namespace_import": { |
| 46 | + "import_classes": true, |
| 47 | + "import_constants": true, |
| 48 | + "import_functions": true |
| 49 | + }, |
| 50 | + "magic_constant_casing": true, |
| 51 | + "magic_method_casing": true, |
13 | 52 | "method_chaining_indentation": true, |
| 53 | + "native_function_casing": true, |
| 54 | + "native_type_declaration_casing": true, |
| 55 | + "no_blank_lines_after_phpdoc": true, |
| 56 | + "no_empty_comment": true, |
| 57 | + "no_leading_namespace_whitespace": true, |
| 58 | + "no_singleline_whitespace_before_semicolons": true, |
| 59 | + "no_spaces_around_offset": { |
| 60 | + "positions": [ |
| 61 | + "inside", |
| 62 | + "outside" |
| 63 | + ] |
| 64 | + }, |
14 | 65 | "no_trailing_comma_in_singleline": { |
15 | 66 | "elements": [ |
16 | 67 | "arguments", |
|
19 | 70 | "group_import" |
20 | 71 | ] |
21 | 72 | }, |
| 73 | + "no_unneeded_braces": true, |
| 74 | + "no_unused_imports": true, |
| 75 | + "no_useless_return": true, |
22 | 76 | "no_whitespace_before_comma_in_array": { |
23 | 77 | "after_heredoc": false |
24 | 78 | }, |
| 79 | + "normalize_index_brace": true, |
| 80 | + "object_operator_without_whitespace": true, |
25 | 81 | "ordered_imports": { |
26 | 82 | "imports_order": null, |
27 | 83 | "sort_algorithm": "alpha" |
28 | 84 | }, |
| 85 | + "phpdoc_align": { |
| 86 | + "align": "vertical" |
| 87 | + }, |
| 88 | + "phpdoc_order": { |
| 89 | + "order": [ |
| 90 | + "param", |
| 91 | + "throws", |
| 92 | + "return" |
| 93 | + ] |
| 94 | + }, |
29 | 95 | "single_space_around_construct": { |
30 | 96 | "constructs_contain_a_single_space": [ |
31 | 97 | "yield_from" |
32 | 98 | ] |
33 | 99 | }, |
| 100 | + "single_line_empty_body": true, |
34 | 101 | "trailing_comma_in_multiline": { |
35 | 102 | "after_heredoc": true, |
36 | 103 | "elements": [ |
|
41 | 108 | ] |
42 | 109 | }, |
43 | 110 | "trim_array_spaces": true, |
| 111 | + "type_declaration_spaces": true, |
44 | 112 | "whitespace_after_comma_in_array": { |
45 | 113 | "ensure_single_space": true |
46 | 114 | } |
|
0 commit comments