aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/EventReader.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/CalDAV/EventReader.php')
-rw-r--r--apps/dav/lib/CalDAV/EventReader.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/dav/lib/CalDAV/EventReader.php b/apps/dav/lib/CalDAV/EventReader.php
index bdceb184fb0..6e845c596ae 100644
--- a/apps/dav/lib/CalDAV/EventReader.php
+++ b/apps/dav/lib/CalDAV/EventReader.php
@@ -89,7 +89,7 @@ class EventReader {
$events = $input->getByUID($uid);
// evaluate if any event where found
if (count($events) === 0) {
- throw new InvalidArgumentException('This VCALENDAR did not have an event with UID: '.$uid);
+ throw new InvalidArgumentException('This VCALENDAR did not have an event with UID: ' . $uid);
}
// extract calendar timezone
if (isset($input->VTIMEZONE) && isset($input->VTIMEZONE->TZID)) {
@@ -297,7 +297,7 @@ class EventReader {
*
* @return string|null R - Relative or A - Absolute
*/
- public function recurringPattern(): string|null {
+ public function recurringPattern(): ?string {
if ($this->rruleIterator === null && $this->rdateIterator === null) {
return null;
}
@@ -314,7 +314,7 @@ class EventReader {
*
* @return string|null daily, weekly, monthly, yearly, fixed
*/
- public function recurringPrecision(): string|null {
+ public function recurringPrecision(): ?string {
if ($this->rruleIterator !== null) {
return $this->rruleIterator->precision();
}
@@ -331,7 +331,7 @@ class EventReader {
*
* @return int|null
*/
- public function recurringInterval(): int|null {
+ public function recurringInterval(): ?int {
return $this->rruleIterator?->interval();
}
@@ -374,7 +374,7 @@ class EventReader {
*
* @return int|null
*/
- public function recurringConcludesAfter(): int|null {
+ public function recurringConcludesAfter(): ?int {
// construct count place holder
$count = 0;
@@ -399,7 +399,7 @@ class EventReader {
*
* @return DateTime|null
*/
- public function recurringConcludesOn(): DateTime|null {
+ public function recurringConcludesOn(): ?DateTime {
if ($this->rruleIterator !== null) {
// retrieve rrule conclusion date
@@ -626,7 +626,7 @@ class EventReader {
*
* @return DateTime
*/
- public function recurrenceDate(): DateTime|null {
+ public function recurrenceDate(): ?DateTime {
if ($this->recurrenceCurrentDate !== null) {
return DateTime::createFromInterface($this->recurrenceCurrentDate);
} else {