fix paths

This commit is contained in:
Dennis Eichhorn 2023-09-21 01:34:01 +00:00
parent e85338a0ff
commit a36eadac5d

View File

@ -21,6 +21,14 @@ return static function (RectorConfig $rectorConfig): void {
__DIR__ . '/Modules',
__DIR__ . '/phpOMS',
]);
} elseif (\is_dir(__DIR__ . '/../../phpOMS')) {
$rectorConfig->paths([
__DIR__ . '/Model',
__DIR__ . '/Modules',
__DIR__ . '/phpOMS',
]);
} elseif (\is_dir(__DIR__ . '/../../tests')) {
$rectorConfig->paths([__DIR__ . '/../..']);
} else {
$rectorConfig->paths([__DIR__]);
}