Skip to content

Commit

Permalink
refactor: apply php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroTroller committed Feb 23, 2024
1 parent 6278fec commit 36dccaf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,23 @@

declare(strict_types=1);

$finder = PhpCsFixer\Finder::create()
use PedroTroller\CS\Fixer\Fixers;
use PedroTroller\CS\Fixer\RuleSetFactory;
use PhpCsFixer\Config;
use PhpCsFixer\Finder;

$finder = Finder::create()
->in(__DIR__)
->append([__FILE__, __DIR__.'/.symfony_checker'])
;

$config = new PhpCsFixer\Config();
$config = new Config();
$config->setFinder($finder);
$config->registerCustomFixers(new PedroTroller\CS\Fixer\Fixers());
$config->registerCustomFixers(new Fixers());
$config->setRiskyAllowed(true);
$config->setUsingCache(true);
$config->setRules(
PedroTroller\CS\Fixer\RuleSetFactory::create()
RuleSetFactory::create()
->phpCsFixer(true)
->php(8.0, true)
->pedrotroller(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
final class DictionarySpec extends ObjectBehavior
{
/**
* @var Dictionary\Collection
* @var Collection
*/
private $dictionaries;

Expand Down

0 comments on commit 36dccaf

Please sign in to comment.