php-cs-fixer-config
/
pint.json
171 строка · 5.8 Кб
1{
2"preset": "laravel",
3"rules": {
4"@PSR12": true,
5"@PHP83Migration": true,
6"binary_operator_spaces": {
7"default": "align_single_space_minimal",
8"operators": {
9"=": "align_single_space",
10"=>": "align_single_space"
11}
12},
13"blank_lines_before_namespace": {
14"min_line_breaks": 2,
15"max_line_breaks": 2
16},
17"blank_line_after_opening_tag": true,
18"blank_line_before_statement": true,
19"braces": true,
20"cast_spaces": true,
21"combine_consecutive_issets": true,
22"combine_consecutive_unsets": true,
23"compact_nullable_typehint": true,
24"concat_space": {
25"spacing": "one"
26},
27"declare_equal_normalize": {
28"space": "single"
29},
30"encoding": true,
31"function_typehint_space": true,
32"include": true,
33"line_ending": true,
34"linebreak_after_opening_tag": true,
35"lowercase_cast": true,
36"magic_constant_casing": true,
37"method_argument_space": false,
38"native_function_casing": true,
39"no_blank_lines_after_phpdoc": true,
40"no_blank_lines_after_class_opening": true,
41"no_empty_phpdoc": true,
42"no_empty_statement": true,
43"no_closing_tag": true,
44"no_leading_import_slash": true,
45"no_leading_namespace_whitespace": true,
46"no_multiline_whitespace_around_double_arrow": true,
47"no_trailing_comma_in_singleline_array": true,
48"no_null_property_initialization": true,
49"no_mixed_echo_print": {
50"use": "echo"
51},
52"no_spaces_after_function_name": true,
53"no_short_bool_cast": true,
54"no_singleline_whitespace_before_semicolons": true,
55"no_spaces_around_offset": true,
56"no_trailing_comma_in_list_call": true,
57"no_unused_imports": true,
58"no_whitespace_in_blank_line": true,
59"no_useless_else": true,
60"no_useless_return": true,
61"no_whitespace_before_comma_in_array": true,
62"not_operator_with_successor_space": true,
63"normalize_index_brace": true,
64"object_operator_without_whitespace": true,
65"ordered_class_elements": true,
66"phpdoc_add_missing_param_annotation": {
67"only_untyped": true
68},
69"phpdoc_align": true,
70"phpdoc_annotation_without_dot": true,
71"phpdoc_indent": true,
72"phpdoc_inline_tag_normalizer": true,
73"phpdoc_order": true,
74"phpdoc_separation": true,
75"phpdoc_single_line_var_spacing": true,
76"phpdoc_summary": true,
77"phpdoc_types": true,
78"phpdoc_no_access": true,
79"phpdoc_no_package": true,
80"phpdoc_no_useless_inheritdoc": true,
81"phpdoc_return_self_reference": true,
82"phpdoc_scalar": true,
83"phpdoc_to_comment": false,
84"phpdoc_trim": true,
85"phpdoc_types_order": {
86"null_adjustment": "always_last"
87},
88"phpdoc_var_without_name": true,
89"return_type_declaration": true,
90"semicolon_after_instruction": true,
91"short_scalar_cast": true,
92"single_line_comment_style": true,
93"single_blank_line_at_eof": true,
94"single_line_after_imports": true,
95"single_quote": true,
96"space_after_semicolon": true,
97"standardize_not_equals": true,
98"ternary_operator_spaces": true,
99"trim_array_spaces": true,
100"trailing_comma_in_multiline": true,
101"unary_operator_spaces": true,
102"ternary_to_null_coalescing": true,
103"visibility_required": true,
104"whitespace_after_comma_in_array": true,
105"ordered_imports": {
106"sort_algorithm": "alpha",
107"imports_order": [
108"const",
109"class",
110"function"
111]
112},
113"array_syntax": {
114"syntax": "short"
115},
116"yoda_style": {
117"equal": false,
118"identical": false,
119"less_and_greater": false
120},
121"simplified_null_return": true,
122"phpdoc_var_annotation_correct_order": true,
123"phpdoc_trim_consecutive_blank_line_separation": true,
124"phpdoc_to_return_type": false,
125"phpdoc_no_empty_return": false,
126"no_trailing_whitespace_in_comment": false,
127"php_unit_test_class_requires_covers": false,
128"php_unit_method_casing": {
129"case": "snake_case"
130},
131"php_unit_fqcn_annotation": true,
132"array_indentation": true,
133"class_attributes_separation": {
134"elements": {
135"const": "one",
136"method": "one",
137"property": "one"
138}
139},
140"escape_implicit_backslashes": {
141"double_quoted": true
142},
143"explicit_indirect_variable": true,
144"explicit_string_variable": true,
145"fully_qualified_strict_types": true,
146"global_namespace_import": {
147"import_classes": true,
148"import_constants": true,
149"import_functions": true
150},
151"lowercase_static_reference": true,
152"magic_method_casing": true,
153"method_chaining_indentation": true,
154"multiline_comment_opening_closing": true,
155"native_function_type_declaration_casing": true,
156"no_alternative_syntax": true,
157"no_unset_cast": true,
158"nullable_type_declaration_for_default_null_value": {
159"use_nullable_type_declaration": true
160},
161"phpdoc_line_span": {
162"const": "multi",
163"method": "multi",
164"property": "multi"
165},
166"return_assignment": true,
167"simple_to_complex_string_variable": true,
168"single_trait_insert_per_statement": false,
169"standardize_increment": true
170}
171}
172