Completed
Push — master ( b9da94...8c68f1 )
by Christoph
32:26 queued 14s
created
lib/private/Calendar/Manager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -174,12 +174,12 @@  discard block
 block discarded – undo
174 174
 		}
175 175
 
176 176
 		return array_merge(
177
-			...array_map(function ($registration) use ($principalUri, $calendarUris) {
177
+			...array_map(function($registration) use ($principalUri, $calendarUris) {
178 178
 				try {
179 179
 					/** @var ICalendarProvider $provider */
180 180
 					$provider = $this->container->get($registration->getService());
181 181
 				} catch (Throwable $e) {
182
-					$this->logger->error('Could not load calendar provider ' . $registration->getService() . ': ' . $e->getMessage(), [
182
+					$this->logger->error('Could not load calendar provider '.$registration->getService().': '.$e->getMessage(), [
183 183
 						'exception' => $e,
184 184
 					]);
185 185
 					return [];
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 		}
404 404
 
405 405
 		if (empty($found)) {
406
-			$this->logger->warning('iMip message event could not be processed because no corresponding event was found in any calendar ' . $principalUri . 'and UID' . $vEvent->{'UID'}->getValue());
406
+			$this->logger->warning('iMip message event could not be processed because no corresponding event was found in any calendar '.$principalUri.'and UID'.$vEvent->{'UID'}->getValue());
407 407
 			return false;
408 408
 		}
409 409
 
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
 		}
519 519
 
520 520
 		if (empty($found)) {
521
-			$this->logger->warning('iMip message event could not be processed because no corresponding event was found in any calendar ' . $principalUri . 'and UID' . $vEvent->{'UID'}->getValue());
521
+			$this->logger->warning('iMip message event could not be processed because no corresponding event was found in any calendar '.$principalUri.'and UID'.$vEvent->{'UID'}->getValue());
522 522
 			return false;
523 523
 		}
524 524
 
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
 		IUser $organizer,
543 543
 		array $attendees,
544 544
 	): array {
545
-		$organizerMailto = 'mailto:' . $organizer->getEMailAddress();
545
+		$organizerMailto = 'mailto:'.$organizer->getEMailAddress();
546 546
 		$request = new VCalendar();
547 547
 		$request->METHOD = 'REQUEST';
548 548
 		$request->add('VFREEBUSY', [
Please login to merge, or discard this patch.
tests/lib/Calendar/ManagerTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1077,7 +1077,7 @@  discard block
 block discarded – undo
1077 1077
 		$calendarData->add('METHOD', 'REPLY');
1078 1078
 		// construct logger return
1079 1079
 		$this->logger->expects(self::once())->method('warning')
1080
-			->with('iMip message event could not be processed because no corresponding event was found in any calendar ' . $principalUri . 'and UID' . $calendarData->VEVENT->UID->getValue());
1080
+			->with('iMip message event could not be processed because no corresponding event was found in any calendar '.$principalUri.'and UID'.$calendarData->VEVENT->UID->getValue());
1081 1081
 		// Act
1082 1082
 		$result = $manager->handleIMipReply($principalUri, $sender, $recipient, $calendarData->serialize());
1083 1083
 		// Assert
@@ -1525,7 +1525,7 @@  discard block
 block discarded – undo
1525 1525
 		$calendarData->add('METHOD', 'CANCEL');
1526 1526
 		// construct logger return
1527 1527
 		$this->logger->expects(self::once())->method('warning')
1528
-			->with('iMip message event could not be processed because no corresponding event was found in any calendar ' . $principalUri . 'and UID' . $calendarData->VEVENT->UID->getValue());
1528
+			->with('iMip message event could not be processed because no corresponding event was found in any calendar '.$principalUri.'and UID'.$calendarData->VEVENT->UID->getValue());
1529 1529
 		// Act
1530 1530
 		$result = $manager->handleIMipCancel($principalUri, $sender, $replyTo, $recipient, $calendarData->serialize());
1531 1531
 		// Assert
@@ -1732,12 +1732,12 @@  discard block
 block discarded – undo
1732 1732
 			->willReturn($authPlugin);
1733 1733
 		$server->expects(self::once())
1734 1734
 			->method('invokeMethod')
1735
-			->willReturnCallback(function (
1735
+			->willReturnCallback(function(
1736 1736
 				RequestInterface $request,
1737 1737
 				ResponseInterface $response,
1738 1738
 				bool $sendResponse,
1739 1739
 			) {
1740
-				$requestBody = file_get_contents(__DIR__ . '/../../data/ics/free-busy-request.ics');
1740
+				$requestBody = file_get_contents(__DIR__.'/../../data/ics/free-busy-request.ics');
1741 1741
 				$this->assertEquals('POST', $request->getMethod());
1742 1742
 				$this->assertEquals('calendars/admin/outbox', $request->getPath());
1743 1743
 				$this->assertEquals('text/calendar', $request->getHeader('Content-Type'));
@@ -1799,12 +1799,12 @@  discard block
 block discarded – undo
1799 1799
 			->willReturn($authPlugin);
1800 1800
 		$server->expects(self::once())
1801 1801
 			->method('invokeMethod')
1802
-			->willReturnCallback(function (
1802
+			->willReturnCallback(function(
1803 1803
 				RequestInterface $request,
1804 1804
 				ResponseInterface $response,
1805 1805
 				bool $sendResponse,
1806 1806
 			) {
1807
-				$requestBody = file_get_contents(__DIR__ . '/../../data/ics/free-busy-request.ics');
1807
+				$requestBody = file_get_contents(__DIR__.'/../../data/ics/free-busy-request.ics');
1808 1808
 				$this->assertEquals('POST', $request->getMethod());
1809 1809
 				$this->assertEquals('calendars/admin/outbox', $request->getPath());
1810 1810
 				$this->assertEquals('text/calendar', $request->getHeader('Content-Type'));
Please login to merge, or discard this patch.