mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-05 10:48:41 +00:00
phpcs fix
This commit is contained in:
parent
73a0064083
commit
0c3c479696
|
|
@ -30,7 +30,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module path.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public const MODULE_PATH = __DIR__ . '/../';
|
||||
|
|
@ -38,7 +38,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module version.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public const MODULE_VERSION = '1.0.0';
|
||||
|
|
@ -46,7 +46,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module name.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public const MODULE_NAME = 'Profile';
|
||||
|
|
@ -54,7 +54,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module id.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public const MODULE_ID = 1000300000;
|
||||
|
|
@ -62,7 +62,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Providing.
|
||||
*
|
||||
* @var string[]
|
||||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $providing = [];
|
||||
|
|
@ -70,7 +70,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Dependencies.
|
||||
*
|
||||
* @var string[]
|
||||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $dependencies = [];
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class ContactElement
|
|||
/**
|
||||
* ID.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected int $id = 0;
|
||||
|
|
@ -37,7 +37,7 @@ class ContactElement
|
|||
/**
|
||||
* Description.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $description = '';
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ final class ContactElementMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Columns.
|
||||
*
|
||||
* @var array<string, array<string, bool|string>>
|
||||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $columns = [
|
||||
|
|
@ -39,7 +39,7 @@ final class ContactElementMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary table.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $table = 'profile_contact';
|
||||
|
|
@ -47,7 +47,7 @@ final class ContactElementMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary field name.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $primaryField = 'profile_contact_id';
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class Profile implements \JsonSerializable
|
|||
/**
|
||||
* Id.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected int $id = 0;
|
||||
|
|
@ -42,7 +42,7 @@ class Profile implements \JsonSerializable
|
|||
/**
|
||||
* Profile image.
|
||||
*
|
||||
* @var null|int|Media
|
||||
* @var null|int|Media
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $image = null;
|
||||
|
|
@ -50,7 +50,7 @@ class Profile implements \JsonSerializable
|
|||
/**
|
||||
* Birthday.
|
||||
*
|
||||
* @var \DateTime
|
||||
* @var \DateTime
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected \DateTime $birthday;
|
||||
|
|
@ -58,7 +58,7 @@ class Profile implements \JsonSerializable
|
|||
/**
|
||||
* Account.
|
||||
*
|
||||
* @var Account
|
||||
* @var Account
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $account = null;
|
||||
|
|
@ -66,7 +66,7 @@ class Profile implements \JsonSerializable
|
|||
/**
|
||||
* Location data.
|
||||
*
|
||||
* @var Location[]
|
||||
* @var Location[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected array $location = [];
|
||||
|
|
|
|||
|
|
@ -14,10 +14,10 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\Profile\Models;
|
||||
|
||||
use Modules\Address\Models\AddressMapper;
|
||||
use Modules\Admin\Models\AccountMapper;
|
||||
use Modules\Media\Models\MediaMapper;
|
||||
use phpOMS\DataStorage\Database\DataMapperAbstract;
|
||||
use Modules\Address\Models\AddressMapper;
|
||||
|
||||
/**
|
||||
* Profile mapper.
|
||||
|
|
@ -32,7 +32,7 @@ final class ProfileMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Columns.
|
||||
*
|
||||
* @var array<string, array<string, bool|string|array>>
|
||||
* @var array<string, array<string, bool|string|array>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $columns = [
|
||||
|
|
@ -45,7 +45,7 @@ final class ProfileMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Has one relation.
|
||||
*
|
||||
* @var array<string, array<string, string>>
|
||||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $ownsOne = [
|
||||
|
|
@ -62,7 +62,7 @@ final class ProfileMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Has many relation.
|
||||
*
|
||||
* @var array<string, array<string, null|string>>
|
||||
* @var array<string, array<string, null|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $hasMany = [
|
||||
|
|
@ -77,7 +77,7 @@ final class ProfileMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary table.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $table = 'profile_account';
|
||||
|
|
@ -85,7 +85,7 @@ final class ProfileMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary field name.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $primaryField = 'profile_account_id';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user