diff --git a/resources/presets/laravel.php b/resources/presets/laravel.php index eb9f9907..7857291c 100644 --- a/resources/presets/laravel.php +++ b/resources/presets/laravel.php @@ -29,6 +29,8 @@ 'single_item_single_line' => true, 'single_line' => true, ], + 'clean_namespace' => true, + 'compact_nullable_typehint' => true, 'concat_space' => [ 'spacing' => 'none', ], @@ -45,6 +47,8 @@ 'include' => true, 'increment_style' => ['style' => 'post'], 'indentation_type' => true, + 'integer_literal_case' => true, + 'lambda_not_used_import' => true, 'linebreak_after_opening_tag' => true, 'line_ending' => true, 'lowercase_cast' => true, @@ -59,7 +63,16 @@ 'strategy' => 'no_multi_line', ], 'native_function_casing' => true, + 'native_function_type_declaration_casing' => true, 'no_alias_functions' => true, + 'no_alias_language_construct_call' => true, + 'no_alternative_syntax' => true, + 'no_binary_string' => true, + 'no_blank_lines_after_class_opening' => true, + 'no_blank_lines_after_phpdoc' => true, + 'no_closing_tag' => true, + 'no_empty_phpdoc' => true, + 'no_empty_statement' => true, 'no_extra_blank_lines' => [ 'tokens' => [ 'extra', @@ -67,11 +80,6 @@ 'use', ], ], - 'no_blank_lines_after_class_opening' => true, - 'no_blank_lines_after_phpdoc' => true, - 'no_closing_tag' => true, - 'no_empty_phpdoc' => true, - 'no_empty_statement' => true, 'no_leading_import_slash' => true, 'no_leading_namespace_whitespace' => true, 'no_mixed_echo_print' => [ @@ -81,6 +89,7 @@ 'no_short_bool_cast' => true, 'no_singleline_whitespace_before_semicolons' => true, 'no_spaces_after_function_name' => true, + 'no_space_around_double_colon' => true, 'no_spaces_around_offset' => [ 'positions' => ['inside', 'outside'], ], @@ -92,6 +101,8 @@ 'no_unneeded_control_parentheses' => [ 'statements' => ['break', 'clone', 'continue', 'echo_print', 'return', 'switch_case', 'yield'], ], + 'no_unneeded_curly_braces' => true, + 'no_unset_cast' => true, 'no_unused_imports' => true, 'no_unreachable_default_argument_value' => true, 'no_useless_return' => true, @@ -115,6 +126,7 @@ 'phpdoc_trim' => true, 'phpdoc_types' => true, 'phpdoc_var_without_name' => true, + 'return_type_declaration' => ['space_before' => 'none'], 'self_accessor' => true, 'short_scalar_cast' => true, 'simplified_null_return' => false,