From 205208fbd4cef4b9845a8a20e6b538d1e1ed70c9 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/Tag.php | 4 +--- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index fc72c09..e353a64 100755 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -31,6 +31,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 4468d2e..5165c58 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 c44d142..a677488 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/Tag.php b/Models/Tag.php index 5881ae0..ef187a6 100755 --- a/Models/Tag.php +++ b/Models/Tag.php @@ -43,9 +43,7 @@ class Tag implements \JsonSerializable, ArrayableInterface * @var string|TagL11n * @since 1.0.0 */ - protected string | - -TagL11n $title = ''; + protected string|TagL11n $title = ''; /** * Color RGBA.