Code Duplication    Length = 9-9 lines in 2 locations

lib/GlobalScale/MemberAdd.php 1 location

@@ 328-336 (lines=9) @@
325
	 *
326
	 * @return IEMailTemplate
327
	 */
328
	private function generateMailExitingShares(string $author, string $circleName): IEMailTemplate {
329
		$emailTemplate = $this->mailer->createEMailTemplate('circles.ExistingShareNotification', []);
330
		$emailTemplate->addHeader();
331
332
		$text = $this->l10n->t('%s shared multiple files with \'%s\'.', [$author, $circleName]);
333
		$emailTemplate->addBodyText(htmlspecialchars($text), $text);
334
335
		return $emailTemplate;
336
	}
337
338
	/**
339
	 * @param IEMailTemplate $emailTemplate

lib/FederatedItems/MemberAdd.php 1 location

@@ 496-504 (lines=9) @@
493
	 *
494
	 * @return IEMailTemplate
495
	 */
496
	private function generateMailExitingShares(string $author, string $circleName): IEMailTemplate {
497
		$emailTemplate = $this->mailer->createEMailTemplate('circles.ExistingShareNotification', []);
498
		$emailTemplate->addHeader();
499
500
		$text = $this->l10n->t('%s shared multiple files with \'%s\'.', [$author, $circleName]);
501
		$emailTemplate->addBodyText(htmlspecialchars($text), $text);
502
503
		return $emailTemplate;
504
	}
505
506
	/**
507
	 * @param IEMailTemplate $emailTemplate