mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-15 12:08:40 +00:00
phpcs fix
This commit is contained in:
parent
401ca50d2c
commit
f6367a6e71
|
|
@ -41,7 +41,7 @@ final class Installer extends InstallerAbstract
|
||||||
$sqlite = new SQLiteConnection([
|
$sqlite = new SQLiteConnection([
|
||||||
'db' => 'sqlite',
|
'db' => 'sqlite',
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
'database' => __DIR__ . '/../../../phpOMS/Localization/Defaults/localization.sqlite'
|
'database' => __DIR__ . '/../../../phpOMS/Localization/Defaults/localization.sqlite',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
self::installLanguages($sqlite, $dbPool);
|
self::installLanguages($sqlite, $dbPool);
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,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__ . '/../';
|
||||||
|
|
@ -40,7 +40,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';
|
||||||
|
|
@ -48,7 +48,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';
|
||||||
|
|
@ -56,7 +56,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;
|
||||||
|
|
@ -64,7 +64,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 = [];
|
||||||
|
|
@ -72,7 +72,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 = [];
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ 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;
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ 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';
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ 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;
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,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 = [
|
||||||
|
|
@ -48,7 +48,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';
|
||||||
|
|
@ -56,7 +56,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';
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class Group extends \phpOMS\Account\Group
|
||||||
/**
|
/**
|
||||||
* Created at.
|
* Created at.
|
||||||
*
|
*
|
||||||
* @var \DateTime
|
* @var \DateTime
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected \DateTime $createdAt;
|
protected \DateTime $createdAt;
|
||||||
|
|
@ -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 = [];
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,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 = [
|
||||||
|
|
@ -44,7 +44,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';
|
||||||
|
|
@ -52,7 +52,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';
|
||||||
|
|
@ -60,7 +60,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';
|
||||||
|
|
@ -68,12 +68,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 = [
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ 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;
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,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 = [
|
||||||
|
|
@ -48,7 +48,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';
|
||||||
|
|
@ -56,7 +56,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';
|
||||||
|
|
|
||||||
|
|
@ -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 \DateTime
|
* @var \DateTime
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected \DateTime $createdAt;
|
protected \DateTime $createdAt;
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,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 = [
|
||||||
|
|
@ -40,7 +40,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';
|
||||||
|
|
@ -48,7 +48,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';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user