From 886c3d01b22fcdbc23ec8386b6835d286fe65ad0 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 1 Mar 2017 14:05:29 +0100 Subject: [PATCH] Strict types enabled --- Admin/Activate.php | 2 +- Admin/Deactivate.php | 2 +- Admin/Install/Navigation.php | 1 + Admin/Installer.php | 1 + Admin/Uninstall.php | 2 +- Admin/Update.php | 2 +- Controller.php | 1 + Models/Account.php | 38 ++++++++++++++++++++++++++++++++++++ Models/AccountMapper.php | 0 9 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 Models/Account.php create mode 100644 Models/AccountMapper.php diff --git a/Admin/Activate.php b/Admin/Activate.php index e77fa15..8822f9f 100644 --- a/Admin/Activate.php +++ b/Admin/Activate.php @@ -13,9 +13,9 @@ * @version 1.0.0 * @link http://orange-management.com */ +declare(strict_types=1); namespace Modules\Profile\Admin; - use phpOMS\DataStorage\Database\DatabasePool; use phpOMS\Module\ActivateAbstract; use phpOMS\Module\InfoManager; diff --git a/Admin/Deactivate.php b/Admin/Deactivate.php index 029a4f0..f6e69f6 100644 --- a/Admin/Deactivate.php +++ b/Admin/Deactivate.php @@ -13,9 +13,9 @@ * @version 1.0.0 * @link http://orange-management.com */ +declare(strict_types=1); namespace Modules\Profile\Admin; - use phpOMS\DataStorage\Database\DatabasePool; use phpOMS\Module\DeactivateAbstract; use phpOMS\Module\InfoManager; diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index fbbcb76..a222a0a 100644 --- a/Admin/Install/Navigation.php +++ b/Admin/Install/Navigation.php @@ -13,6 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ +declare(strict_types=1); namespace Modules\Profile\Admin\Install; use phpOMS\DataStorage\Database\DatabasePool; diff --git a/Admin/Installer.php b/Admin/Installer.php index 53900c1..36f1326 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -13,6 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ +declare(strict_types=1); namespace Modules\Profile\Admin; use phpOMS\DataStorage\Database\DatabaseType; diff --git a/Admin/Uninstall.php b/Admin/Uninstall.php index ec4cd74..6ce0348 100644 --- a/Admin/Uninstall.php +++ b/Admin/Uninstall.php @@ -13,9 +13,9 @@ * @version 1.0.0 * @link http://orange-management.com */ +declare(strict_types=1); namespace Modules\Profile\Admin; - use phpOMS\DataStorage\Database\DatabasePool; use phpOMS\DataStorage\Database\Schema\Builder; use phpOMS\Module\UninstallAbstract; diff --git a/Admin/Update.php b/Admin/Update.php index bb561d9..9a3447c 100644 --- a/Admin/Update.php +++ b/Admin/Update.php @@ -13,9 +13,9 @@ * @version 1.0.0 * @link http://orange-management.com */ +declare(strict_types=1); namespace Modules\Profile\Admin; - use phpOMS\DataStorage\Database\DatabasePool; use phpOMS\Module\UpdateAbstract; use phpOMS\System\File\Directory; diff --git a/Controller.php b/Controller.php index f6faafa..993dff7 100644 --- a/Controller.php +++ b/Controller.php @@ -13,6 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ +declare(strict_types=1); namespace Modules\Profile; use Modules\Admin\Models\AccountMapper; diff --git a/Models/Account.php b/Models/Account.php new file mode 100644 index 0000000..6dadf89 --- /dev/null +++ b/Models/Account.php @@ -0,0 +1,38 @@ + + * @author Dennis Eichhorn + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +declare(strict_types=1); +namespace Modules\Profile\Models; + +use Modules\Admin\Models\Account as AdminAccount; + +/** + * Account class. + * + * @category Modules + * @package Modules\Admin + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +class Account extends AdminAccount +{ + public function __construct(int $id = 0) + { + parent::__construct($id); + } +} diff --git a/Models/AccountMapper.php b/Models/AccountMapper.php new file mode 100644 index 0000000..e69de29