summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2023-06-23 09:09:38 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-07-12 19:57:23 +0200
commit226027abf777d921eb30095e2f5fbcb914e940a8 (patch)
tree92bdaa3570db7fba1352dda60fe467493d4befd5 /apps
parentceca4cd0181849818f2a0f051c251d0d1e60d93d (diff)
downloadnextcloud-server-226027abf777d921eb30095e2f5fbcb914e940a8.tar.gz
nextcloud-server-226027abf777d921eb30095e2f5fbcb914e940a8.zip
style(caldav): improve getDenormalizedData method
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps')
-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 6dbcf0b16e1..f0fd29852bb 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -2700,7 +2700,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;
@@ -2714,7 +2714,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;
}