aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2023-06-23 09:09:38 +0200
committerAnna (Rebase PR Action) <miaulalala@users.noreply.github.com>2023-06-27 11:16:47 +0000
commit1e390e198220cf21357f633a11cb4ced77d849d8 (patch)
treed3247dcf67a96523b43e8c059fe1493638250749 /apps/dav/lib/CalDAV
parent3886b00a333199dae86a39dc49c7e8180283149a (diff)
downloadnextcloud-server-1e390e198220cf21357f633a11cb4ced77d849d8.tar.gz
nextcloud-server-1e390e198220cf21357f633a11cb4ced77d849d8.zip
style(caldav): improve getDenormalizedData method
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/dav/lib/CalDAV')
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php
index fc23b6545e5..c57d3a2764f 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -2732,7 +2732,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
* @param string $calendarData
* @return array
*/
- public function getDenormalizedData($calendarData) {
+ public function getDenormalizedData(string $calendarData): array {
$vObject = Reader::read($calendarData);
$vEvents = [];
$componentType = null;
@@ -2746,7 +2746,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
if ($component->name !== 'VTIMEZONE') {
// Finding all VEVENTs, and track them
if ($component->name === 'VEVENT') {
- array_push($vEvents, $component);
+ $vEvents[] = $component;
if ($component->DTSTART) {
$hasDTSTART = true;
}