Skip to content

Commit

Permalink
minor #1134 Remove duplicated rules (michaelKaefer)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Remove duplicated rules

Remove duplicated rules which are already included in `@Symfony` rules.

To verify that the `@Symfony` rules include the removed rules see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/2.16/src/RuleSet.php or run:
```bash
php php-cs-fixer.phar describe @symfony | grep -A 3 array_syntax
php php-cs-fixer.phar describe @symfony | grep -A 3 no_superfluous_phpdoc_tags
// ...
```

Commits
-------

c44b3ee Remove duplicated rules
  • Loading branch information
javiereguiluz committed Jul 31, 2020
2 parents 64723ff + c44b3ee commit bcdd588
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,15 @@ return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'header_comment' => ['header' => $fileHeaderComment, 'separate' => 'both'],
'linebreak_after_opening_tag' => true,
'mb_str_functions' => true,
'no_php4_constructor' => true,
'no_superfluous_phpdoc_tags' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'php_unit_strict' => true,
'phpdoc_order' => true,
'semicolon_after_instruction' => true,
'strict_comparison' => true,
'strict_param' => true,
])
Expand Down

0 comments on commit bcdd588

Please sign in to comment.