Completed
Push — master ( 88ba65...9a0892 )
by Christoph
24:20
created
lib/private/Calendar/Manager.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -175,12 +175,12 @@  discard block
 block discarded – undo
175 175
 		}
176 176
 
177 177
 		return array_merge(
178
-			...array_map(function ($registration) use ($principalUri, $calendarUris) {
178
+			...array_map(function($registration) use ($principalUri, $calendarUris) {
179 179
 				try {
180 180
 					/** @var ICalendarProvider $provider */
181 181
 					$provider = $this->container->get($registration->getService());
182 182
 				} catch (Throwable $e) {
183
-					$this->logger->error('Could not load calendar provider ' . $registration->getService() . ': ' . $e->getMessage(), [
183
+					$this->logger->error('Could not load calendar provider '.$registration->getService().': '.$e->getMessage(), [
184 184
 						'exception' => $e,
185 185
 					]);
186 186
 					return [];
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 		array $options = [],
233 233
 	): bool {
234 234
 
235
-		$userUri = 'principals/users/' . $userId;
235
+		$userUri = 'principals/users/'.$userId;
236 236
 
237 237
 		$userCalendars = $this->getCalendarsForPrincipal($userUri);
238 238
 		if (empty($userCalendars)) {
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
 		IUser $organizer,
389 389
 		array $attendees,
390 390
 	): array {
391
-		$organizerMailto = 'mailto:' . $organizer->getEMailAddress();
391
+		$organizerMailto = 'mailto:'.$organizer->getEMailAddress();
392 392
 		$request = new VCalendar();
393 393
 		$request->METHOD = 'REQUEST';
394 394
 		$request->add('VFREEBUSY', [
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
 		// determine if the principal has a default calendar configured
470 470
 		$properties = $this->propertyMapper->findPropertyByPathAndName(
471 471
 			$userId,
472
-			'principals/users/' . $userId,
472
+			'principals/users/'.$userId,
473 473
 			'{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL'
474 474
 		);
475 475
 		if ($properties === []) {
@@ -477,14 +477,14 @@  discard block
 block discarded – undo
477 477
 		}
478 478
 		// extract the calendar URI from the property value
479 479
 		$propertyValue = $properties[0]->getPropertyvalue() ?? null;
480
-		if (str_starts_with($propertyValue, 'calendars/' . $userId)) {
481
-			$calendarUri = rtrim(str_replace('calendars/' . $userId . '/', '', $propertyValue), '/');
480
+		if (str_starts_with($propertyValue, 'calendars/'.$userId)) {
481
+			$calendarUri = rtrim(str_replace('calendars/'.$userId.'/', '', $propertyValue), '/');
482 482
 		}
483 483
 		if (empty($calendarUri)) {
484 484
 			return null;
485 485
 		}
486 486
 		// retrieve the calendar by URI
487
-		$calendars = $this->getCalendarsForPrincipal('principals/users/' . $userId, [$calendarUri]);
487
+		$calendars = $this->getCalendarsForPrincipal('principals/users/'.$userId, [$calendarUri]);
488 488
 		if ($calendars === []) {
489 489
 			return null;
490 490
 		}
Please login to merge, or discard this patch.