Modernize and standardize typecasting

This commit is contained in:
John Paul E. Balandan, CPA 2021-06-15 22:52:57 +08:00 committed by GitHub
parent 36abf56f5f
commit b5d1de9b63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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' => [