Skip to content

Commit 8cd50cf

Browse files
Implement review comments
Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
1 parent cb5f267 commit 8cd50cf

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lib/Service/GoogleCalendarAPIService.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,9 @@ private function mapTime(array $obj): string {
107107
* @param array $eventColors The event colors mapping.
108108
*/
109109
private function generateEventData(array $e, array $events, string $ncCalId, array $eventColors): string {
110-
$objectUri = $e['id'];
111-
112110
$eventData = 'BEGIN:VEVENT' . "\n";
113111

114112
$eventData .= 'UID:' . $ncCalId . '-' . $e['iCalUID'] . "\n";
115-
/* $eventData .= 'UID:' . $ncCalId . '-' . $objectUri . "\n"; */
116113
if (isset($e['colorId'], $eventColors[$e['colorId']], $eventColors[$e['colorId']]['background'])) {
117114
$closestCssColor = $this->getClosestCssColor($eventColors[$e['colorId']]['background']);
118115
$eventData .= 'COLOR:' . $closestCssColor . "\n";
@@ -333,7 +330,6 @@ public function importCalendar(string $userId, string $calId, string $calName, ?
333330
}
334331

335332
date_default_timezone_set('UTC');
336-
$utcTimezone = new DateTimeZone('-0000');
337333
$allEvents = $this->config->getUserValue($userId, Application::APP_ID, 'consider_all_events', '1') === '1';
338334
$eventsGenerator = $this->getCalendarEvents($userId, $calId, $allEvents);
339335
$events = iterator_to_array($eventsGenerator);

0 commit comments

Comments
 (0)