Skip to content

Commit

Permalink
Update PHP CS Fixer rules
Browse files Browse the repository at this point in the history
Add exceptions for some of the new rules in PHP CS Fixer 3.64.0
  • Loading branch information
anvit committed Oct 10, 2024
1 parent e601537 commit 9f05a24
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
$finder = PhpCsFixer\Finder::create()
->exclude('.coverage')
->exclude('cache')
->notPath('docker/')
->notPath('#/model/om/#')
->notPath('#/model/map/#')
->in(__DIR__)
Expand All @@ -20,9 +21,27 @@
// which includes ensure_fully_multiline, causes
// inconsistencies in templates.
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setRules([
'@PhpCsFixer' => true,
'method_argument_space' => ['on_multiline' => 'ignore'],
'fully_qualified_strict_types' => false,
'statement_indentation' => false,
'single_line_empty_body' => false,
'string_implicit_backslashes' => false,
'no_extra_blank_lines' => ['tokens' => ['extra']],
'single_line_comment_spacing' => false,
'no_multiple_statements_per_line' => false,
'no_unneeded_control_parentheses' => ['statements' => ['break', 'clone', 'continue', 'echo_print', 'return', 'switch_case', 'yield']],
'multiline_whitespace_before_semicolons' => false,
'single_space_around_construct' => false,
'phpdoc_separation' => false,
'phpdoc_align' => false,
'phpdoc_trim' => false,
'no_superfluous_phpdoc_tags' => false,
'nullable_type_declaration_for_default_null_value' => false,
'no_useless_concat_operator' => false,
'blank_line_before_statement' => false,
])
->setFinder($finder)
;

0 comments on commit 9f05a24

Please sign in to comment.