mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-05-23 18:38:40 +00:00
phpcs fix
This commit is contained in:
parent
c0a90b73a4
commit
59a91f0e6b
|
|
@ -30,7 +30,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__ . '/../';
|
||||||
|
|
@ -38,7 +38,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';
|
||||||
|
|
@ -46,7 +46,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';
|
||||||
|
|
@ -54,7 +54,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;
|
||||||
|
|
@ -62,7 +62,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 = [];
|
||||||
|
|
@ -70,7 +70,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 = [];
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,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;
|
||||||
|
|
@ -35,7 +35,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;
|
||||||
|
|
@ -43,7 +43,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 = '';
|
||||||
|
|
@ -51,7 +51,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 = '';
|
||||||
|
|
@ -59,7 +59,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 = '';
|
||||||
|
|
@ -67,7 +67,7 @@ class Report implements \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Report created at.
|
* Report created at.
|
||||||
*
|
*
|
||||||
* @var \DateTime
|
* @var \DateTime
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected \DateTime $createdAt;
|
protected \DateTime $createdAt;
|
||||||
|
|
@ -75,7 +75,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;
|
||||||
|
|
@ -83,7 +83,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;
|
||||||
|
|
@ -91,7 +91,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;
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,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 = [
|
||||||
|
|
@ -48,7 +48,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 = [
|
||||||
|
|
@ -65,7 +65,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 = [
|
||||||
|
|
@ -78,7 +78,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';
|
||||||
|
|
@ -86,7 +86,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';
|
||||||
|
|
@ -94,7 +94,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';
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,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;
|
||||||
|
|
@ -35,7 +35,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;
|
||||||
|
|
@ -43,7 +43,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;
|
||||||
|
|
@ -51,7 +51,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;
|
||||||
|
|
@ -59,7 +59,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 = '';
|
||||||
|
|
@ -67,7 +67,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 = '';
|
||||||
|
|
@ -75,7 +75,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 = '';
|
||||||
|
|
@ -83,7 +83,7 @@ class Template implements \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Template created at.
|
* Template created at.
|
||||||
*
|
*
|
||||||
* @var \DateTime
|
* @var \DateTime
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected \DateTime $createdAt;
|
protected \DateTime $createdAt;
|
||||||
|
|
@ -91,7 +91,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;
|
||||||
|
|
@ -99,7 +99,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;
|
||||||
|
|
@ -107,7 +107,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 = [];
|
||||||
|
|
@ -115,7 +115,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 = [];
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,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 = [
|
||||||
|
|
@ -51,7 +51,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 = [
|
||||||
|
|
@ -64,7 +64,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 = [
|
||||||
|
|
@ -77,7 +77,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 = [
|
||||||
|
|
@ -92,7 +92,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';
|
||||||
|
|
@ -100,7 +100,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';
|
||||||
|
|
@ -108,7 +108,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';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user