mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
style(caldav): improve getDenormalizedData method
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
c47942d653
commit
e08051dbbc
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue