mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
34 lines
852 B
PHP
34 lines
852 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Set\ValueObject\SetList;
|
|
use RectorLaravel\Set\LaravelSetList;
|
|
|
|
return static function (RectorConfig $rectorConfig): void {
|
|
$rectorConfig->paths([
|
|
__DIR__.'/Blacklight',
|
|
__DIR__.'/app',
|
|
__DIR__.'/bootstrap',
|
|
__DIR__.'/cli',
|
|
__DIR__.'/config',
|
|
__DIR__.'/misc',
|
|
__DIR__.'/public',
|
|
__DIR__.'/resources',
|
|
__DIR__.'/routes',
|
|
__DIR__.'/tests',
|
|
]);
|
|
|
|
// register a single rule
|
|
// $rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
|
|
|
|
// define sets of rules
|
|
$rectorConfig->sets([
|
|
LaravelSetList::LARAVEL_130,
|
|
SetList::PHP_84,
|
|
SetList::CODE_QUALITY,
|
|
]);
|
|
};
|