From 43d99f06086b4bfb9688ad668edd27816cb71008 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 28 Sep 2019 20:59:03 +0200 Subject: [PATCH] style fixes and time recording app draft --- Models/AddressMapper.php | 4 ++-- Models/ContactElementMapper.php | 4 ++-- Models/Profile.php | 4 ++-- Models/ProfileMapper.php | 2 +- Theme/Backend/Lang/en.lang.php | 3 +++ 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Models/AddressMapper.php b/Models/AddressMapper.php index 399ab42..ba30baa 100644 --- a/Models/AddressMapper.php +++ b/Models/AddressMapper.php @@ -4,7 +4,7 @@ * * PHP Version 7.4 * - * @package Modules\Profile + * @package Modules\Profile\Models * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\DataMapperAbstract; /** * Address mapper. * - * @package Modules\Profile + * @package Modules\Profile\Models * @license OMS License 1.0 * @link https://orange-management.org * @since 1.0.0 diff --git a/Models/ContactElementMapper.php b/Models/ContactElementMapper.php index f84df0a..768df31 100644 --- a/Models/ContactElementMapper.php +++ b/Models/ContactElementMapper.php @@ -4,7 +4,7 @@ * * PHP Version 7.4 * - * @package Modules\Profile + * @package Modules\Profile\Models * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\DataMapperAbstract; /** * Contact mapper class. * - * @package Modules\Profile + * @package Modules\Profile\Models * @license OMS License 1.0 * @link https://orange-management.org * @since 1.0.0 diff --git a/Models/Profile.php b/Models/Profile.php index f5734b0..f4be5a1 100644 --- a/Models/Profile.php +++ b/Models/Profile.php @@ -50,10 +50,10 @@ class Profile implements \JsonSerializable /** * Birthday. * - * @var null|\DateTime + * @var \DateTime * @since 1.0.0 */ - private ?\DateTime $birthday = null; + private \DateTime $birthday; /** * Account. diff --git a/Models/ProfileMapper.php b/Models/ProfileMapper.php index ede8945..f49fd7c 100644 --- a/Models/ProfileMapper.php +++ b/Models/ProfileMapper.php @@ -21,7 +21,7 @@ use phpOMS\DataStorage\Database\DataMapperAbstract; /** * Profile mapper. * - * @package Modules\Profile + * @package Modules\Profile\Models * @license OMS License 1.0 * @link https://orange-management.org * @since 1.0.0 diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 8f67f08..6988b98 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -14,10 +14,12 @@ return ['Profile' => [ 'Account' => 'Account', 'Account/Group' => 'Account/Group', 'Activity' => 'Activity', + 'Address' => 'Address', 'Area' => 'Area', 'Birthday' => 'Birthday', 'ContactInformation' => 'Contact Information', 'Community' => 'Community', + 'City' => 'City', 'Country' => 'Country', 'CreateProfile' => 'Create Profile', 'Currency' => 'Currency', @@ -72,4 +74,5 @@ return ['Profile' => [ 'VerySmall' => 'Very Small', 'Volume' => 'Volume', 'Weight' => 'Weight', + 'Zip' => 'Zip', ]];