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. * 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 = 'Calendar'; public const MODULE_NAME = 'Calendar';
@ -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 = 1000900000; public const MODULE_ID = 1000900000;
@ -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 = [];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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