Skip to content

Commit

Permalink
update cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristoforo Cervino committed Jun 14, 2024
1 parent 11a6704 commit 1c9c880
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,30 +1,8 @@
<?php
/*
* Additional rules or rules to override.
* These rules will be added to default rules or will override them if the same key already exists.
*/
$additionalRules = [
'native_function_invocation' => [
'include' => [
'@all',
],
'scope' => 'all',
'strict' => true,
],
'phpdoc_add_missing_param_annotation' => ['only_untyped' => true],
'phpdoc_align' => true,
'phpdoc_return_self_reference' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'phpdoc_types_order' => ['sort_algorithm' => 'alpha', 'null_adjustment' => 'always_last'],
'phpdoc_to_comment' => false,
'phpdoc_var_without_name' => false,
'@Symfony' => true,
];

$config = new PhpCsFixer\Config();
$config->setUsingCache(false);
$config->setRiskyAllowed(true);
$config->setRules($additionalRules);


$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
Expand Down

0 comments on commit 1c9c880

Please sign in to comment.