{ "preset": "laravel", "rules": { "align_multiline_comment": { "comment_type": "phpdocs_like" }, "array_push": true, "assign_null_coalescing_to_coalesce_equal": true, "attribute_block_no_spaces": true, "attribute_empty_parentheses": { "use_parentheses": false }, "backtick_to_shell_exec": true, "blank_line_before_statement": { "statements": [ "break", "case", "continue", "declare", "default", "do", "exit", "for", "foreach", "goto", "if", "include", "include_once", "phpdoc", "require", "require_once", "return", "switch", "throw", "try", "while", "yield", "yield_from" ] }, "class_reference_name_casing": true, "date_time_immutable": true, "declare_strict_types": true, "doctrine_annotation_array_assignment": true, "doctrine_annotation_braces": true, "doctrine_annotation_indentation": true, "doctrine_annotation_spaces": true, "echo_tag_syntax": true, "empty_loop_body": true, "empty_loop_condition": true, "final_class": true, "final_internal_class": true, "final_public_method_for_abstract_class": true, "fully_qualified_strict_types": true, "global_namespace_import": { "import_classes": true, "import_constants": true, "import_functions": true }, "heredoc_closing_marker": true, "heredoc_indentation": { "indentation": "same_as_start" }, "indentation_type": false, "logical_operators": true, "long_to_shorthand_operator": true, "mb_str_functions": true, "modern_serialization_methods": true, "modernize_strpos": { "modernize_stripos": true }, "modernize_types_casting": true, "modifier_keywords": true, "multiline_comment_opening_closing": true, "multiline_promoted_properties": { "minimum_number_of_parameters": 3 }, "multiline_string_to_heredoc": true, "new_expression_parentheses": true, "no_empty_comment": true, "no_extra_blank_lines": { "tokens": [ "attribute", "break", "case", "continue", "curly_brace_block", "default", "extra", "parenthesis_brace_block", "return", "square_brace_block", "switch", "throw", "use", "use_trait" ] }, "no_homoglyph_names": true, "no_php4_constructor": true, "no_redundant_readonly_property": true, "no_superfluous_elseif": true, "no_unneeded_braces": { "namespaces": true }, "no_unneeded_control_parentheses": { "statements": [ "break", "clone", "continue", "echo_print", "negative_instanceof", "others", "return", "switch_case", "yield", "yield_from" ] }, "no_useless_concat_operator": { "juggle_simple_strings": true }, "no_useless_else": true, "no_useless_nullsafe_operator": true, "no_useless_printf": true, "no_useless_sprintf": true, "no_whitespace_before_comma_in_array": { "after_heredoc": true }, "operator_linebreak": 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" }, "phpdoc_annotation_without_dot": true, "phpdoc_line_span": true, "phpdoc_no_alias_tag": { "replacements": { "type": "var", "link": "see" } }, "phpdoc_no_empty_return": true, "phpdoc_return_self_reference": true, "phpdoc_scalar": true, "phpdoc_tag_casing": true, "phpdoc_trim_consecutive_blank_line_separation": true, "phpdoc_types_no_duplicates": true, "phpdoc_types_order": { "null_adjustment": "always_last" }, "phpdoc_var_annotation_correct_order": true, "protected_to_private": true, "random_api_migration": true, "regular_callable_call": true, "return_assignment": true, "self_accessor": true, "set_type_to_cast": true, "single_line_throw": true, "single_space_around_construct": true, "single_trait_insert_per_statement": false, "strict_comparison": true, "strict_param": true, "string_length_to_empty": true, "string_line_ending": true, "stringable_for_to_string": true, "ternary_to_null_coalescing": true, "trailing_comma_in_multiline": { "elements": [ "arguments", "array_destructuring", "arrays", "match", "parameters" ] }, "type_declaration_spaces": { "elements": ["constant", "function", "property"] }, "whitespace_after_comma_in_array": { "ensure_single_space": true } } }