mirror of
http://124.126.16.154:8888/singularity/hdk-auth.git
synced 2026-01-15 07:05:05 +08:00
24 lines
576 B
PHP
24 lines
576 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
|
||
|
|
use Rector\Config\RectorConfig;
|
||
|
|
use Rector\Hyperf\Set\HyperfSetList;
|
||
|
|
use Rector\Set\ValueObject\LevelSetList;
|
||
|
|
|
||
|
|
return static function (RectorConfig $rectorConfig): void {
|
||
|
|
$rectorConfig->paths([
|
||
|
|
__DIR__ . '/src',
|
||
|
|
__DIR__ . '/tests',
|
||
|
|
]);
|
||
|
|
|
||
|
|
// register a single rule
|
||
|
|
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
|
||
|
|
|
||
|
|
// define sets of rules
|
||
|
|
$rectorConfig->sets([
|
||
|
|
HyperfSetList::HYPERF_31
|
||
|
|
]);
|
||
|
|
};
|