Skip to content

Commit

Permalink
Replace deprecated braces rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Jubeki committed Apr 3, 2023
1 parent 0c29523 commit 5a7fc7b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions resources/presets/laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@
'return',
],
],
'braces' => [
'allow_single_line_anonymous_class_with_empty_body' => true,
'allow_single_line_closure' => true,
'position_after_control_structures' => 'same',
'position_after_functions_and_oop_constructs' => 'next',
'position_after_anonymous_constructs' => 'next',
],
'control_structure_braces' => true,
'control_structure_continuation_position' => 'same_line',
'curly_braces_position' => [
'control_structures_opening_brace' => 'same_line',
'functions_opening_brace' => 'next_line_unless_newline_at_signature_end',
Expand Down Expand Up @@ -53,6 +48,7 @@
],
'constant_case' => ['case' => 'lower'],
'declare_equal_normalize' => true,
'declare_parentheses' => true,
'elseif' => true,
'encoding' => true,
'full_opening_tag' => true,
Expand Down Expand Up @@ -104,6 +100,7 @@
'use' => 'echo',
],
'no_multiline_whitespace_around_double_arrow' => true,
'no_multiple_statements_per_line' => true,
'no_short_bool_cast' => true,
'no_singleline_whitespace_before_semicolons' => true,
'no_spaces_after_function_name' => true,
Expand Down Expand Up @@ -179,6 +176,7 @@
'comment_types' => ['hash'],
],
'single_quote' => true,
'single_space_around_construct' => true,
'space_after_semicolon' => true,
'standardize_not_equals' => true,
'statement_indentation' => false,
Expand Down

0 comments on commit 5a7fc7b

Please sign in to comment.