From 571a5e701544a6e2c21dc7f956a3b91cc0d5ef05 Mon Sep 17 00:00:00 2001 From: TheCartpenter Date: Sun, 24 Dec 2023 16:08:58 -0500 Subject: [PATCH] Fixed .php-cs-fixer.php file alignments --- .php-cs-fixer.php | 60 +++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index f0732c28b..fb4b5035d 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -4,45 +4,43 @@ * https://mlocati.github.io/php-cs-fixer-configurator/#version:3.41.1|configurator * you can change this configuration by importing this file. */ - $finder = Symfony\Component\Finder\Finder::create()->in([ - __DIR__ . '/upload/' - ])->name('*.php')->ignoreDotFiles(true)->exclude([ - __DIR__ . '/upload/system/storage/vendor/' - ]); - + __DIR__ . '/upload/' +])->name('*.php')->ignoreDotFiles(true)->exclude([ + __DIR__ . '/upload/system/storage/vendor/' +]); $config = new PhpCsFixer\Config(); return $config->setRiskyAllowed(true)->setIndent("\t")->setRules([ - '@PSR12' => true, - 'array_syntax' => true, - 'assign_null_coalescing_to_coalesce_equal' => true, - 'binary_operator_spaces' => [ + '@PSR12' => true, + 'array_syntax' => true, + 'assign_null_coalescing_to_coalesce_equal' => true, + 'binary_operator_spaces' => [ 'default' => 'single_space', 'operators' => [ '=' => 'at_least_single_space', '=>' => 'at_least_single_space' ] - ], - 'blank_line_after_namespace' => false, - 'blank_line_after_opening_tag' => false, - 'blank_lines_before_namespace' => false, - 'braces_position' => [ + ], + 'blank_line_after_namespace' => false, + 'blank_line_after_opening_tag' => false, + 'blank_lines_before_namespace' => false, + 'braces_position' => [ 'classes_opening_brace' => 'same_line', 'functions_opening_brace' => 'same_line' - ], - 'control_structure_continuation_position' => ['position' => 'same_line'], - 'combine_nested_dirname' => true, - 'function_declaration' => ['closure_function_spacing' => 'none'], - 'heredoc_indentation' => true, - 'implode_call' => true, - 'list_syntax' => true, - 'no_alias_functions' => true, - 'no_blank_lines_after_phpdoc' => true, - 'no_whitespace_before_comma_in_array' => true, - 'non_printable_character' => true, - 'normalize_index_brace' => true, - 'pow_to_exponentiation' => true, - 'use_arrow_functions' => true, - 'void_return' => true, - ])->setFinder($finder); + ], + 'control_structure_continuation_position' => ['position' => 'same_line'], + 'combine_nested_dirname' => true, + 'function_declaration' => ['closure_function_spacing' => 'none'], + 'heredoc_indentation' => true, + 'implode_call' => true, + 'list_syntax' => true, + 'no_alias_functions' => true, + 'no_blank_lines_after_phpdoc' => true, + 'no_whitespace_before_comma_in_array' => true, + 'non_printable_character' => true, + 'normalize_index_brace' => true, + 'pow_to_exponentiation' => true, + 'use_arrow_functions' => true, + 'void_return' => true, +])->setFinder($finder);