Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
style(caldav): improve getDenormalizedData method
Signed-off-by: Thomas Citharel <[email protected]>
  • Loading branch information
tcitworld committed Jun 29, 2023
commit 34c8f5da2dfc4b2760c1e6ba2679e5e3febc64f8
4 changes: 2 additions & 2 deletions apps/dav/lib/CalDAV/CalDavBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -2712,7 +2712,7 @@ protected function addChange($calendarId, $objectUri, $operation, $calendarType
* @param string $calendarData
* @return array
*/
public function getDenormalizedData($calendarData) {
public function getDenormalizedData(string $calendarData): array {
$vObject = Reader::read($calendarData);
$vEvents = [];
$componentType = null;
Expand All @@ -2726,7 +2726,7 @@ public function getDenormalizedData($calendarData) {
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;
}
Expand Down