Skip to content

Instantly share code, notes, and snippets.

@Robiussani152
Created April 6, 2025 08:25
Show Gist options
  • Select an option

  • Save Robiussani152/b94289b94a8eefddb77650abeb251b7e to your computer and use it in GitHub Desktop.

Select an option

Save Robiussani152/b94289b94a8eefddb77650abeb251b7e to your computer and use it in GitHub Desktop.
Laravel Pint configuration
{
"preset": "laravel",
"lines": {
"betweenClassConstants": true,
"betweenClassProperties": true,
"betweenMethods": true
},
"indent": "spaces",
"space": {
"aroundConstructs": true,
"aroundOperators": true,
"aroundControlStructures": true
},
"braces": {
"allowSingleLineClosures": true
},
"align": {
"switchStatements": true
},
"phpdoc": {
"order": [
"param",
"return",
"throws"
]
},
"exclude": [
"vendor",
"node_modules",
"bootstrap/cache"
],
"rules": {
"align_multiline_comment": true,
"concat_space": {
"spacing": "one"
},
"declare_strict_types": true,
"explicit_indirect_variable": true,
"explicit_string_variable": true,
"final_class": true,
"fully_qualified_strict_types": true,
"global_namespace_import": {
"import_classes": true,
"import_constants": true,
"import_functions": true
},
"is_null": true,
"logical_operators": true,
"mb_str_functions": true,
"method_argument_space": {
"on_multiline": "ensure_fully_multiline"
},
"modernize_strpos": true,
"modernize_types_casting": true,
"new_with_braces": true,
"no_empty_comment": true,
"no_superfluous_elseif": true,
"no_useless_else": true,
"not_operator_with_space": 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"
},
"protected_to_private": true,
"simplified_if_return": true,
"strict_comparison": true,
"ternary_to_null_coalescing": true,
"use_arrow_functions": true,
"void_return": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment