mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
chore: migrate to PHP-CS-Fixer 3.x
This commit is contained in:
30
.gitattributes
vendored
30
.gitattributes
vendored
@ -1,16 +1,14 @@
|
|||||||
/art export-ignore
|
/art export-ignore
|
||||||
/docs export-ignore
|
/docs export-ignore
|
||||||
/tests export-ignore
|
/tests export-ignore
|
||||||
/scripts export-ignore
|
/scripts export-ignore
|
||||||
/.github export-ignore
|
/.github export-ignore
|
||||||
/.php_cs export-ignore
|
/.php-cs-fixer.dist.php export-ignore
|
||||||
.editorconfig export-ignore
|
.editorconfig export-ignore
|
||||||
.gitattributes export-ignore
|
.gitattributes export-ignore
|
||||||
.gitignore export-ignore
|
.gitignore export-ignore
|
||||||
.travis.yml export-ignore
|
phpstan.neon export-ignore
|
||||||
phpstan.neon export-ignore
|
phpunit.xml export-ignore
|
||||||
rector.yaml export-ignore
|
CHANGELOG.md export-ignore
|
||||||
phpunit.xml export-ignore
|
CONTRIBUTING.md export-ignore
|
||||||
CHANGELOG.md export-ignore
|
README.md export-ignore
|
||||||
CONTRIBUTING.md export-ignore
|
|
||||||
README.md export-ignore
|
|
||||||
|
|||||||
5
.gitignore
vendored
5
.gitignore
vendored
@ -4,8 +4,9 @@ composer.lock
|
|||||||
/vendor/
|
/vendor/
|
||||||
coverage.xml
|
coverage.xml
|
||||||
.phpunit.result.cache
|
.phpunit.result.cache
|
||||||
.php_cs.cache
|
/.php-cs-fixer.php
|
||||||
|
.php-cs-fixer.cache
|
||||||
.temp/coverage.php
|
.temp/coverage.php
|
||||||
*.swp
|
*.swp
|
||||||
*.swo
|
*.swo
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|||||||
@ -6,7 +6,7 @@ $finder = PhpCsFixer\Finder::create()
|
|||||||
->in(__DIR__ . DIRECTORY_SEPARATOR . 'scripts')
|
->in(__DIR__ . DIRECTORY_SEPARATOR . 'scripts')
|
||||||
->in(__DIR__ . DIRECTORY_SEPARATOR . 'stubs')
|
->in(__DIR__ . DIRECTORY_SEPARATOR . 'stubs')
|
||||||
->in(__DIR__ . DIRECTORY_SEPARATOR . 'src')
|
->in(__DIR__ . DIRECTORY_SEPARATOR . 'src')
|
||||||
->append(['.php_cs']);
|
->append(['.php-cs-fixer.dist.php']);
|
||||||
|
|
||||||
$rules = [
|
$rules = [
|
||||||
'@Symfony' => true,
|
'@Symfony' => true,
|
||||||
@ -25,7 +25,7 @@ $rules = [
|
|||||||
|
|
||||||
$rules['increment_style'] = ['style' => 'post'];
|
$rules['increment_style'] = ['style' => 'post'];
|
||||||
|
|
||||||
return PhpCsFixer\Config::create()
|
return (new PhpCsFixer\Config())
|
||||||
->setUsingCache(true)
|
->setUsingCache(true)
|
||||||
->setRules($rules)
|
->setRules($rules)
|
||||||
->setFinder($finder);
|
->setFinder($finder);
|
||||||
Reference in New Issue
Block a user