From 000dedc18eb20d6ea7b024298f8179ec73592e1b 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/ItemAttributeType.php | 4 +--- Models/ItemAttributeTypeL11n.php | 4 +--- 5 files changed, 25 insertions(+), 7 deletions(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index b5f274a..42af533 100755 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -37,6 +37,14 @@ use phpOMS\Module\ModuleInfo; */ 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 8837a14..93d08e8 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 268f03a..7835062 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/ItemAttributeType.php b/Models/ItemAttributeType.php index 26460e0..41437a7 100755 --- a/Models/ItemAttributeType.php +++ b/Models/ItemAttributeType.php @@ -68,9 +68,7 @@ class ItemAttributeType implements \JsonSerializable, ArrayableInterface * * @var ItemAttributeTypeL11n */ - protected string | - -ItemAttributeTypeL11n $l11n; + protected string|ItemAttributeTypeL11n $l11n; /** * Possible default attribute values diff --git a/Models/ItemAttributeTypeL11n.php b/Models/ItemAttributeTypeL11n.php index 655a60b..f1ec5f7 100755 --- a/Models/ItemAttributeTypeL11n.php +++ b/Models/ItemAttributeTypeL11n.php @@ -41,9 +41,7 @@ class ItemAttributeTypeL11n implements \JsonSerializable, ArrayableInterface * @var int|ItemAttributeType * @since 1.0.0 */ - protected int | - -ItemAttributeType $type = 0; + protected int|ItemAttributeType $type = 0; /** * Language.