aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/EventReader.php
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-09-19 11:10:31 +0200
committerprovokateurin <kate@provokateurin.de>2024-09-19 14:21:20 +0200
commit9836e9b16484582d309c8437ab46d82e34956941 (patch)
treed3da87bb7dfd1a8877ed25072ecf609def844089 /apps/dav/lib/CalDAV/EventReader.php
parent8c60ffa0f21414e6e671c567d664a9b9e5253e26 (diff)
downloadnextcloud-server-9836e9b16484582d309c8437ab46d82e34956941.tar.gz
nextcloud-server-9836e9b16484582d309c8437ab46d82e34956941.zip
chore(deps): Update nextcloud/coding-standard to v1.3.1
Signed-off-by: provokateurin <kate@provokateurin.de>
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 {