fix phpcs findings

This commit is contained in:
Dennis Eichhorn 2019-09-12 19:48:00 +02:00
parent 061df3c320
commit 4c4cd2cb91
27 changed files with 299 additions and 285 deletions

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Helper\Admin\Install * @package Modules\Helper\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;
/** /**
* Media class. * Media class.
* *
* @package Modules\Helper\Admin\Install * @package Modules\Helper\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 Media class Media
{ {
@ -34,7 +34,7 @@ class Media
* *
* @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\Helper\Admin\Install * @package Modules\Helper\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\Helper\Admin\Install * @package Modules\Helper\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\Helper\Admin * @package Modules\Helper\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\Helper\Admin * @package Modules\Helper\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\Helper\Admin * @package Modules\Helper\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\Helper\Admin * @package Modules\Helper\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\Helper\Admin * @package Modules\Helper\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\Helper\Admin * @package Modules\Helper\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\Helper\Admin * @package Modules\Helper\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\Helper\Admin * @package Modules\Helper\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\Helper * @package Modules\Helper
* @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);
@ -57,6 +57,8 @@ 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
@ -65,7 +67,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiHelperExport(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiHelperExport(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -104,7 +106,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function setHelperResponseHeader(View $view, string $name, RequestAbstract $request, ResponseAbstract $response) : void private function setHelperResponseHeader(View $view, string $name, RequestAbstract $request, ResponseAbstract $response) : void
{ {
@ -147,7 +149,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function createView(Template $template, RequestAbstract $request, ResponseAbstract $response) : View private function createView(Template $template, RequestAbstract $request, ResponseAbstract $response) : View
{ {
@ -221,6 +223,8 @@ 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
@ -229,7 +233,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiTemplateCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiTemplateCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -261,7 +265,7 @@ final class ApiController extends Controller
* *
* @return Collection * @return Collection
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function createMediaCollectionFromRequest(RequestAbstract $request) : Collection private function createMediaCollectionFromRequest(RequestAbstract $request) : Collection
{ {
@ -297,7 +301,7 @@ final class ApiController extends Controller
* *
* @return Template * @return Template
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function createTemplateFromRequest(RequestAbstract $request, int $collectionId) : Template private function createTemplateFromRequest(RequestAbstract $request, int $collectionId) : Template
{ {
@ -322,6 +326,8 @@ 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
@ -330,7 +336,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiReportCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiReportCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -366,7 +372,7 @@ final class ApiController extends Controller
* *
* @return Report * @return Report
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function createReportFromRequest(RequestAbstract $request, ResponseAbstract $response, int $collectionId) : Report private function createReportFromRequest(RequestAbstract $request, ResponseAbstract $response, int $collectionId) : Report
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Helper * @package Modules\Helper
* @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);
@ -48,13 +48,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
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
public function viewTemplateList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewTemplateList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
@ -71,13 +73,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
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
public function viewTemplateCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewTemplateCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
@ -95,13 +99,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
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
public function viewReportCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewReportCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
@ -119,6 +125,8 @@ 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
@ -127,7 +135,7 @@ final class BackendController extends Controller
* *
* @throws \Exception * @throws \Exception
* *
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
public function viewHelperReport(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewHelperReport(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Helper * @package Modules\Helper
* @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);
@ -39,7 +39,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__ . '/../';
@ -47,7 +47,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';
@ -55,7 +55,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 = 'Helper'; public const MODULE_NAME = 'Helper';
@ -63,7 +63,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 = 1002700000; public const MODULE_ID = 1002700000;
@ -71,7 +71,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 = [];
@ -79,7 +79,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\Helper\Models * @package Modules\Helper\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;
/** /**
* Helper status. * Helper status.
* *
* @package Modules\Helper\Models * @package Modules\Helper\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 HelperStatus extends Enum abstract class HelperStatus extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Helper\Models * @package Modules\Helper\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\Helper\Models;
/** /**
* Report model. * Report model.
* *
* @package Modules\Helper\Models * @package Modules\Helper\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 NullReport extends Report class NullReport extends Report
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Helper\Models * @package Modules\Helper\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\Helper\Models;
/** /**
* Report model. * Report model.
* *
* @package Modules\Helper\Models * @package Modules\Helper\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 NullTemplate extends Template class NullTemplate extends Template
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Helper * @package Modules\Helper
* @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\Helper * @package Modules\Helper
* @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\Helper\Models * @package Modules\Helper\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\Helper\Models;
/** /**
* Report model. * Report model.
* *
* @package Modules\Helper\Models * @package Modules\Helper\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 Report implements \JsonSerializable class Report implements \JsonSerializable
{ {
@ -28,7 +28,7 @@ class Report implements \JsonSerializable
/** /**
* Report Id. * Report Id.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $id = 0; private int $id = 0;
@ -36,7 +36,7 @@ class Report implements \JsonSerializable
/** /**
* Report status. * Report status.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $status = HelperStatus::INACTIVE; private int $status = HelperStatus::INACTIVE;
@ -44,7 +44,7 @@ class Report implements \JsonSerializable
/** /**
* Report title. * Report title.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private string $title = ''; private string $title = '';
@ -52,7 +52,7 @@ class Report implements \JsonSerializable
/** /**
* Report description. * Report description.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private string $description = ''; private string $description = '';
@ -60,7 +60,7 @@ class Report implements \JsonSerializable
/** /**
* Report description. * Report description.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private string $descriptionRaw = ''; private string $descriptionRaw = '';
@ -68,7 +68,7 @@ class Report implements \JsonSerializable
/** /**
* Report created at. * Report created at.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
protected ?\DateTime $createdAt = null; protected ?\DateTime $createdAt = null;
@ -76,7 +76,7 @@ class Report implements \JsonSerializable
/** /**
* Report created by. * Report created by.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $createdBy = 0; private $createdBy = 0;
@ -84,7 +84,7 @@ class Report implements \JsonSerializable
/** /**
* Report template. * Report template.
* *
* @var null|int|Media * @var null|int|Media
* @since 1.0.0 * @since 1.0.0
*/ */
private $template = 0; private $template = 0;
@ -92,7 +92,7 @@ class Report implements \JsonSerializable
/** /**
* Report source. * Report source.
* *
* @var int|\Modules\Media\Models\Collection * @var int|\Modules\Media\Models\Collection
* @since 1.0.0 * @since 1.0.0
*/ */
private $source = 0; private $source = 0;
@ -100,7 +100,7 @@ class Report implements \JsonSerializable
/** /**
* Constructor. * Constructor.
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function __construct() public function __construct()
{ {
@ -110,7 +110,7 @@ class Report implements \JsonSerializable
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getId() : int public function getId() : int
{ {
@ -120,7 +120,7 @@ class Report implements \JsonSerializable
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getStatus() : int public function getStatus() : int
{ {
@ -132,7 +132,7 @@ class Report implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setStatus(int $status) : void public function setStatus(int $status) : void
{ {
@ -142,7 +142,7 @@ class Report implements \JsonSerializable
/** /**
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getTitle() : string public function getTitle() : string
{ {
@ -154,7 +154,7 @@ class Report implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setTitle(string $title) : void public function setTitle(string $title) : void
{ {
@ -164,7 +164,7 @@ class Report implements \JsonSerializable
/** /**
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDescription() : string public function getDescription() : string
{ {
@ -176,7 +176,7 @@ class Report implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDescription(string $description) : void public function setDescription(string $description) : void
{ {
@ -186,7 +186,7 @@ class Report implements \JsonSerializable
/** /**
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDescriptionRaw() : string public function getDescriptionRaw() : string
{ {
@ -198,7 +198,7 @@ class Report implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDescriptionRaw(string $descriptionRaw) : void public function setDescriptionRaw(string $descriptionRaw) : void
{ {
@ -208,7 +208,7 @@ class Report implements \JsonSerializable
/** /**
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedAt() : \DateTime public function getCreatedAt() : \DateTime
{ {
@ -218,7 +218,7 @@ class Report implements \JsonSerializable
/** /**
* @return int|\phpOMS\Account\Account * @return int|\phpOMS\Account\Account
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedBy() public function getCreatedBy()
{ {
@ -230,7 +230,7 @@ class Report implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setCreatedBy($creator) : void public function setCreatedBy($creator) : void
{ {
@ -240,7 +240,7 @@ class Report implements \JsonSerializable
/** /**
* @return mixed * @return mixed
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getTemplate() public function getTemplate()
{ {
@ -252,7 +252,7 @@ class Report implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setTemplate($template) : void public function setTemplate($template) : void
{ {
@ -264,7 +264,7 @@ class Report implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setSource($source) : void public function setSource($source) : void
{ {
@ -274,7 +274,7 @@ class Report implements \JsonSerializable
/** /**
* @return \Modules\Media\Models\Collection|int * @return \Modules\Media\Models\Collection|int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getSource() public function getSource()
{ {
@ -284,7 +284,7 @@ class Report implements \JsonSerializable
/** /**
* @return array * @return array
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function toArray() : array public function toArray() : array
{ {

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);
@ -23,7 +23,7 @@ final class ReportMapper 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 = [
@ -41,7 +41,7 @@ final class ReportMapper 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 = [
@ -58,7 +58,7 @@ final class ReportMapper extends DataMapperAbstract
/** /**
* Belongs to. * Belongs to.
* *
* @var array<string, array<string, string>> * @var array<string, array<string, string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $belongsTo = [ protected static array $belongsTo = [
@ -71,7 +71,7 @@ final class ReportMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'helper_report'; protected static string $table = 'helper_report';
@ -79,7 +79,7 @@ final class ReportMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'helper_report_id'; protected static string $primaryField = 'helper_report_id';
@ -87,7 +87,7 @@ final class ReportMapper extends DataMapperAbstract
/** /**
* Created at. * Created at.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $createdAt = 'helper_report_created'; protected static string $createdAt = 'helper_report_created';

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Helper\Models * @package Modules\Helper\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\Helper\Models;
/** /**
* Template model. * Template model.
* *
* @package Modules\Helper\Models * @package Modules\Helper\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 Template implements \JsonSerializable class Template implements \JsonSerializable
{ {
@ -28,7 +28,7 @@ class Template implements \JsonSerializable
/** /**
* Template Id. * Template Id.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $id = 0; private int $id = 0;
@ -36,7 +36,7 @@ class Template implements \JsonSerializable
/** /**
* Template status. * Template status.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $status = HelperStatus::INACTIVE; private int $status = HelperStatus::INACTIVE;
@ -44,7 +44,7 @@ class Template implements \JsonSerializable
/** /**
* Template data type. * Template data type.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $datatype = TemplateDataType::OTHER; private int $datatype = TemplateDataType::OTHER;
@ -52,7 +52,7 @@ class Template implements \JsonSerializable
/** /**
* Template doesn't need reports. * Template doesn't need reports.
* *
* @var bool * @var bool
* @since 1.0.0 * @since 1.0.0
*/ */
private bool $isStandalone = false; private bool $isStandalone = false;
@ -60,7 +60,7 @@ class Template implements \JsonSerializable
/** /**
* Template name. * Template name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private string $name = ''; private string $name = '';
@ -68,7 +68,7 @@ class Template implements \JsonSerializable
/** /**
* Template description. * Template description.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private string $description = ''; private string $description = '';
@ -76,7 +76,7 @@ class Template implements \JsonSerializable
/** /**
* Template description. * Template description.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private string $descriptionRaw = ''; private string $descriptionRaw = '';
@ -84,7 +84,7 @@ class Template implements \JsonSerializable
/** /**
* Template created at. * Template created at.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
protected ?\DateTime $createdAt = null; protected ?\DateTime $createdAt = null;
@ -92,7 +92,7 @@ class Template implements \JsonSerializable
/** /**
* Template created by. * Template created by.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $createdBy = 0; private $createdBy = 0;
@ -100,7 +100,7 @@ class Template implements \JsonSerializable
/** /**
* Template source. * Template source.
* *
* @var int|Media * @var int|Media
* @since 1.0.0 * @since 1.0.0
*/ */
private $source = 0; private $source = 0;
@ -108,7 +108,7 @@ class Template implements \JsonSerializable
/** /**
* Expected files. * Expected files.
* *
* @var array * @var array
* @since 1.0.0 * @since 1.0.0
*/ */
private array $expected = []; private array $expected = [];
@ -116,7 +116,7 @@ class Template implements \JsonSerializable
/** /**
* Reports. * Reports.
* *
* @var array * @var array
* @since 1.0.0 * @since 1.0.0
*/ */
private array $reports = []; private array $reports = [];
@ -124,7 +124,7 @@ class Template implements \JsonSerializable
/** /**
* Constructor * Constructor
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function __construct() public function __construct()
{ {
@ -134,7 +134,7 @@ class Template implements \JsonSerializable
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getId() : int public function getId() : int
{ {
@ -155,7 +155,7 @@ class Template implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setName(string $name) : void public function setName(string $name) : void
{ {
@ -165,7 +165,7 @@ class Template implements \JsonSerializable
/** /**
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getName() : string public function getName() : string
{ {
@ -177,7 +177,7 @@ class Template implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDescription(string $description) : void public function setDescription(string $description) : void
{ {
@ -187,7 +187,7 @@ class Template implements \JsonSerializable
/** /**
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDescription() : string public function getDescription() : string
{ {
@ -199,7 +199,7 @@ class Template implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDescriptionRaw(string $description) : void public function setDescriptionRaw(string $description) : void
{ {
@ -209,7 +209,7 @@ class Template implements \JsonSerializable
/** /**
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDescriptionRaw() : string public function getDescriptionRaw() : string
{ {
@ -221,7 +221,7 @@ class Template implements \JsonSerializable
* *
* @return mixed * @return mixed
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setSource($source) public function setSource($source)
{ {
@ -231,7 +231,7 @@ class Template implements \JsonSerializable
/** /**
* @return mixed * @return mixed
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getSource() public function getSource()
{ {
@ -243,7 +243,7 @@ class Template implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setCreatedBy($createdBy) : void public function setCreatedBy($createdBy) : void
{ {
@ -253,7 +253,7 @@ class Template implements \JsonSerializable
/** /**
* @return int|\phpOMS\Account\Account * @return int|\phpOMS\Account\Account
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedBy() public function getCreatedBy()
{ {
@ -263,7 +263,7 @@ class Template implements \JsonSerializable
/** /**
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedAt() : \DateTime public function getCreatedAt() : \DateTime
{ {
@ -275,7 +275,7 @@ class Template implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setExpected(array $expected) : void public function setExpected(array $expected) : void
{ {
@ -285,7 +285,7 @@ class Template implements \JsonSerializable
/** /**
* @return array * @return array
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getExpected() : array public function getExpected() : array
{ {
@ -297,7 +297,7 @@ class Template implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addExpected(string $expected) : void public function addExpected(string $expected) : void
{ {
@ -309,7 +309,7 @@ class Template implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setStatus(int $status) : void public function setStatus(int $status) : void
{ {
@ -319,7 +319,7 @@ class Template implements \JsonSerializable
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getStatus() : int public function getStatus() : int
{ {
@ -331,7 +331,7 @@ class Template implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDatatype(int $datatype) : void public function setDatatype(int $datatype) : void
{ {
@ -341,7 +341,7 @@ class Template implements \JsonSerializable
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDatatype() : int public function getDatatype() : int
{ {
@ -353,7 +353,7 @@ class Template implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setStandalone(bool $isStandalone) : void public function setStandalone(bool $isStandalone) : void
{ {
@ -363,7 +363,7 @@ class Template implements \JsonSerializable
/** /**
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function isStandalone() : bool public function isStandalone() : bool
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Helper\Models * @package Modules\Helper\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;
/** /**
* Helper status. * Helper status.
* *
* @package Modules\Helper\Models * @package Modules\Helper\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 TemplateDataType extends Enum abstract class TemplateDataType extends Enum
{ {

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);
@ -24,7 +24,7 @@ final class TemplateMapper 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 = [
@ -46,7 +46,7 @@ final class TemplateMapper 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 = [
@ -59,7 +59,7 @@ final class TemplateMapper extends DataMapperAbstract
/** /**
* Belongs to. * Belongs to.
* *
* @var array<string, array<string, string>> * @var array<string, array<string, string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $belongsTo = [ protected static array $belongsTo = [
@ -72,7 +72,7 @@ final class TemplateMapper 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 = [
@ -87,7 +87,7 @@ final class TemplateMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'helper_template'; protected static string $table = 'helper_template';
@ -95,7 +95,7 @@ final class TemplateMapper extends DataMapperAbstract
/** /**
* Created at. * Created at.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $createdAt = 'helper_template_created'; protected static string $createdAt = 'helper_template_created';
@ -103,7 +103,7 @@ final class TemplateMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'helper_template_id'; protected static string $primaryField = 'helper_template_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
*/ */
return ['Navigation' => [ return ['Navigation' => [
'Create' => 'Create', 'Create' => 'Create',

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[27] = [ $MODLANG[27] = [
]; ];

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 ['Helper' => [ return ['Helper' => [
'Add' => 'Add', 'Add' => 'Add',

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
*/ */
/** /**

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
*/ */
/** /**
* @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
*/ */
/** /**
* @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 Modules\Helper\Views * @package Modules\Helper\Views
* @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\Views\View;
/** /**
* Helper view. * Helper view.
* *
* @package Modules\Helper\Views * @package Modules\Helper\Views
* @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 HelperView extends View class HelperView extends View
{ {