Skip to content

Instantly share code, notes, and snippets.

@gfucci
Last active August 2, 2026 19:09
Show Gist options
  • Select an option

  • Save gfucci/479599ebf90e8a3cdb98defeaeec026c to your computer and use it in GitHub Desktop.

Select an option

Save gfucci/479599ebf90e8a3cdb98defeaeec026c to your computer and use it in GitHub Desktop.
Laravel pint JSON with all php risky rules and PSR12 preset
{
"preset": "psr12",
"rules": {
"class_attributes_separation": {
"elements": {
"const": "none",
"method": "one",
"property": "none",
"trait_import": "none",
"case": "none"
}
},
"binary_operator_spaces": {
"default": "single_space",
"operators": {
"|": "no_space"
}
},
"no_trailing_whitespace_in_string": true,
"no_unreachable_default_argument_value": true,
"new_expression_parentheses": true,
"nullable_type_declaration_for_default_null_value": true,
"simple_to_complex_string_variable": true,
"octal_notation": true,
"clean_namespace": true,
"no_unset_cast": true,
"assign_null_coalescing_to_coalesce_equal": true,
"normalize_index_brace": true,
"heredoc_indentation": {
"indentation": "same_as_start"
},
"no_whitespace_before_comma_in_array": {
"after_heredoc": true
},
"trailing_comma_in_multiline": {
"after_heredoc": true
},
"list_syntax": true,
"ternary_to_null_coalescing": true,
"array_syntax": true,
"phpdoc_readonly_class_comment_to_keyword": true,
"get_class_to_class_keyword": true,
"modernize_strpos": true,
"no_alias_functions": {
"sets": [
"@all"
]
},
"no_php4_constructor": true,
"no_unneeded_final_method": true,
"implode_call": true,
"void_return": true,
"combine_nested_dirname": true,
"non_printable_character": true,
"declare_strict_types": true,
"use_arrow_functions": true,
"random_api_migration": {
"replacements": {
"mt_getrandmax": "getrandmax",
"mt_rand": "random_int",
"mt_srand": "srand",
"rand": "random_int"
}
},
"pow_to_exponentiation": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment