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 e153bb7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions resources/presets/laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@
'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' => [
'position' => 'same_line',
],
'curly_braces_position' => [
'control_structures_opening_brace' => 'same_line',
Expand Down Expand Up @@ -53,6 +50,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 +102,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 +178,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 e153bb7

Please sign in to comment.