Skip to content

Commit

Permalink
Fixed .php-cs-fixer.php file alignments
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Dec 24, 2023
1 parent 46676ef commit 571a5e7
Showing 1 changed file with 29 additions and 31 deletions.
60 changes: 29 additions & 31 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 571a5e7

Please sign in to comment.