From a36eadac5de18995efc51b68cc17fc519c8dca1b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 21 Sep 2023 01:34:01 +0000 Subject: [PATCH] fix paths --- Config/rector.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Config/rector.php b/Config/rector.php index bea5caf..b0d6896 100644 --- a/Config/rector.php +++ b/Config/rector.php @@ -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__]); }