Files
FOSSBilling/rector.php
T
Belle Aerni 8ac5b00fe9 Misc fixes + product configuration page improvements (#2292)
* Fixed our Rector config. Closes #2272

* Much improved the product configuration page

Fixed a bug and significantly improved the visuals for that page

* Place the period text after the cost

Closes #2242

* Misc changes

* Slightly shrunk the addon buttons, updated cspell
2024-06-04 21:30:59 -07:00

33 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
use Rector\Php54\Rector\Array_\LongArrayToShortArrayRector;
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
use Rector\Config\RectorConfig;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector;
use Rector\Set\ValueObject\SetList;
use Rector\Php80\Rector\FunctionLike\MixedTypeRector;
return RectorConfig::configure()
->withPaths([__DIR__ . '/src'])
->withSkipPath(__DIR__ . '/src/vendor')
->withSkipPath(__DIR__ . '/src/data/cache')
->withPhpSets()
->withTypeCoverageLevel(5)
->withDeadCodeLevel(25)
->withSets([
SetList::INSTANCEOF,
])
->withSkip([
JsonThrowOnErrorRector::class,
LongArrayToShortArrayRector::class,
NullToStrictStringFuncCallArgRector::class,
MixedTypeRector::class,
])
->withRules([ExplicitNullableParamTypeRector::class])
->withCache('./cache/rector', FileCacheStorage::class)
->withParallel(120, 8, 10);