From 302639fc435aa5750698c5a3db92be5635243917 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 27 Oct 2017 17:56:33 +0200 Subject: [PATCH] Fix if for foreach while spacing --- Admin/Activate.php | 2 +- Admin/Deactivate.php | 2 +- Admin/Install/Navigation.php | 2 +- Admin/Installer.php | 2 +- Admin/Uninstall.php | 2 +- Admin/Update.php | 2 +- Controller.php | 2 +- Models/AddressMapper.php | 4 ++-- Models/ContactElement.php | 2 +- Models/ContactElementMapper.php | 4 ++-- Models/NullProfile.php | 2 +- Models/Profile.php | 2 +- Models/ProfileMapper.php | 4 ++-- Theme/Backend/Components/AccountGroupSelector/BaseView.php | 2 +- Theme/Backend/Components/AccountGroupSelector/PopupView.php | 2 +- Theme/Backend/profile-list.tpl.php | 4 ++-- 16 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Admin/Activate.php b/Admin/Activate.php index 0eae27b..3ad4d1d 100644 --- a/Admin/Activate.php +++ b/Admin/Activate.php @@ -11,7 +11,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -declare(strict_types=1); +declare(strict_types = 1); namespace Modules\Profile\Admin; use phpOMS\DataStorage\Database\DatabasePool; diff --git a/Admin/Deactivate.php b/Admin/Deactivate.php index 527b740..2791225 100644 --- a/Admin/Deactivate.php +++ b/Admin/Deactivate.php @@ -11,7 +11,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -declare(strict_types=1); +declare(strict_types = 1); namespace Modules\Profile\Admin; use phpOMS\DataStorage\Database\DatabasePool; diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index da91a64..3b9538f 100644 --- a/Admin/Install/Navigation.php +++ b/Admin/Install/Navigation.php @@ -11,7 +11,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -declare(strict_types=1); +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 18efaae..c08840f 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -11,7 +11,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -declare(strict_types=1); +declare(strict_types = 1); namespace Modules\Profile\Admin; use phpOMS\DataStorage\Database\DatabaseType; diff --git a/Admin/Uninstall.php b/Admin/Uninstall.php index 739d843..19ae510 100644 --- a/Admin/Uninstall.php +++ b/Admin/Uninstall.php @@ -11,7 +11,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -declare(strict_types=1); +declare(strict_types = 1); namespace Modules\Profile\Admin; use phpOMS\DataStorage\Database\DatabasePool; diff --git a/Admin/Update.php b/Admin/Update.php index cfe7f54..5fb8f38 100644 --- a/Admin/Update.php +++ b/Admin/Update.php @@ -11,7 +11,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -declare(strict_types=1); +declare(strict_types = 1); namespace Modules\Profile\Admin; use phpOMS\DataStorage\Database\DatabasePool; diff --git a/Controller.php b/Controller.php index 27db9bb..0b435d9 100644 --- a/Controller.php +++ b/Controller.php @@ -11,7 +11,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -declare(strict_types=1); +declare(strict_types = 1); namespace Modules\Profile; use Modules\Profile\Models\ProfileMapper; diff --git a/Models/AddressMapper.php b/Models/AddressMapper.php index f95d471..b1c5044 100644 --- a/Models/AddressMapper.php +++ b/Models/AddressMapper.php @@ -11,7 +11,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -declare(strict_types=1); +declare(strict_types = 1); namespace Modules\Profile\Models; use Modules\Media\Models\MediaMapper; @@ -70,7 +70,7 @@ class AddressMapper extends DataMapperAbstract try { $objId = parent::create($obj, $relations); - if($objId === null || !is_scalar($objId)) { + if ($objId === null || !is_scalar($objId)) { return $objId; } } catch (\Exception $e) { diff --git a/Models/ContactElement.php b/Models/ContactElement.php index 7858bb2..41f80a6 100644 --- a/Models/ContactElement.php +++ b/Models/ContactElement.php @@ -11,7 +11,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -declare(strict_types=1); +declare(strict_types = 1); namespace Modules\Profile\Models; /** diff --git a/Models/ContactElementMapper.php b/Models/ContactElementMapper.php index 224e2aa..cd5e641 100644 --- a/Models/ContactElementMapper.php +++ b/Models/ContactElementMapper.php @@ -11,7 +11,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -declare(strict_types=1); +declare(strict_types = 1); namespace Modules\Profile\Models; use phpOMS\DataStorage\Database\DataMapperAbstract; @@ -62,7 +62,7 @@ class ContactElementMapper extends DataMapperAbstract try { $objId = parent::create($obj, $relations); - if($objId === null || !is_scalar($objId)) { + if ($objId === null || !is_scalar($objId)) { return $objId; } } catch (\Exception $e) { diff --git a/Models/NullProfile.php b/Models/NullProfile.php index 23b964c..ea52afa 100644 --- a/Models/NullProfile.php +++ b/Models/NullProfile.php @@ -11,7 +11,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -declare(strict_types=1); +declare(strict_types = 1); namespace Modules\Profile\Models; diff --git a/Models/Profile.php b/Models/Profile.php index 1b02ac2..8315666 100644 --- a/Models/Profile.php +++ b/Models/Profile.php @@ -11,7 +11,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -declare(strict_types=1); +declare(strict_types = 1); namespace Modules\Profile\Models; use Modules\Admin\Models\Account; diff --git a/Models/ProfileMapper.php b/Models/ProfileMapper.php index 948d1e5..aa5e074 100644 --- a/Models/ProfileMapper.php +++ b/Models/ProfileMapper.php @@ -11,7 +11,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -declare(strict_types=1); +declare(strict_types = 1); namespace Modules\Profile\Models; use Modules\Media\Models\MediaMapper; @@ -106,7 +106,7 @@ class ProfileMapper extends DataMapperAbstract try { $objId = parent::create($obj, $relations); - if($objId === null || !is_scalar($objId)) { + if ($objId === null || !is_scalar($objId)) { return $objId; } } catch (\Exception $e) { diff --git a/Theme/Backend/Components/AccountGroupSelector/BaseView.php b/Theme/Backend/Components/AccountGroupSelector/BaseView.php index 5d8df64..eb22beb 100644 --- a/Theme/Backend/Components/AccountGroupSelector/BaseView.php +++ b/Theme/Backend/Components/AccountGroupSelector/BaseView.php @@ -11,7 +11,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -declare(strict_types=1); +declare(strict_types = 1); namespace Modules\Profile\Theme\Backend\Components\AccountGroupSelector; diff --git a/Theme/Backend/Components/AccountGroupSelector/PopupView.php b/Theme/Backend/Components/AccountGroupSelector/PopupView.php index e34d45e..e9740be 100644 --- a/Theme/Backend/Components/AccountGroupSelector/PopupView.php +++ b/Theme/Backend/Components/AccountGroupSelector/PopupView.php @@ -11,7 +11,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -declare(strict_types=1); +declare(strict_types = 1); namespace Modules\Profile\Theme\Backend\Components\AccountGroupSelector; diff --git a/Theme/Backend/profile-list.tpl.php b/Theme/Backend/profile-list.tpl.php index fb6e33e..46f8c7f 100644 --- a/Theme/Backend/profile-list.tpl.php +++ b/Theme/Backend/profile-list.tpl.php @@ -37,14 +37,14 @@ $accounts = $this->getData('accounts'); render(); ?> - $account) : $count++; + $account) : $count++; $url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/profile/single?{?}&id=' . $account->getAccount()->getId()); ?> printHtml($account->getAccount()->getId()); ?> printHtml($account->getAccount()->getName3() . ' ' . $account->getAccount()->getName2() . ' ' . $account->getAccount()->getName1()); ?> printHtml($account->getAccount()->getLastActive()->format('Y-m-d')); ?> - + getHtml('Empty', 0, 0); ?>