phpcs fix

This commit is contained in:
Dennis Eichhorn 2020-01-26 12:27:56 +01:00
parent 8a5aad777b
commit 580e818a41
8 changed files with 51 additions and 51 deletions

View File

@ -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 = 'Calendar';
@ -54,7 +54,7 @@ class Controller extends ModuleAbstract implements WebInterface
/**
* Module id.
*
* @var int
* @var int
* @since 1.0.0
*/
public const MODULE_ID = 1000900000;
@ -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 = [];

View File

@ -29,7 +29,7 @@ class Calendar
/**
* Calendar ID.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $id = 0;
@ -37,7 +37,7 @@ class Calendar
/**
* Name.
*
* @var string
* @var string
* @since 1.0.0
*/
private string $name = '';
@ -45,7 +45,7 @@ class Calendar
/**
* Description.
*
* @var string
* @var string
* @since 1.0.0
*/
private string $description = '';
@ -53,7 +53,7 @@ class Calendar
/**
* Created at.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
private ?\DateTime $createdAt = null;
@ -61,7 +61,7 @@ class Calendar
/**
* Current date of the calendar.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
private ?\DateTime $date = null;
@ -69,7 +69,7 @@ class Calendar
/**
* Events.
*
* @var array<int, \Modules\Calendar\Models\Event>
* @var array<int, \Modules\Calendar\Models\Event>
* @since 1.0.0
*/
private $events = [];

View File

@ -33,7 +33,7 @@ final class CalendarMapper 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 = [
@ -46,7 +46,7 @@ final class CalendarMapper 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 = [
@ -61,7 +61,7 @@ final class CalendarMapper extends DataMapperAbstract
/**
* Primary table.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $table = 'calendar';
@ -69,7 +69,7 @@ final class CalendarMapper extends DataMapperAbstract
/**
* Created at.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $createdAt = 'calendar_created_at';
@ -77,7 +77,7 @@ final class CalendarMapper extends DataMapperAbstract
/**
* Primary field name.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $primaryField = 'calendar_id';

View File

@ -31,7 +31,7 @@ class Event
/**
* Calendar ID.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $id = 0;
@ -39,7 +39,7 @@ class Event
/**
* Name.
*
* @var string
* @var string
* @since 1.0.0
*/
private string $name = '';
@ -47,7 +47,7 @@ class Event
/**
* Description.
*
* @var string
* @var string
* @since 1.0.0
*/
private string $description = '';
@ -55,7 +55,7 @@ class Event
/**
* Created.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
private ?\DateTime $createdAt = null;
@ -63,7 +63,7 @@ class Event
/**
* Creator.
*
* @var int
* @var int
* @since 1.0.0
*/
private $createdBy = 0;
@ -73,7 +73,7 @@ class Event
*
* Single event or a template (templates have a repeating)
*
* @var int
* @var int
* @since 1.0.0
*/
private int $type = EventType::SINGLE;
@ -83,7 +83,7 @@ class Event
*
* Active, inactive etc.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $status = EventStatus::ACTIVE;
@ -91,7 +91,7 @@ class Event
/**
* Schedule
*
* @var null|int|Schedule
* @var null|int|Schedule
* @since 1.0.0
*/
private $schedule = null;
@ -99,7 +99,7 @@ class Event
/**
* Location of the event.
*
* @var Location
* @var Location
* @since 1.0.0
*/
private ?Location $location = null;
@ -107,7 +107,7 @@ class Event
/**
* Calendar
*
* @var int
* @var int
* @since 1.0.0
*/
private $calendar = null;
@ -115,7 +115,7 @@ class Event
/**
* People.
*
* @var array
* @var array
* @since 1.0.0
*/
private array $people = [];

View File

@ -29,7 +29,7 @@ final class EventMapper 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 = [
@ -48,7 +48,7 @@ final class EventMapper 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 = [
@ -61,7 +61,7 @@ final class EventMapper extends DataMapperAbstract
/**
* Primary table.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $table = 'calendar_event';
@ -69,7 +69,7 @@ final class EventMapper extends DataMapperAbstract
/**
* Created at.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $createdAt = 'calendar_event_created_at';
@ -77,7 +77,7 @@ final class EventMapper extends DataMapperAbstract
/**
* Primary field name.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $primaryField = 'calendar_event_id';

View File

@ -27,7 +27,7 @@ class EventTemplate extends Event
/**
* Type.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $type = EventType::TEMPLATE;

View File

@ -29,7 +29,7 @@ class Schedule
/**
* Schedule ID.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $id = 0;
@ -37,7 +37,7 @@ class Schedule
/**
* Calendar uid.
*
* @var string
* @var string
* @since 1.0.0
*/
private string $uid = '';
@ -45,7 +45,7 @@ class Schedule
/**
* Schedule status.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $status = ScheduleStatus::ACTIVE;
@ -53,7 +53,7 @@ class Schedule
/**
* Frequency type.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $freqType = FrequencyType::ONCE;
@ -61,7 +61,7 @@ class Schedule
/**
* Frequency interval.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $freqInterval = FrequencyInterval::DAY;
@ -69,7 +69,7 @@ class Schedule
/**
* Frequency relative.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $relativeInternal = FrequencyRelative::FIRST;
@ -77,7 +77,7 @@ class Schedule
/**
* Interval type.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $intervalType = IntervalType::ABSOLUTE;
@ -85,7 +85,7 @@ class Schedule
/**
* Recurrence factor.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $recurrenceFactor = 0;
@ -93,7 +93,7 @@ class Schedule
/**
* Start.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
private ?\DateTime $start = null;
@ -101,7 +101,7 @@ class Schedule
/**
* Duration.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $duration = 3600;
@ -109,7 +109,7 @@ class Schedule
/**
* End.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
private ?\DateTime $end = null;
@ -117,7 +117,7 @@ class Schedule
/**
* Created at.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
private ?\DateTime $createdAt = null;
@ -125,7 +125,7 @@ class Schedule
/**
* Created by.
*
* @var int
* @var int
* @since 1.0.0
*/
private $createdBy = 0;

View File

@ -29,7 +29,7 @@ final class ScheduleMapper 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 = [
@ -51,7 +51,7 @@ final class ScheduleMapper extends DataMapperAbstract
/**
* Primary table.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $table = 'schedule';
@ -59,7 +59,7 @@ final class ScheduleMapper extends DataMapperAbstract
/**
* Created at.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $createdAt = 'schedule_created_at';
@ -67,7 +67,7 @@ final class ScheduleMapper extends DataMapperAbstract
/**
* Primary field name.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $primaryField = 'schedule_id';