Completed
Pull Request — master (#2050)
by
unknown
27s
created
lib/Service/CircleShareMailerService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	public function sendShareNotification(IShare $share, $circle): void {
46 46
 		if ($this->config->getSystemValueBool('sharing.enable_share_mail', true)) {
47 47
 			$circleMembers = $circle->getMembers();
48
-			$link = $this->urlGenerator->linkToRouteAbsolute('files_sharing.Accept.accept', ['shareId' => 'ocinternal:' . $share->getId()]);
48
+			$link = $this->urlGenerator->linkToRouteAbsolute('files_sharing.Accept.accept', ['shareId' => 'ocinternal:'.$share->getId()]);
49 49
 			foreach ($circleMembers as $member) {
50 50
 				if ($member->getUserType() != 1) {
51 51
 					continue;
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 			$initiatorEmail = $initiatorUser->getEMailAddress();
121 121
 			if ($initiatorEmail !== null) {
122 122
 				$message->setReplyTo([$initiatorEmail => $initiatorDisplayName]);
123
-				$emailTemplate->addFooter($instanceName . ($this->defaults->getSlogan() !== '' ? ' - ' . $this->defaults->getSlogan() : ''));
123
+				$emailTemplate->addFooter($instanceName.($this->defaults->getSlogan() !== '' ? ' - '.$this->defaults->getSlogan() : ''));
124 124
 			} else {
125 125
 				$emailTemplate->addFooter();
126 126
 			}
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 		$failedRecipients = $this->mailer->send($message);
134 134
 
135 135
 		if (!empty($failedRecipients)) {
136
-			$this->logger->error('Share notification mail could not be sent to: ' . implode(', ', $failedRecipients));
136
+			$this->logger->error('Share notification mail could not be sent to: '.implode(', ', $failedRecipients));
137 137
 			return;
138 138
 		}
139 139
 	}
Please login to merge, or discard this patch.
tests/unit/lib/Service/CircleShareMailerServiceTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@
 block discarded – undo
285 285
 
286 286
 	private function createL10NFactory(): \OCP\L10N\IFactory {
287 287
 		$l10n = $this->createMock(\OCP\IL10N::class);
288
-		$l10n->method('t')->willReturnCallback(function (string $text, array $params = []): string {
288
+		$l10n->method('t')->willReturnCallback(function(string $text, array $params = []): string {
289 289
 			return vsprintf($text, $params);
290 290
 		});
291 291
 
Please login to merge, or discard this patch.