fix phpcs findings

This commit is contained in:
Dennis Eichhorn 2019-09-12 19:48:00 +02:00
parent f4092dd042
commit 6752b01e1f
22 changed files with 227 additions and 215 deletions

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Profile\Admin\Install * @package Modules\Profile\Admin\Install
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\DataStorage\Database\DatabasePool;
/** /**
* Navigation class. * Navigation class.
* *
* @package Modules\Profile\Admin\Install * @package Modules\Profile\Admin\Install
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Navigation class Navigation
{ {
@ -34,7 +34,7 @@ class Navigation
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function install(string $path, DatabasePool $dbPool) : void public static function install(string $path, DatabasePool $dbPool) : void
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Profile\Admin * @package Modules\Profile\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Module\InstallerAbstract;
/** /**
* Installer class. * Installer class.
* *
* @package Modules\Profile\Admin * @package Modules\Profile\Admin
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Installer extends InstallerAbstract class Installer extends InstallerAbstract
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Profile\Admin * @package Modules\Profile\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Module\StatusAbstract;
/** /**
* Navigation class. * Navigation class.
* *
* @package Modules\Profile\Admin * @package Modules\Profile\Admin
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Status extends StatusAbstract class Status extends StatusAbstract
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Profile\Admin * @package Modules\Profile\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Module\UninstallerAbstract;
/** /**
* Uninstaller class. * Uninstaller class.
* *
* @package Modules\Profile\Admin * @package Modules\Profile\Admin
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Uninstaller extends UninstallerAbstract class Uninstaller extends UninstallerAbstract
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Profile\Admin * @package Modules\Profile\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Module\UpdaterAbstract;
/** /**
* Updater class. * Updater class.
* *
* @package Modules\Profile\Admin * @package Modules\Profile\Admin
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Updater extends UpdaterAbstract class Updater extends UpdaterAbstract
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Profile * @package Modules\Profile
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -25,14 +25,16 @@ use phpOMS\Message\ResponseAbstract;
/** /**
* Profile class. * Profile class.
* *
* @package Modules\Profile * @package Modules\Profile
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
final class ApiController extends Controller final class ApiController extends Controller
{ {
/** /**
* Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
* @param mixed $data Generic data * @param mixed $data Generic data
@ -41,7 +43,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiProfileCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiProfileCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -70,7 +72,7 @@ final class ApiController extends Controller
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiProfileCreateDbEntry(Profile $profile, RequestAbstract $request) : bool public function apiProfileCreateDbEntry(Profile $profile, RequestAbstract $request) : bool
{ {
@ -90,7 +92,7 @@ final class ApiController extends Controller
* *
* @return array<Profile> * @return array<Profile>
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function createProfilesFromRequest(RequestAbstract $request) : array private function createProfilesFromRequest(RequestAbstract $request) : array
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Profile * @package Modules\Profile
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -26,22 +26,24 @@ use phpOMS\Views\View;
/** /**
* Profile class. * Profile class.
* *
* @package Modules\Profile * @package Modules\Profile
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
final class BackendController extends Controller final class BackendController extends Controller
{ {
/** /**
* Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
* @param mixed $data Generic data * @param mixed $data Generic data
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setupProfileStyles(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function setupProfileStyles(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -51,13 +53,15 @@ final class BackendController extends Controller
} }
/** /**
* Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
* @param mixed $data Generic data * @param mixed $data Generic data
* *
* @return RenderableInterface * @return RenderableInterface
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function viewProfileList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewProfileList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {
@ -70,13 +74,15 @@ final class BackendController extends Controller
} }
/** /**
* Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
* @param mixed $data Generic data * @param mixed $data Generic data
* *
* @return RenderableInterface * @return RenderableInterface
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function viewProfileSingle(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewProfileSingle(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {
@ -118,13 +124,15 @@ final class BackendController extends Controller
} }
/** /**
* Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
* @param mixed $data Generic data * @param mixed $data Generic data
* *
* @return RenderableInterface * @return RenderableInterface
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function viewProfileAdminSettings(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewProfileAdminSettings(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {
@ -136,13 +144,15 @@ final class BackendController extends Controller
} }
/** /**
* Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
* @param mixed $data Generic data * @param mixed $data Generic data
* *
* @return RenderableInterface * @return RenderableInterface
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function viewProfileAdminCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewProfileAdminCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Profile * @package Modules\Profile
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -20,10 +20,10 @@ use phpOMS\Module\WebInterface;
/** /**
* Profile class. * Profile class.
* *
* @package Modules\Profile * @package Modules\Profile
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Controller extends ModuleAbstract implements WebInterface class Controller extends ModuleAbstract implements WebInterface
{ {
@ -31,7 +31,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Module path. * Module path.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
public const MODULE_PATH = __DIR__ . '/../'; public const MODULE_PATH = __DIR__ . '/../';
@ -39,7 +39,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Module version. * Module version.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
public const MODULE_VERSION = '1.0.0'; public const MODULE_VERSION = '1.0.0';
@ -47,7 +47,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Module name. * Module name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
public const MODULE_NAME = 'Profile'; public const MODULE_NAME = 'Profile';
@ -55,7 +55,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Module id. * Module id.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
public const MODULE_ID = 1000300000; public const MODULE_ID = 1000300000;
@ -63,7 +63,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Providing. * Providing.
* *
* @var string[] * @var string[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $providing = []; protected static array $providing = [];
@ -71,7 +71,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Dependencies. * Dependencies.
* *
* @var string[] * @var string[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $dependencies = []; protected static array $dependencies = [];

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Profile * @package Modules\Profile
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,17 +19,17 @@ use phpOMS\DataStorage\Database\DataMapperAbstract;
/** /**
* Address mapper. * Address mapper.
* *
* @package Modules\Profile * @package Modules\Profile
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
final class AddressMapper extends DataMapperAbstract final class AddressMapper extends DataMapperAbstract
{ {
/** /**
* Columns. * Columns.
* *
* @var array<string, array<string, bool|string>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
@ -45,7 +45,7 @@ final class AddressMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'profile_address'; protected static string $table = 'profile_address';
@ -53,7 +53,7 @@ final class AddressMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'profile_address_id'; protected static string $primaryField = 'profile_address_id';

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Profile\Models * @package Modules\Profile\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -17,10 +17,10 @@ namespace Modules\Profile\Models;
/** /**
* Account class. * Account class.
* *
* @package Modules\Profile\Models * @package Modules\Profile\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class ContactElement class ContactElement
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package TBD * @package TBD
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -21,7 +21,7 @@ final class ContactElementMapper extends DataMapperAbstract
/** /**
* Columns. * Columns.
* *
* @var array<string, array<string, bool|string>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
@ -31,7 +31,7 @@ final class ContactElementMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'profile_contact'; protected static string $table = 'profile_contact';
@ -39,7 +39,7 @@ final class ContactElementMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'profile_contact_id'; protected static string $primaryField = 'profile_contact_id';

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Profile\Models * @package Modules\Profile\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -17,10 +17,10 @@ namespace Modules\Profile\Models;
/** /**
* Account class. * Account class.
* *
* @package Modules\Profile\Models * @package Modules\Profile\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class NullProfile extends Profile class NullProfile extends Profile
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Profile\Models * @package Modules\Profile\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
/** /**
* Permision state enum. * Permision state enum.
* *
* @package Modules\Profile\Models * @package Modules\Profile\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
abstract class PermissionState extends Enum abstract class PermissionState extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Profile\Models * @package Modules\Profile\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -24,17 +24,17 @@ use phpOMS\Stdlib\Base\Location;
/** /**
* Profile class. * Profile class.
* *
* @package Modules\Profile\Models * @package Modules\Profile\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Profile implements \JsonSerializable class Profile implements \JsonSerializable
{ {
/** /**
* Id. * Id.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $id = 0; private int $id = 0;
@ -42,7 +42,7 @@ class Profile implements \JsonSerializable
/** /**
* Profile image. * Profile image.
* *
* @var null|int|Media * @var null|int|Media
* @since 1.0.0 * @since 1.0.0
*/ */
private $image = null; private $image = null;
@ -50,7 +50,7 @@ class Profile implements \JsonSerializable
/** /**
* Birthday. * Birthday.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
private ?\DateTime $birthday = null; private ?\DateTime $birthday = null;
@ -58,7 +58,7 @@ class Profile implements \JsonSerializable
/** /**
* Account. * Account.
* *
* @var Account * @var Account
* @since 1.0.0 * @since 1.0.0
*/ */
private $account = null; private $account = null;
@ -66,7 +66,7 @@ class Profile implements \JsonSerializable
/** /**
* Location data. * Location data.
* *
* @var array<Location> * @var array<Location>
* @since 1.0.0 * @since 1.0.0
*/ */
private array $location = []; private array $location = [];
@ -76,7 +76,7 @@ class Profile implements \JsonSerializable
* *
* @param null|Account $account Account to initialize this profile with * @param null|Account $account Account to initialize this profile with
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function __construct(Account $account = null) public function __construct(Account $account = null)
{ {
@ -90,7 +90,7 @@ class Profile implements \JsonSerializable
* *
* @return int Account id * @return int Account id
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getId() : int public function getId() : int
{ {
@ -102,7 +102,7 @@ class Profile implements \JsonSerializable
* *
* @return array<Location> * @return array<Location>
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getLocation() : array public function getLocation() : array
{ {
@ -116,7 +116,7 @@ class Profile implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addLocation(Location $location) : void public function addLocation(Location $location) : void
{ {
@ -128,7 +128,7 @@ class Profile implements \JsonSerializable
* *
* @return Media * @return Media
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getImage() : Media public function getImage() : Media
{ {
@ -142,7 +142,7 @@ class Profile implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setImage(Media $image) : void public function setImage(Media $image) : void
{ {
@ -156,7 +156,7 @@ class Profile implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setAccount(Account $account) : void public function setAccount(Account $account) : void
{ {
@ -168,7 +168,7 @@ class Profile implements \JsonSerializable
* *
* @return Account * @return Account
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getAccount() : Account public function getAccount() : Account
{ {
@ -182,7 +182,7 @@ class Profile implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setBirthday(\DateTime $birthday) : void public function setBirthday(\DateTime $birthday) : void
{ {
@ -194,7 +194,7 @@ class Profile implements \JsonSerializable
* *
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getBirthday() : \DateTime public function getBirthday() : \DateTime
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Profile\Models * @package Modules\Profile\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -21,17 +21,17 @@ use phpOMS\DataStorage\Database\DataMapperAbstract;
/** /**
* Profile mapper. * Profile mapper.
* *
* @package Modules\Profile * @package Modules\Profile
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
final class ProfileMapper extends DataMapperAbstract final class ProfileMapper extends DataMapperAbstract
{ {
/** /**
* Columns. * Columns.
* *
* @var array<string, array<string, bool|string|array>> * @var array<string, array<string, bool|string|array>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
@ -44,7 +44,7 @@ final class ProfileMapper extends DataMapperAbstract
/** /**
* Has one relation. * Has one relation.
* *
* @var array<string, array<string, string>> * @var array<string, array<string, string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $ownsOne = [ protected static array $ownsOne = [
@ -61,7 +61,7 @@ final class ProfileMapper extends DataMapperAbstract
/** /**
* Has many relation. * Has many relation.
* *
* @var array<string, array<string, null|string>> * @var array<string, array<string, null|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $hasMany = [ protected static array $hasMany = [
@ -76,7 +76,7 @@ final class ProfileMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'profile_account'; protected static string $table = 'profile_account';
@ -84,7 +84,7 @@ final class ProfileMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'profile_account_id'; protected static string $primaryField = 'profile_account_id';

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package TBD * @package TBD
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -22,10 +22,10 @@ use phpOMS\Views\View;
/** /**
* Component view. * Component view.
* *
* @package TBD * @package TBD
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
class BaseView extends View class BaseView extends View

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package TBD * @package TBD
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -22,10 +22,10 @@ use phpOMS\Views\View;
/** /**
* Component view. * Component view.
* *
* @package TBD * @package TBD
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
class PopupView extends View class PopupView extends View

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package TBD * @package TBD
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
return ['Navigation' => [ return ['Navigation' => [
'List' => 'List', 'List' => 'List',

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package TBD * @package TBD
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
$MODLANG[1] = [ $MODLANG[1] = [
'i:ModuleInstalled' => 'Installation of the module {$1} was successful.', 'i:ModuleInstalled' => 'Installation of the module {$1} was successful.',

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package TBD * @package TBD
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
return ['Profile' => [ return ['Profile' => [
'Account' => 'Account', 'Account' => 'Account',

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package TBD * @package TBD
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
/** /**
* @var \phpOMS\Views\View $this * @var \phpOMS\Views\View $this

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package TBD * @package TBD
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
use Modules\Media\Models\NullMedia; use Modules\Media\Models\NullMedia;
use phpOMS\Uri\UriFactory; use phpOMS\Uri\UriFactory;