Skip to content

Commit

Permalink
Merge pull request #5 from qferr/feature/add-php-cs-fixer
Browse files Browse the repository at this point in the history
Add PHP CS Fixer
  • Loading branch information
qferr authored Feb 5, 2022
2 parents b5982cb + 86a923c commit 0fbaf5e
Show file tree
Hide file tree
Showing 23 changed files with 497 additions and 72 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@
.phpunit.result.cache
/phpunit.xml
###< symfony/phpunit-bridge ###

###> friendsofphp/php-cs-fixer ###
/.php-cs-fixer.php
/.php-cs-fixer.cache
###< friendsofphp/php-cs-fixer ###
13 changes: 13 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('var')
;

return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
])
->setFinder($finder)
;
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"doctrine/doctrine-bundle": "^2.2",
"doctrine/doctrine-migrations-bundle": "^3.0",
"doctrine/orm": "^2.8",
"friendsofphp/php-cs-fixer": "^3.4",
"sensio/framework-extra-bundle": "^5.6",
"symfony/console": "5.4.*",
"symfony/dotenv": "5.4.*",
Expand Down
Loading

0 comments on commit 0fbaf5e

Please sign in to comment.