Skip to content

Commit

Permalink
update php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
garak committed Jan 20, 2022
1 parent 49e91ea commit 5a313af
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
!/bin/poser
/coverage
/vendor
.php_cs.cache
/.*.cache
composer.lock
24 changes: 24 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
// see https://github.com/FriendsOfPHP/PHP-CS-Fixer

$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude(['vendor'])
;

return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP74Migration:risky' => true,
'@PHPUnit75Migration:risky' => true,
'declare_strict_types' => false,
'native_function_invocation' => ['include' => ['@all']],
'concat_space' => ['spacing' => 'one'],
'binary_operator_spaces' => ['operators' => ['=>' => 'align', '=' => 'align']],
'phpdoc_align' => ['align' => 'vertical'],
'phpdoc_summary' => false,
])
->setFinder($finder)
;
29 changes: 0 additions & 29 deletions .php_cs

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"behat/behat": "^3.8",
"phpspec/phpspec": "^7.0",
"friends-of-phpspec/phpspec-code-coverage": "^6.0",
"friendsofphp/php-cs-fixer": "^2.17",
"friendsofphp/php-cs-fixer": "^3.5",
"moave/phpspec-data-provider-extension": "dev-feat/add-compatibility-to-php80",
"vimeo/psalm": "^4.3"
},
Expand Down

0 comments on commit 5a313af

Please sign in to comment.