Skip to content

Commit 9e8afb9

Browse files
paulbalandanelement-code
authored andcommitted
Define remaining rules (codeigniter4#4934)
1 parent 36dc0b3 commit 9e8afb9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils/PhpCsFixer/CodeIgniter4.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ public function __construct()
156156
'fix_inline' => true,
157157
'replacements' => ['inheritDocs' => 'inheritDoc'],
158158
],
159+
'global_namespace_import' => false,
159160
'group_import' => false,
161+
'header_comment' => false, // false by default
160162
'heredoc_indentation' => ['indentation' => 'start_plus_one'],
161163
'heredoc_to_nowdoc' => true,
162164
'implode_call' => true,
@@ -184,7 +186,9 @@ public function __construct()
184186
'modernize_types_casting' => true,
185187
'multiline_comment_opening_closing' => true,
186188
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
189+
'native_constant_invocation' => false,
187190
'native_function_casing' => true,
191+
'native_function_invocation' => false,
188192
'native_function_type_declaration_casing' => true,
189193
'new_with_braces' => true,
190194
'no_alias_functions' => ['sets' => ['@all']],
@@ -483,7 +487,9 @@ public function __construct()
483487
],
484488
'trim_array_spaces' => true,
485489
'unary_operator_spaces' => true,
490+
'use_arrow_functions' => false, // requires PHP7.4+
486491
'visibility_required' => ['elements' => ['const', 'method', 'property']],
492+
'void_return' => false, // changes method signature
487493
'whitespace_after_comma_in_array' => true,
488494
'yoda_style' => [
489495
'equal' => false,

0 commit comments

Comments
 (0)