Skip to content

Commit

Permalink
Update coding style to PER 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
giuscris committed Jan 9, 2025
1 parent eebe2ec commit adea5bf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions formwork/.php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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);

0 comments on commit adea5bf

Please sign in to comment.