From bafcb8496377a697dbcb08c653cdf1017c95a258 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/NewsArticle.php | 1 + Models/NewsArticleMapper.php | 1 + Models/NewsStatus.php | 1 + Models/NewsType.php | 1 + 11 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Admin/Activate.php b/Admin/Activate.php index b493777..3c5f093 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\News\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 6066416..5dbfbf6 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\News\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 6291373..f44ef52 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\News\Admin\Install; use phpOMS\DataStorage\Database\DatabasePool; diff --git a/Admin/Installer.php b/Admin/Installer.php index d414688..7f74fb5 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\News\Admin; use phpOMS\DataStorage\Database\DatabaseType; diff --git a/Admin/Uninstall.php b/Admin/Uninstall.php index 389019a..ddda407 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\News\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 26adeab..3711faa 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\News\Admin; - use phpOMS\DataStorage\Database\DatabasePool; use phpOMS\Module\UpdateAbstract; use phpOMS\System\File\Directory; diff --git a/Controller.php b/Controller.php index dd36927..ae1e8b5 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\News; use Model\Message\FormValidation; diff --git a/Models/NewsArticle.php b/Models/NewsArticle.php index 3ad2beb..64da263 100644 --- a/Models/NewsArticle.php +++ b/Models/NewsArticle.php @@ -13,6 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ +declare(strict_types=1); namespace Modules\News\Models; use phpOMS\Contract\ArrayableInterface; diff --git a/Models/NewsArticleMapper.php b/Models/NewsArticleMapper.php index 47edc4d..dfb668c 100644 --- a/Models/NewsArticleMapper.php +++ b/Models/NewsArticleMapper.php @@ -13,6 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ +declare(strict_types=1); namespace Modules\News\Models; use Modules\Admin\Models\AccountMapper; diff --git a/Models/NewsStatus.php b/Models/NewsStatus.php index 0e46e3b..7be417b 100644 --- a/Models/NewsStatus.php +++ b/Models/NewsStatus.php @@ -13,6 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ +declare(strict_types=1); namespace Modules\News\Models; use phpOMS\Datatypes\Enum; diff --git a/Models/NewsType.php b/Models/NewsType.php index 49a9557..6f180a0 100644 --- a/Models/NewsType.php +++ b/Models/NewsType.php @@ -13,6 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ +declare(strict_types=1); namespace Modules\News\Models; use phpOMS\Datatypes\Enum;