Skip to content

Commit e93e249

Browse files
committed
Enable curly_braces_position
See codeigniter4/CodeIgniter4#6505
1 parent 6150aa1 commit e93e249

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

src/CodeIgniter4.php

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,25 @@ public function __construct()
108108
'constant_case' => ['case' => 'lower'],
109109
'control_structure_braces' => true,
110110
'control_structure_continuation_position' => ['position' => 'same_line'],
111-
'date_time_immutable' => false,
112-
'declare_equal_normalize' => ['space' => 'none'],
113-
'declare_parentheses' => true,
114-
'declare_strict_types' => false,
115-
'dir_constant' => true,
116-
'doctrine_annotation_array_assignment' => false,
117-
'doctrine_annotation_braces' => false,
118-
'doctrine_annotation_indentation' => false,
119-
'doctrine_annotation_spaces' => false,
120-
'echo_tag_syntax' => [
111+
'curly_braces_position' => [
112+
'control_structures_opening_brace' => 'same_line',
113+
'functions_opening_brace' => 'next_line_unless_newline_at_signature_end',
114+
'anonymous_functions_opening_brace' => 'same_line',
115+
'classes_opening_brace' => 'next_line_unless_newline_at_signature_end',
116+
'anonymous_classes_opening_brace' => 'same_line',
117+
'allow_single_line_empty_anonymous_classes' => true,
118+
'allow_single_line_anonymous_functions' => true,
119+
],
120+
'date_time_immutable' => false,
121+
'declare_equal_normalize' => ['space' => 'none'],
122+
'declare_parentheses' => true,
123+
'declare_strict_types' => false,
124+
'dir_constant' => true,
125+
'doctrine_annotation_array_assignment' => false,
126+
'doctrine_annotation_braces' => false,
127+
'doctrine_annotation_indentation' => false,
128+
'doctrine_annotation_spaces' => false,
129+
'echo_tag_syntax' => [
121130
'format' => 'short',
122131
'long_function' => 'echo',
123132
'shorten_simple_statements_only' => false,

0 commit comments

Comments
 (0)