From 13699ab8b782472988b6e41b5f76783577e2b98e Mon Sep 17 00:00:00 2001 From: TheCartpenter Date: Tue, 26 Dec 2023 10:35:16 -0500 Subject: [PATCH] Updated .php-cs-fixer file --- .php-cs-fixer.php | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 191fbc7fe..467956699 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -4,14 +4,15 @@ * https://mlocati.github.io/php-cs-fixer-configurator/#version:3.41.1|configurator * you can change this configuration by importing this file. */ - $config = new PhpCsFixer\Config(); - return $config ->setRiskyAllowed(true) ->setIndent("\t") ->setRules([ - '@PSR12' => true, + '@PER-CS2.0:risky' => true, + '@PER-CS2.0' => true, + '@DoctrineAnnotation' => true, + '@PHPUnit100Migration:risky' => true, 'array_syntax' => true, 'assign_null_coalescing_to_coalesce_equal' => true, 'binary_operator_spaces' => ['default' => 'single_space','operators' => ['=' => 'at_least_single_space','=>' => 'align_single_space_minimal']], @@ -19,18 +20,50 @@ 'blank_line_after_opening_tag' => false, 'blank_lines_before_namespace' => false, 'braces_position' => ['classes_opening_brace' => 'same_line','functions_opening_brace' => 'same_line'], + 'clean_namespace' => true, 'combine_nested_dirname' => true, + 'comment_to_phpdoc' => true, 'function_declaration' => ['closure_function_spacing' => 'none'], + 'general_phpdoc_annotation_remove' => true, + 'general_phpdoc_tag_rename' => true, 'heredoc_indentation' => true, 'implode_call' => true, 'list_syntax' => true, 'no_alias_functions' => true, 'no_blank_lines_after_phpdoc' => true, + 'no_empty_phpdoc' => true, + 'no_php4_constructor' => true, + 'no_unneeded_final_method' => true, + 'no_unset_cast' => true, 'no_whitespace_before_comma_in_array' => true, 'non_printable_character' => true, 'normalize_index_brace' => true, + 'phpdoc_align' => true, + 'phpdoc_annotation_without_dot' => true, + 'phpdoc_indent' => true, + 'phpdoc_inline_tag_normalizer' => true, + 'phpdoc_line_span' => true, + 'phpdoc_no_access' => true, + 'phpdoc_no_alias_tag' => true, + 'phpdoc_no_useless_inheritdoc' => true, + 'phpdoc_order_by_value' => true, + 'phpdoc_param_order' => true, + 'phpdoc_return_self_reference' => true, + 'phpdoc_scalar' => true, + 'phpdoc_separation' => true, + 'phpdoc_single_line_var_spacing' => true, + 'phpdoc_tag_casing' => true, + 'phpdoc_tag_type' => true, + 'phpdoc_to_comment' => true, + 'phpdoc_trim' => true, + 'phpdoc_trim_consecutive_blank_line_separation' => true, + 'phpdoc_types' => true, + 'phpdoc_types_order' => ['null_adjustment' => 'always_last'], + 'phpdoc_var_annotation_correct_order' => true, + 'phpdoc_var_without_name' => true, 'pow_to_exponentiation' => true, 'random_api_migration' => true, + 'simple_to_complex_string_variable' => true, 'use_arrow_functions' => true, 'void_return' => true, ])