From adea5bfee6710fac920fed7a45a6e30bcd57608d Mon Sep 17 00:00:00 2001 From: Giuseppe Criscione <18699708+giuscris@users.noreply.github.com> Date: Thu, 9 Jan 2025 22:51:31 +0100 Subject: [PATCH] Update coding style to PER 2.0 --- formwork/.php-cs-fixer.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/formwork/.php-cs-fixer.php b/formwork/.php-cs-fixer.php index e9eb62b8..6bd0777b 100644 --- a/formwork/.php-cs-fixer.php +++ b/formwork/.php-cs-fixer.php @@ -16,14 +16,13 @@ 'binary_operator_spaces' => ['default' => 'single_space', 'operators' => ['=>' => 'align_single_space_minimal']], 'class_attributes_separation' => true, 'fully_qualified_strict_types' => ['import_symbols' => true], - 'function_declaration' => true, 'include' => true, 'multiline_whitespace_before_semicolons' => true, 'native_function_casing' => true, 'no_empty_comment' => true, 'no_empty_phpdoc' => true, 'no_empty_statement' => true, - 'no_extra_blank_lines' => true, + 'no_extra_blank_lines' => ['tokens' => ['use', 'extra']], 'no_null_property_initialization' => true, 'no_singleline_whitespace_before_semicolons' => true, 'no_superfluous_elseif' => true, @@ -34,7 +33,7 @@ 'no_unused_imports' => true, 'no_useless_else' => true, 'ordered_class_elements' => true, - 'ordered_imports' => true, + 'ordered_imports' => ['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha'], 'phpdoc_align' => true, 'phpdoc_annotation_without_dot' => true, 'phpdoc_indent' => true, @@ -49,9 +48,7 @@ 'phpdoc_trim' => true, 'phpdoc_types_order' => ['null_adjustment' => 'always_last'], 'phpdoc_var_without_name' => true, - 'single_line_empty_body' => false, 'single_quote' => true, 'string_implicit_backslashes' => true, - 'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['array_destructuring', 'arrays', 'match', 'parameters']], ]) ->setFinder($finder);