Skip to content

Instantly share code, notes, and snippets.

@akmandev
Created February 10, 2023 20:29
Show Gist options
  • Save akmandev/f3cb7c357bd129407b425ae3923b5143 to your computer and use it in GitHub Desktop.
Save akmandev/f3cb7c357bd129407b425ae3923b5143 to your computer and use it in GitHub Desktop.
{
"preset": "laravel",
"rules": {
"fully_qualified_strict_types": true,
"clean_namespace": true,
"no_superfluous_phpdoc_tags": true,
"ordered_imports": {
"imports_order": ["class", "function", "const"],
"sort_algorithm": "alpha"
},
"self_accessor": true,
"not_operator_with_space": false,
"not_operator_with_successor_space": false,
"method_argument_space": {
"on_multiline": "ensure_fully_multiline"
},
"trailing_comma_in_multiline": {
"elements": ["arguments", "arrays", "match", "parameters"]
},
"global_namespace_import": {
"import_classes": true,
"import_constants": true,
"import_functions": true
},
"void_return": true,
"normalize_index_brace": true,
"visibility_required": true,
"declare_strict_types": true,
"single_line_throw": false,
"concat_space": {
"spacing": "one"
},
"phpdoc_line_span": {
"const": "single",
"property": "single",
"method": "single"
},
"phpdoc_indent": false,
"php_unit_construct": true,
"php_unit_method_casing": false,
"php_unit_namespaced": true,
"php_unit_size_class": true,
"php_unit_set_up_tear_down_visibility": true,
"php_unit_no_expectation_annotation": true
},
"exclude": [
"bootstrap/cache",
"storage"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment