pint.json
{
"preset": "psr12",
"exclude": [
"storage"
],
"rules": {
"binary_operator_spaces": {
"operators": {
"=>": "align_single_space_minimal"
}
},
"new_with_braces": {
"anonymous_class": false
},
"braces_position": {
"allow_single_line_empty_anonymous_classes": false
},
"array_syntax": {
"syntax": "short"
},
"multiline_whitespace_before_semicolons": {
"strategy": "no_multi_line"
},
"echo_tag_syntax": {
"format": "short"
},
"trailing_comma_in_multiline": {
"elements": [
"arrays"
]
},
"no_unused_imports": true,
"phpdoc_indent": true,
"phpdoc_align": true,
"phpdoc_order": true,
"phpdoc_separation": true,
"phpdoc_scalar": true,
"phpdoc_trim": true,
"single_quote": true,
"ordered_imports": {
"sort_algorithm": "alpha"
},
"array_indentation": true,
"no_superfluous_phpdoc_tags": true,
"whitespace_after_comma_in_array": true,
"concat_space": {
"spacing": "one"
},
"no_extra_blank_lines": {
"tokens": [
"attribute",
"case",
"continue",
"curly_brace_block",
"default",
"extra",
"parenthesis_brace_block",
"square_brace_block",
"switch",
"throw",
"use"
]
},
"class_attributes_separation": {
"elements": {
"method": "one"
}
},
"unary_operator_spaces": true,
"not_operator_with_successor_space": true,
"method_chaining_indentation": true,
"nullable_type_declaration_for_default_null_value": true,
"no_empty_phpdoc": true,
"blank_line_before_statement": {
"statements": [
"return"
]
},
"no_alternative_syntax": true,
"yoda_style" : {
"equal": false,
"identical": false,
"less_and_greater": false
},
"include": true,
"increment_style": {
"style": "post"
},
"phpdoc_no_package": true
}
}