mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Modernize and standardize typecasting
This commit is contained in:
parent
36abf56f5f
commit
b5d1de9b63
@ -98,8 +98,12 @@ final class CodeIgniter4 extends AbstractRuleset
|
||||
'indentation_type' => true,
|
||||
'line_ending' => true,
|
||||
'list_syntax' => ['syntax' => 'short'],
|
||||
'lowercase_cast' => true,
|
||||
'modernize_types_casting' => true,
|
||||
'no_alias_functions' => ['sets' => ['@all']],
|
||||
'no_short_bool_cast' => true,
|
||||
'no_trailing_comma_in_singleline_array' => true,
|
||||
'no_unset_cast' => true,
|
||||
'no_whitespace_before_comma_in_array' => ['after_heredoc' => true],
|
||||
'normalize_index_brace' => true,
|
||||
'ordered_imports' => ['sort_algorithm' => 'alpha'],
|
||||
@ -151,6 +155,8 @@ final class CodeIgniter4 extends AbstractRuleset
|
||||
'null_adjustment' => 'always_last',
|
||||
'sort_algorithm' => 'alpha',
|
||||
],
|
||||
'set_type_to_cast' => true,
|
||||
'short_scalar_cast' => true,
|
||||
'static_lambda' => true,
|
||||
'ternary_to_null_coalescing' => true,
|
||||
'trailing_comma_in_multiline' => [
|
||||
|
Loading…
x
Reference in New Issue
Block a user