Skip to content

Commit

Permalink
chore: migrate to PHP-CS-Fixer 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed May 12, 2021
1 parent 9689aef commit 4e6b392
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
30 changes: 14 additions & 16 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
/art export-ignore
/docs export-ignore
/tests export-ignore
/scripts export-ignore
/.github export-ignore
/.php_cs export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
phpstan.neon export-ignore
rector.yaml export-ignore
phpunit.xml export-ignore
CHANGELOG.md export-ignore
CONTRIBUTING.md export-ignore
README.md export-ignore
/art export-ignore
/docs export-ignore
/tests export-ignore
/scripts export-ignore
/.github export-ignore
/.php-cs-fixer.dist.php export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
phpstan.neon export-ignore
phpunit.xml export-ignore
CHANGELOG.md export-ignore
CONTRIBUTING.md export-ignore
README.md export-ignore
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ composer.lock
/vendor/
coverage.xml
.phpunit.result.cache
.php_cs.cache
/.php-cs-fixer.php
.php-cs-fixer.cache
.temp/coverage.php
*.swp
*.swo
6 changes: 3 additions & 3 deletions .php_cs → .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . DIRECTORY_SEPARATOR . 'tests')
->in(__DIR__ . DIRECTORY_SEPARATOR . 'src')
->append(['.php_cs']);
->in(__DIR__ . DIRECTORY_SEPARATOR . 'tests')
->append(['.php-cs-fixer.dist.php']);

$rules = [
'@Symfony' => true,
Expand All @@ -22,7 +22,7 @@

$rules['increment_style'] = ['style' => 'post'];

return PhpCsFixer\Config::create()
return (new PhpCsFixer\Config())
->setUsingCache(true)
->setRules($rules)
->setFinder($finder);

0 comments on commit 4e6b392

Please sign in to comment.