Skip to content

Commit

Permalink
Duster disabled method ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin authored Oct 19, 2023
1 parent e605adc commit df8e8ba
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

use App\Fixer\ClassNotation\CustomControllerOrderFixer;
use App\Fixer\ClassNotation\CustomOrderedClassElementsFixer;
use App\Fixer\ClassNotation\CustomPhpUnitOrderFixer;
use App\Support\PhpCsFixer;
use PhpCsFixer\Config;

return (new Config())
->setFinder(PhpCsFixer::getFinder())
->setUsingCache(false)
->registerCustomFixers([
new CustomControllerOrderFixer(),
new CustomOrderedClassElementsFixer(),
new CustomPhpUnitOrderFixer(),
])
->setRules([
'Tighten/custom_controller_order' => true,
'Tighten/custom_phpunit_order' => true,
]);

0 comments on commit df8e8ba

Please sign in to comment.