mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-15 07:48:41 +00:00
phpcs fix
This commit is contained in:
parent
74c9a094ed
commit
c8a7f44061
|
|
@ -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 = 'Organization';
|
public const MODULE_NAME = 'Organization';
|
||||||
|
|
@ -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 = 1004700000;
|
public const MODULE_ID = 1004700000;
|
||||||
|
|
@ -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 = [];
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ class Department implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Article ID.
|
* Article ID.
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected int $id = 0;
|
protected int $id = 0;
|
||||||
|
|
@ -37,7 +37,7 @@ class Department implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Name.
|
* Name.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected string $name = '';
|
protected string $name = '';
|
||||||
|
|
@ -45,7 +45,7 @@ class Department implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Parent
|
* Parent
|
||||||
*
|
*
|
||||||
* @var mixed
|
* @var mixed
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $parent = null;
|
protected $parent = null;
|
||||||
|
|
@ -53,7 +53,7 @@ class Department implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Status
|
* Status
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected int $status = Status::INACTIVE;
|
protected int $status = Status::INACTIVE;
|
||||||
|
|
@ -61,7 +61,7 @@ class Department implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Unit this department belongs to
|
* Unit this department belongs to
|
||||||
*
|
*
|
||||||
* @var mixed
|
* @var mixed
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $unit = 1;
|
protected $unit = 1;
|
||||||
|
|
@ -69,7 +69,7 @@ class Department implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Description.
|
* Description.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected string $description = '';
|
protected string $description = '';
|
||||||
|
|
@ -77,7 +77,7 @@ class Department implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Description.
|
* Description.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected string $descriptionRaw = '';
|
protected string $descriptionRaw = '';
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ final class DepartmentMapper 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 DepartmentMapper 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 = [
|
||||||
|
|
@ -62,7 +62,7 @@ final class DepartmentMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Primary table.
|
* Primary table.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static string $table = 'organization_department';
|
protected static string $table = 'organization_department';
|
||||||
|
|
@ -70,7 +70,7 @@ final class DepartmentMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Primary field name.
|
* Primary field name.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static string $primaryField = 'organization_department_id';
|
protected static string $primaryField = 'organization_department_id';
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ class Position implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Article ID.
|
* Article ID.
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected int $id = 0;
|
protected int $id = 0;
|
||||||
|
|
@ -37,7 +37,7 @@ class Position implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Name.
|
* Name.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $name = '';
|
private string $name = '';
|
||||||
|
|
@ -45,7 +45,7 @@ class Position implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Parent
|
* Parent
|
||||||
*
|
*
|
||||||
* @var mixed
|
* @var mixed
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $parent = null;
|
private $parent = null;
|
||||||
|
|
@ -53,7 +53,7 @@ class Position implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Department
|
* Department
|
||||||
*
|
*
|
||||||
* @var mixed
|
* @var mixed
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $department = null;
|
private $department = null;
|
||||||
|
|
@ -61,7 +61,7 @@ class Position implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Description.
|
* Description.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $description = '';
|
private string $description = '';
|
||||||
|
|
@ -69,7 +69,7 @@ class Position implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Description.
|
* Description.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $descriptionRaw = '';
|
private string $descriptionRaw = '';
|
||||||
|
|
@ -77,7 +77,7 @@ class Position implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Status
|
* Status
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected int $status = Status::INACTIVE;
|
protected int $status = Status::INACTIVE;
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ final class PositionMapper 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 PositionMapper 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 = [
|
||||||
|
|
@ -62,7 +62,7 @@ final class PositionMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Primary table.
|
* Primary table.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static string $table = 'organization_position';
|
protected static string $table = 'organization_position';
|
||||||
|
|
@ -70,7 +70,7 @@ final class PositionMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Primary field name.
|
* Primary field name.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static string $primaryField = 'organization_position_id';
|
protected static string $primaryField = 'organization_position_id';
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Article ID.
|
* Article ID.
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private int $id = 0;
|
private int $id = 0;
|
||||||
|
|
@ -37,7 +37,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Name.
|
* Name.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $name = '';
|
private string $name = '';
|
||||||
|
|
@ -45,7 +45,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Parent
|
* Parent
|
||||||
*
|
*
|
||||||
* @var mixed
|
* @var mixed
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $parent = null;
|
private $parent = null;
|
||||||
|
|
@ -53,7 +53,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Description.
|
* Description.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $description = '';
|
private string $description = '';
|
||||||
|
|
@ -61,7 +61,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Description.
|
* Description.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected string $descriptionRaw = '';
|
protected string $descriptionRaw = '';
|
||||||
|
|
@ -69,7 +69,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Status
|
* Status
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected int $status = Status::INACTIVE;
|
protected int $status = Status::INACTIVE;
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ final class UnitMapper 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 UnitMapper 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 = [
|
||||||
|
|
@ -57,7 +57,7 @@ final class UnitMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Primary table.
|
* Primary table.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static string $table = 'organization_unit';
|
protected static string $table = 'organization_unit';
|
||||||
|
|
@ -65,7 +65,7 @@ final class UnitMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Primary field name.
|
* Primary field name.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static string $primaryField = 'organization_unit_id';
|
protected static string $primaryField = 'organization_unit_id';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user