99 lines
3.1 KiB
JSON
99 lines
3.1 KiB
JSON
{
|
|
"preset": "laravel",
|
|
"rules": {
|
|
"curly_braces_position": {
|
|
"control_structures_opening_brace": "same_line",
|
|
"functions_opening_brace": "same_line",
|
|
"anonymous_functions_opening_brace": "same_line",
|
|
"classes_opening_brace": "same_line",
|
|
"anonymous_classes_opening_brace": "same_line",
|
|
"allow_single_line_empty_anonymous_classes": true,
|
|
"allow_single_line_anonymous_functions": true
|
|
},
|
|
"concat_space": {
|
|
"spacing": "one"
|
|
},
|
|
"class_attributes_separation": {
|
|
"elements": {
|
|
"property": "none"
|
|
}
|
|
},
|
|
"not_operator_with_space": false,
|
|
"not_operator_with_successor_space": false,
|
|
"operator_linebreak": {
|
|
"position": "beginning",
|
|
"only_booleans": true
|
|
},
|
|
"trailing_comma_in_multiline": {
|
|
"elements": ["arguments", "arrays", "match", "parameters"]
|
|
},
|
|
"array_push": true,
|
|
"backtick_to_shell_exec": true,
|
|
"date_time_immutable": true,
|
|
"declare_strict_types": true,
|
|
"final_class": false,
|
|
"final_internal_class": {
|
|
"annotation_include": [],
|
|
"annotation_exclude": ["internal"]
|
|
},
|
|
"final_public_method_for_abstract_class": true,
|
|
"fully_qualified_strict_types": {
|
|
"import_symbols": true
|
|
},
|
|
"global_namespace_import": {
|
|
"import_classes": true,
|
|
"import_constants": true,
|
|
"import_functions": true
|
|
},
|
|
"mb_str_functions": true,
|
|
"modernize_types_casting": true,
|
|
"new_with_parentheses": {
|
|
"anonymous_class": false,
|
|
"named_class": false
|
|
},
|
|
"no_superfluous_elseif": true,
|
|
"no_useless_else": true,
|
|
"no_multiple_statements_per_line": true,
|
|
"ordered_class_elements": {
|
|
"order": [
|
|
"use_trait",
|
|
"case",
|
|
"constant",
|
|
"constant_public",
|
|
"constant_protected",
|
|
"constant_private",
|
|
"property_public",
|
|
"property_protected",
|
|
"property_private",
|
|
"construct",
|
|
"destruct",
|
|
"magic",
|
|
"phpunit",
|
|
"method_abstract",
|
|
"method_public_static",
|
|
"method_public",
|
|
"method_protected_static",
|
|
"method_protected",
|
|
"method_private_static",
|
|
"method_private"
|
|
],
|
|
"sort_algorithm": "none"
|
|
},
|
|
"ordered_interfaces": {
|
|
"case_sensitive": false,
|
|
"direction": "ascend",
|
|
"order": "alpha"
|
|
},
|
|
"ordered_traits": {
|
|
"case_sensitive": false
|
|
},
|
|
"protected_to_private": true,
|
|
"self_accessor": true,
|
|
"self_static_accessor": true,
|
|
"strict_comparison": true,
|
|
"visibility_required": {
|
|
"elements": ["const", "method", "property"]
|
|
}
|
|
}
|
|
}
|