Completed
Push — master ( ef2e71...d39ae9 )
by Daniel
27:45 queued 10s
created
lib/private/Calendar/Manager.php 1 patch
Spacing   +9 added lines, -9 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)) {
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 		if (!isset($vEvent->ORGANIZER)) {
264 264
 			// quirks mode: for Microsoft Exchange Servers use recipient as organizer if no organizer is set
265 265
 			if (isset($options['recipient']) && $options['recipient'] !== '') {
266
-				$vEvent->add('ORGANIZER', 'mailto:' . $options['recipient']);
266
+				$vEvent->add('ORGANIZER', 'mailto:'.$options['recipient']);
267 267
 			} else {
268 268
 				$this->logger->warning('iMip message event does not contain an organizer and no recipient was provided');
269 269
 				return false;
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
 		IUser $organizer,
397 397
 		array $attendees,
398 398
 	): array {
399
-		$organizerMailto = 'mailto:' . $organizer->getEMailAddress();
399
+		$organizerMailto = 'mailto:'.$organizer->getEMailAddress();
400 400
 		$request = new VCalendar();
401 401
 		$request->METHOD = 'REQUEST';
402 402
 		$request->add('VFREEBUSY', [
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
 		// determine if the principal has a default calendar configured
478 478
 		$properties = $this->propertyMapper->findPropertyByPathAndName(
479 479
 			$userId,
480
-			'principals/users/' . $userId,
480
+			'principals/users/'.$userId,
481 481
 			'{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL'
482 482
 		);
483 483
 		if ($properties === []) {
@@ -485,14 +485,14 @@  discard block
 block discarded – undo
485 485
 		}
486 486
 		// extract the calendar URI from the property value
487 487
 		$propertyValue = $properties[0]->getPropertyvalue() ?? null;
488
-		if (str_starts_with($propertyValue, 'calendars/' . $userId)) {
489
-			$calendarUri = rtrim(str_replace('calendars/' . $userId . '/', '', $propertyValue), '/');
488
+		if (str_starts_with($propertyValue, 'calendars/'.$userId)) {
489
+			$calendarUri = rtrim(str_replace('calendars/'.$userId.'/', '', $propertyValue), '/');
490 490
 		}
491 491
 		if (empty($calendarUri)) {
492 492
 			return null;
493 493
 		}
494 494
 		// retrieve the calendar by URI
495
-		$calendars = $this->getCalendarsForPrincipal('principals/users/' . $userId, [$calendarUri]);
495
+		$calendars = $this->getCalendarsForPrincipal('principals/users/'.$userId, [$calendarUri]);
496 496
 		if ($calendars === []) {
497 497
 			return null;
498 498
 		}
Please login to merge, or discard this patch.