From 4a70dd13fd6400d406b05552a5f549b9faaf1779 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 3 Oct 2021 09:16:47 +0200 Subject: [PATCH] phpcs, static and unit test fixes --- Admin/Installer.php | 8 ++++++++ Admin/Status.php | 7 +++++++ Admin/Uninstaller.php | 9 ++++++++- Models/StockMovementMapper.php | 13 +++++++++++++ 4 files changed, 36 insertions(+), 1 deletion(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index f3f8e7b..fdb7c70 100755 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -34,6 +34,14 @@ use Modules\WarehouseManagement\Models\StockLocationMapper; */ final class Installer extends InstallerAbstract { + /** + * Path of the file + * + * @var string + * @since 1.0.0 + */ + public const PATH = __DIR__; + /** * {@inheritdoc} */ diff --git a/Admin/Status.php b/Admin/Status.php index f6f2364..bfa780c 100755 --- a/Admin/Status.php +++ b/Admin/Status.php @@ -26,4 +26,11 @@ use phpOMS\Module\StatusAbstract; */ final class Status extends StatusAbstract { + /** + * Path of the file + * + * @var string + * @since 1.0.0 + */ + public const PATH = __DIR__; } diff --git a/Admin/Uninstaller.php b/Admin/Uninstaller.php index 01663ce..66117e9 100755 --- a/Admin/Uninstaller.php +++ b/Admin/Uninstaller.php @@ -24,6 +24,13 @@ use phpOMS\Module\UninstallerAbstract; * @link https://orange-management.org * @since 1.0.0 */ -final class Uninstaller extends UninstallerAbstract +final class Installer extends InstallerAbstract { + /** + * Path of the file + * + * @var string + * @since 1.0.0 + */ + public const PATH = __DIR__; } diff --git a/Models/StockMovementMapper.php b/Models/StockMovementMapper.php index e69de29..69a2745 100755 --- a/Models/StockMovementMapper.php +++ b/Models/StockMovementMapper.php @@ -0,0 +1,13 @@ +