fix phpcs findings

This commit is contained in:
Dennis Eichhorn 2019-09-12 19:48:00 +02:00
parent 274094335f
commit 69ceba0fc2
40 changed files with 421 additions and 421 deletions

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin\Admin\Install * @package Modules\Admin\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\Admin\Admin\Install * @package Modules\Admin\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\Admin\Admin * @package Modules\Admin\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\Stdlib\Base\Enum;
/** /**
* Install type enum. * Install type enum.
* *
* @package Modules\Admin\Admin * @package Modules\Admin\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
*/ */
abstract class InstallType extends Enum abstract class InstallType extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin\Admin * @package Modules\Admin\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\Admin\Admin * @package Modules\Admin\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\Admin\Admin * @package Modules\Admin\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;
/** /**
* Activate class. * Activate class.
* *
* @package Modules\Admin\Admin * @package Modules\Admin\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\Admin\Admin * @package Modules\Admin\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;
/** /**
* Uninstall class. * Uninstall class.
* *
* @package Modules\Admin\Admin * @package Modules\Admin\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\Admin\Admin * @package Modules\Admin\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);
@ -22,10 +22,10 @@ use phpOMS\System\File\Local\Directory;
/** /**
* Update class. * Update class.
* *
* @package Modules\Admin\Admin * @package Modules\Admin\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\Admin * @package Modules\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);
@ -54,10 +54,10 @@ use phpOMS\Version\Version;
* *
* This class is responsible for the basic admin activities such as managing accounts, groups, permissions and modules. * This class is responsible for the basic admin activities such as managing accounts, groups, permissions and modules.
* *
* @package Modules\Admin * @package Modules\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
*/ */
final class ApiController extends Controller final class ApiController extends Controller
{ {
@ -72,7 +72,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiSettingsGet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiSettingsGet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -95,7 +95,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiSettingsSet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiSettingsSet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -120,7 +120,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiGroupGet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiGroupGet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -139,7 +139,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiGroupUpdate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiGroupUpdate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -156,7 +156,7 @@ final class ApiController extends Controller
* *
* @return Group * @return Group
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function updateGroupFromRequest(RequestAbstract $request) : Group private function updateGroupFromRequest(RequestAbstract $request) : Group
{ {
@ -176,7 +176,7 @@ final class ApiController extends Controller
* *
* @return array<string, bool> * @return array<string, bool>
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function validateGroupCreate(RequestAbstract $request) : array private function validateGroupCreate(RequestAbstract $request) : array
{ {
@ -201,7 +201,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiGroupCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiGroupCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -223,7 +223,7 @@ final class ApiController extends Controller
* *
* @return Group * @return Group
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function createGroupFromRequest(RequestAbstract $request) : Group private function createGroupFromRequest(RequestAbstract $request) : Group
{ {
@ -248,7 +248,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiGroupDelete(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiGroupDelete(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -268,7 +268,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiGroupFind(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiGroupFind(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -292,7 +292,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiAccountGet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiAccountGet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -311,7 +311,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiAccountFind(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiAccountFind(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -335,7 +335,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiAccountGroupFind(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiAccountGroupFind(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -372,7 +372,7 @@ final class ApiController extends Controller
* *
* @return array<string, bool> * @return array<string, bool>
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function validateAccountCreate(RequestAbstract $request) : array private function validateAccountCreate(RequestAbstract $request) : array
{ {
@ -400,7 +400,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiAccountCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiAccountCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -426,7 +426,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function createProfileForAccount(Account $account, RequestAbstract $request) : void private function createProfileForAccount(Account $account, RequestAbstract $request) : void
{ {
@ -454,7 +454,7 @@ final class ApiController extends Controller
* *
* @return Account * @return Account
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function createAccountFromRequest(RequestAbstract $request) : Account private function createAccountFromRequest(RequestAbstract $request) : Account
{ {
@ -482,7 +482,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiAccountDelete(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiAccountDelete(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -502,7 +502,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiAccountUpdate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiAccountUpdate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -525,7 +525,7 @@ final class ApiController extends Controller
* *
* @return Account * @return Account
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function updateAccountFromRequest(RequestAbstract $request, bool $allowPassword = false) : Account private function updateAccountFromRequest(RequestAbstract $request, bool $allowPassword = false) : Account
{ {
@ -556,7 +556,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiModuleStatusUpdate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiModuleStatusUpdate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -617,7 +617,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiAddGroupPermission(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiAddGroupPermission(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -650,7 +650,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiAddAccountPermission(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiAddAccountPermission(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -682,7 +682,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function createAccountModelPermission(PermissionAbstract $permission, int $account) : void public function createAccountModelPermission(PermissionAbstract $permission, int $account) : void
{ {
@ -696,7 +696,7 @@ final class ApiController extends Controller
* *
* @return array<string, bool> * @return array<string, bool>
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function validatePermissionCreate(RequestAbstract $request) : array private function validatePermissionCreate(RequestAbstract $request) : array
{ {
@ -717,7 +717,7 @@ final class ApiController extends Controller
* *
* @return AccountPermission|GroupPermission * @return AccountPermission|GroupPermission
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function createPermissionFromRequest(RequestAbstract $request) : PermissionAbstract public function createPermissionFromRequest(RequestAbstract $request) : PermissionAbstract
{ {
@ -750,7 +750,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiAddGroupToAccount(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiAddGroupToAccount(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -772,7 +772,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiAddAccountToGroup(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiAddAccountToGroup(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -794,7 +794,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiReInit(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiReInit(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -839,7 +839,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiCheckForUpdates(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiCheckForUpdates(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -891,7 +891,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiUpdateFile(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiUpdateFile(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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);
@ -35,10 +35,10 @@ use phpOMS\Views\View;
* *
* This class is responsible for the basic admin activities such as managing accounts, groups, permissions and modules. * This class is responsible for the basic admin activities such as managing accounts, groups, permissions and modules.
* *
* @package Modules\Admin * @package Modules\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
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
final class BackendController extends Controller final class BackendController extends Controller
@ -56,7 +56,7 @@ final class BackendController extends Controller
* *
* @return RenderableInterface Response can be rendered * @return RenderableInterface Response can be rendered
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function viewSettingsGeneral(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewSettingsGeneral(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {
@ -91,7 +91,7 @@ final class BackendController extends Controller
* *
* @return RenderableInterface Response can be rendered * @return RenderableInterface Response can be rendered
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function viewEmptyCommand(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewEmptyCommand(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {
@ -110,7 +110,7 @@ final class BackendController extends Controller
* *
* @return RenderableInterface Response can be rendered * @return RenderableInterface Response can be rendered
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function viewAccountList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewAccountList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {
@ -132,7 +132,7 @@ final class BackendController extends Controller
* *
* @return RenderableInterface Response can be rendered * @return RenderableInterface Response can be rendered
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function viewAccountSettings(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewAccountSettings(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {
@ -166,7 +166,7 @@ final class BackendController extends Controller
* *
* @return RenderableInterface Response can be rendered * @return RenderableInterface Response can be rendered
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function viewAccountCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewAccountCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {
@ -186,7 +186,7 @@ final class BackendController extends Controller
* *
* @return RenderableInterface Response can be rendered * @return RenderableInterface Response can be rendered
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function viewGroupList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewGroupList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {
@ -207,7 +207,7 @@ final class BackendController extends Controller
* *
* @return RenderableInterface Response can be rendered * @return RenderableInterface Response can be rendered
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function viewGroupSettings(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewGroupSettings(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {
@ -244,7 +244,7 @@ final class BackendController extends Controller
* *
* @return RenderableInterface Response can be rendered * @return RenderableInterface Response can be rendered
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function viewGroupCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewGroupCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {
@ -267,7 +267,7 @@ final class BackendController extends Controller
* *
* @return RenderableInterface Response can be rendered * @return RenderableInterface Response can be rendered
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function viewModuleList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewModuleList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {
@ -286,7 +286,7 @@ final class BackendController extends Controller
* *
* @return RenderableInterface Response can be rendered * @return RenderableInterface Response can be rendered
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function viewModuleProfile(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewModuleProfile(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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);
@ -24,10 +24,10 @@ use phpOMS\Views\View;
* *
* This class is responsible for the basic admin activities such as managing accounts, groups, permissions and modules. * This class is responsible for the basic admin activities such as managing accounts, groups, permissions and modules.
* *
* @package Modules\Admin * @package Modules\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
*/ */
final class ConsoleController extends Controller final class ConsoleController extends Controller
{ {
@ -43,7 +43,7 @@ final class ConsoleController extends Controller
* *
* @return RenderableInterface Response can be rendered * @return RenderableInterface Response can be rendered
* *
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
public function viewEmptyCommand(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewEmptyCommand(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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);
@ -22,10 +22,10 @@ use phpOMS\Module\WebInterface;
* *
* This class is responsible for the basic admin activities such as managing accounts, groups, permissions and modules. * This class is responsible for the basic admin activities such as managing accounts, groups, permissions and modules.
* *
* @package Modules\Admin * @package Modules\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
*/ */
abstract class Controller extends ModuleAbstract implements WebInterface abstract class Controller extends ModuleAbstract implements WebInterface
{ {
@ -33,7 +33,7 @@ abstract 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__ . '/../';
@ -41,7 +41,7 @@ abstract 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';
@ -49,7 +49,7 @@ abstract 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 = 'Admin'; public const MODULE_NAME = 'Admin';
@ -57,7 +57,7 @@ abstract 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 = 1000100000; public const MODULE_ID = 1000100000;
@ -65,7 +65,7 @@ abstract 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 = [];
@ -73,7 +73,7 @@ abstract 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\Admin * @package Modules\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);
@ -17,17 +17,17 @@ namespace Modules\Admin\Models;
/** /**
* Account class. * Account class.
* *
* @package Modules\Admin * @package Modules\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 Account extends \phpOMS\Account\Account class Account extends \phpOMS\Account\Account
{ {
/** /**
* Remaining login tries. * Remaining login tries.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $tries = 0; protected int $tries = 0;
@ -37,7 +37,7 @@ class Account extends \phpOMS\Account\Account
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getLoginTries() : int public function getLoginTries() : int
{ {
@ -51,7 +51,7 @@ class Account extends \phpOMS\Account\Account
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setLoginTries(int $tries = 0) : void public function setLoginTries(int $tries = 0) : void
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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);
@ -22,17 +22,17 @@ use phpOMS\DataStorage\Database\RelationType;
/** /**
* Account mapper class. * Account mapper class.
* *
* @package Modules\Admin * @package Modules\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
*/ */
final class AccountMapper extends DataMapperAbstract final class AccountMapper 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 = [
@ -53,12 +53,12 @@ final class AccountMapper 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
*/ /** */ /**
* 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 = [
@ -73,7 +73,7 @@ final class AccountMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'account'; protected static string $table = 'account';
@ -81,7 +81,7 @@ final class AccountMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'account_id'; protected static string $primaryField = 'account_id';
@ -89,7 +89,7 @@ final class AccountMapper extends DataMapperAbstract
/** /**
* Created at column * Created at column
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $createdAt = 'account_created_at'; protected static string $createdAt = 'account_created_at';
@ -137,7 +137,7 @@ final class AccountMapper extends DataMapperAbstract
* *
* @return int Login code * @return int Login code
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function login(string $login, string $password) : int public static function login(string $login, string $password) : int
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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);
@ -22,17 +22,17 @@ use phpOMS\Account\PermissionType;
* *
* A single permission for an account consisting of read, create, modify, delete and permission flags. * A single permission for an account consisting of read, create, modify, delete and permission flags.
* *
* @package Modules\Admin * @package Modules\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 AccountPermission extends PermissionAbstract class AccountPermission extends PermissionAbstract
{ {
/** /**
* Account id * Account id
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $account = 0; private int $account = 0;
@ -49,7 +49,7 @@ class AccountPermission extends PermissionAbstract
* @param null|int $component (e.g. address) (null if all are acceptable) * @param null|int $component (e.g. address) (null if all are acceptable)
* @param int $permission Permission to check * @param int $permission Permission to check
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function __construct( public function __construct(
int $account = 0, int $account = 0,
@ -71,7 +71,7 @@ class AccountPermission extends PermissionAbstract
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getAccount() : int public function getAccount() : int
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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\DataStorage\Database\DataMapperAbstract;
/** /**
* Account permission mapper class. * Account permission mapper class.
* *
* @package Modules\Admin * @package Modules\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
*/ */
final class AccountPermissionMapper extends DataMapperAbstract final class AccountPermissionMapper extends DataMapperAbstract
{ {
@ -30,7 +30,7 @@ final class AccountPermissionMapper 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 = [
@ -49,7 +49,7 @@ final class AccountPermissionMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'account_permission'; protected static string $table = 'account_permission';
@ -57,7 +57,7 @@ final class AccountPermissionMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'account_permission_id'; protected static string $primaryField = 'account_permission_id';

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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);
@ -17,17 +17,17 @@ namespace Modules\Admin\Models;
/** /**
* Account group class. * Account group class.
* *
* @package Modules\Admin * @package Modules\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 Group extends \phpOMS\Account\Group class Group extends \phpOMS\Account\Group
{ {
/** /**
* Created at. * Created at.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
protected ?\DateTime $createdAt = null; protected ?\DateTime $createdAt = null;
@ -35,7 +35,7 @@ class Group extends \phpOMS\Account\Group
/** /**
* Created by. * Created by.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected $createdBy = 0; protected $createdBy = 0;
@ -43,7 +43,7 @@ class Group extends \phpOMS\Account\Group
/** /**
* Group raw description. * Group raw description.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected string $descriptionRaw = ''; protected string $descriptionRaw = '';
@ -51,7 +51,7 @@ class Group extends \phpOMS\Account\Group
/** /**
* Accounts * Accounts
* *
* @var array * @var array
* @since 1.0.0 * @since 1.0.0
*/ */
protected array $accounts = []; protected array $accounts = [];
@ -61,7 +61,7 @@ class Group extends \phpOMS\Account\Group
* *
* @param string $name Group name * @param string $name Group name
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function __construct(string $name = '') public function __construct(string $name = '')
{ {
@ -74,7 +74,7 @@ class Group extends \phpOMS\Account\Group
* *
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedAt() : \DateTime public function getCreatedAt() : \DateTime
{ {
@ -86,7 +86,7 @@ class Group extends \phpOMS\Account\Group
* *
* @return int|\phpOMS\Account\Account * @return int|\phpOMS\Account\Account
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedBy() public function getCreatedBy()
{ {
@ -100,7 +100,7 @@ class Group extends \phpOMS\Account\Group
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setCreatedBy($createdBy) : void public function setCreatedBy($createdBy) : void
{ {
@ -114,7 +114,7 @@ class Group extends \phpOMS\Account\Group
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDescriptionRaw(string $description) : void public function setDescriptionRaw(string $description) : void
{ {
@ -126,7 +126,7 @@ class Group extends \phpOMS\Account\Group
* *
* @return string Raw description * @return string Raw description
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDescriptionRaw() : string public function getDescriptionRaw() : string
{ {
@ -138,7 +138,7 @@ class Group extends \phpOMS\Account\Group
* *
* @return array Accounts * @return array Accounts
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getAccounts() : array public function getAccounts() : array
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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\DataStorage\Database\DataMapperAbstract;
/** /**
* Group mapper class. * Group mapper class.
* *
* @package Modules\Admin * @package Modules\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
*/ */
final class GroupMapper extends DataMapperAbstract final class GroupMapper extends DataMapperAbstract
{ {
@ -30,7 +30,7 @@ final class GroupMapper 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 GroupMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'group'; protected static string $table = 'group';
@ -53,7 +53,7 @@ final class GroupMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'group_id'; protected static string $primaryField = 'group_id';
@ -61,7 +61,7 @@ final class GroupMapper extends DataMapperAbstract
/** /**
* Created at column * Created at column
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $createdAt = 'group_created'; protected static string $createdAt = 'group_created';
@ -69,12 +69,12 @@ final class GroupMapper 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
*/ /** */ /**
* 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 = [
@ -93,7 +93,7 @@ final class GroupMapper extends DataMapperAbstract
* *
* @return array * @return array
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function getPermissionForModule(string $module) : array public static function getPermissionForModule(string $module) : array
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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);
@ -22,17 +22,17 @@ use phpOMS\Account\PermissionType;
* *
* A single permission for a group consisting of read, create, modify, delete and permission flags. * A single permission for a group consisting of read, create, modify, delete and permission flags.
* *
* @package Modules\Admin * @package Modules\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 GroupPermission extends PermissionAbstract class GroupPermission extends PermissionAbstract
{ {
/** /**
* Group id * Group id
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $group = 0; private int $group = 0;
@ -49,7 +49,7 @@ class GroupPermission extends PermissionAbstract
* @param null|int $component (e.g. address) (null if all are acceptable) * @param null|int $component (e.g. address) (null if all are acceptable)
* @param int $permission Permission to check * @param int $permission Permission to check
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function __construct( public function __construct(
int $group = 0, int $group = 0,
@ -71,7 +71,7 @@ class GroupPermission extends PermissionAbstract
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getGroup() : int public function getGroup() : int
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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\DataStorage\Database\DataMapperAbstract;
/** /**
* Group permission mapper class. * Group permission mapper class.
* *
* @package Modules\Admin * @package Modules\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
*/ */
final class GroupPermissionMapper extends DataMapperAbstract final class GroupPermissionMapper extends DataMapperAbstract
{ {
@ -30,7 +30,7 @@ final class GroupPermissionMapper 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 = [
@ -49,7 +49,7 @@ final class GroupPermissionMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'group_permission'; protected static string $table = 'group_permission';
@ -57,7 +57,7 @@ final class GroupPermissionMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'group_permission_id'; protected static string $primaryField = 'group_permission_id';

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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\ModuleStatus;
/** /**
* Module class. * Module class.
* *
* @package Modules\Admin * @package Modules\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 Module class Module
{ {
@ -30,7 +30,7 @@ class Module
/** /**
* Account id. * Account id.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $id = 0; protected int $id = 0;
@ -38,7 +38,7 @@ class Module
/** /**
* Account name. * Account name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected string $name = ''; protected string $name = '';
@ -46,7 +46,7 @@ class Module
/** /**
* Account name. * Account name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected string $description = ''; protected string $description = '';
@ -54,7 +54,7 @@ class Module
/** /**
* Group status. * Group status.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $status = ModuleStatus::INACTIVE; protected int $status = ModuleStatus::INACTIVE;
@ -62,7 +62,7 @@ class Module
/** /**
* Created at. * Created at.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
protected ?\DateTime $createdAt = null; protected ?\DateTime $createdAt = null;
@ -70,7 +70,7 @@ class Module
/** /**
* Constructor. * Constructor.
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function __construct() public function __construct()
{ {
@ -82,7 +82,7 @@ class Module
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getId() : int public function getId() : int
{ {
@ -94,7 +94,7 @@ class Module
* *
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedAt() : \DateTime public function getCreatedAt() : \DateTime
{ {
@ -106,7 +106,7 @@ class Module
* *
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getName() : string public function getName() : string
{ {
@ -120,7 +120,7 @@ class Module
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setName(string $name) : void public function setName(string $name) : void
{ {
@ -132,7 +132,7 @@ class Module
* *
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDescription() : string public function getDescription() : string
{ {
@ -146,7 +146,7 @@ class Module
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDescription(string $description) : void public function setDescription(string $description) : void
{ {
@ -158,7 +158,7 @@ class Module
* *
* @return int Module status * @return int Module status
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getStatus() : int public function getStatus() : int
{ {
@ -172,7 +172,7 @@ class Module
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setStatus(int $status) : void public function setStatus(int $status) : void
{ {
@ -185,7 +185,7 @@ class Module
* *
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function __toString() public function __toString()
{ {
@ -197,7 +197,7 @@ class Module
* *
* @return array<string, int|string> * @return array<string, int|string>
* *
* @since 1.0.0 * @since 1.0.0
*/ */
/** /**
* {@inheritdoc} * {@inheritdoc}
@ -212,7 +212,7 @@ class Module
* *
* @return array<string, int|string> * @return array<string, int|string>
* *
* @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 Modules\Admin * @package Modules\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\DataStorage\Database\DataMapperAbstract;
/** /**
* Module mapper class. * Module mapper class.
* *
* @package Modules\Admin * @package Modules\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
*/ */
final class ModuleMapper extends DataMapperAbstract final class ModuleMapper extends DataMapperAbstract
{ {
@ -30,7 +30,7 @@ final class ModuleMapper 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 ModuleMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'module'; protected static string $table = 'module';
@ -49,7 +49,7 @@ final class ModuleMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'module_id'; protected static string $primaryField = 'module_id';

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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\Stdlib\Base\Enum;
/** /**
* Permision state enum. * Permision state enum.
* *
* @package Modules\Admin * @package Modules\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
*/ */
abstract class ModuleStatusUpdateType extends Enum abstract class ModuleStatusUpdateType extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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);
@ -17,10 +17,10 @@ namespace Modules\Admin\Models;
/** /**
* Null model * Null model
* *
* @package Modules\Admin * @package Modules\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 NullAccount extends Account class NullAccount extends Account
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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);
@ -17,10 +17,10 @@ namespace Modules\Admin\Models;
/** /**
* Null model * Null model
* *
* @package Modules\Admin * @package Modules\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 NullAccountPermission extends AccountPermission class NullAccountPermission extends AccountPermission
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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);
@ -17,10 +17,10 @@ namespace Modules\Admin\Models;
/** /**
* Null model * Null model
* *
* @package Modules\Admin * @package Modules\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 NullGroup extends Group class NullGroup extends Group
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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);
@ -17,10 +17,10 @@ namespace Modules\Admin\Models;
/** /**
* Null model * Null model
* *
* @package Modules\Admin * @package Modules\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 NullGroupPermission extends GroupPermission class NullGroupPermission extends GroupPermission
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin * @package Modules\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\Stdlib\Base\Enum;
/** /**
* Permision state enum. * Permision state enum.
* *
* @package Modules\Admin * @package Modules\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
*/ */
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 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 GroupTagSelectorPopupView extends View class GroupTagSelectorPopupView 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 GroupTagSelectorView extends View class GroupTagSelectorView extends View

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin\Language\Backend * @package Modules\Admin\Language\Backend
* @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 [ return [
'Navigation' => [ 'Navigation' => [

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin\Language\Backend * @package Modules\Admin\Language\Backend
* @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 Modules\Admin\Language\Backend * @package Modules\Admin\Language\Backend
* @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 [ return [
'Admin' => [ 'Admin' => [

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin\Template\Backend * @package Modules\Admin\Template\Backend
* @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 Modules\Admin\Template\Backend * @package Modules\Admin\Template\Backend
* @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 \phpOMS\Account\AccountStatus; use \phpOMS\Account\AccountStatus;

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin\Template\Backend * @package Modules\Admin\Template\Backend
* @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 phpOMS\Account\AccountStatus; use phpOMS\Account\AccountStatus;

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin\Template\Backend * @package Modules\Admin\Template\Backend
* @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 Modules\Admin\Template\Backend * @package Modules\Admin\Template\Backend
* @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 Modules\Admin\Template\Backend * @package Modules\Admin\Template\Backend
* @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 Modules\Admin\Template\Backend * @package Modules\Admin\Template\Backend
* @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 phpOMS\Module\ModuleStatus; use phpOMS\Module\ModuleStatus;

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin\Template\Backend * @package Modules\Admin\Template\Backend
* @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\Admin\Models\ModuleStatusUpdateType; use Modules\Admin\Models\ModuleStatusUpdateType;

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Admin\Template\Backend * @package Modules\Admin\Template\Backend
* @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\Organization\Models\UnitMapper; use Modules\Organization\Models\UnitMapper;