Skip to content

Commit

Permalink
Code Quality using Rector (#211)
Browse files Browse the repository at this point in the history
## Description



## Checklist
- [ ] Updated CHANGELOG files
- [ ] Updated Documentation
- [ ] Unit Tests Created
- [x] php-cs-fixer
  • Loading branch information
JoshuaEstes authored Aug 1, 2024
1 parent 7df80b1 commit b70a5b1
Show file tree
Hide file tree
Showing 338 changed files with 3,743 additions and 4,813 deletions.
11 changes: 8 additions & 3 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
<?php

$finder = PhpCsFixer\Finder::create()
declare(strict_types=1);

use PhpCsFixer\Config;
use PhpCsFixer\Finder;

$finder = Finder::create()
->in(__DIR__)
->exclude('docs')
->exclude('tools')
->exclude('vendor')
;

return (new PhpCsFixer\Config())->setRules([
return (new Config())->setRules([
// Rule sets
'@PER-CS' => true,
'@PHP80Migration:risky' => true,
Expand All @@ -17,5 +22,5 @@
// Rules
'no_unused_imports' => true,
'ordered_imports' => true,
'php_unit_test_class_requires_covers' => true,
//'php_unit_test_class_requires_covers' => true,
])->setFinder($finder);
Loading

0 comments on commit b70a5b1

Please sign in to comment.