mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
style(caldav): improve getDenormalizedData method
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
4acc015e34
commit
34c8f5da2d
1 changed files with 2 additions and 2 deletions
|
|
@ -2712,7 +2712,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;
|
||||
|
|
@ -2726,7 +2726,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue