Code Duplication    Length = 7-13 lines in 3 locations

lib/Circles/FileSharingBroadcaster.php 1 location

@@ 743-755 (lines=13) @@
740
	 * @param IEMailTemplate $emailTemplate
741
	 * @param array $data
742
	 */
743
	protected function fillMailExistingShares(IEMailTemplate $emailTemplate, array $data) {
744
		foreach ($data as $item) {
745
//			$text = $this->l10n->t('%s shared »%s« with you.', [$item['author'], $item['filename']]);
746
//			$emailTemplate->addBodyText(
747
//				htmlspecialchars($text) . '<br>' . htmlspecialchars(
748
//					$this->l10n->t('Click the button below to open it.')
749
//				), $text
750
//			);
751
			$emailTemplate->addBodyButton(
752
				$this->l10n->t('Open »%s«', [htmlspecialchars($item['filename'])]), $item['link']
753
			);
754
		}
755
	}
756
757
758
	/**

lib/GlobalScale/MemberAdd.php 1 location

@@ 342-348 (lines=7) @@
339
	 * @param IEMailTemplate $emailTemplate
340
	 * @param array $links
341
	 */
342
	private function fillMailExistingShares(IEMailTemplate $emailTemplate, array $links) {
343
		foreach ($links as $item) {
344
			$emailTemplate->addBodyButton(
345
				$this->l10n->t('Open »%s«', [htmlspecialchars($item['filename'])]), $item['link']
346
			);
347
		}
348
	}
349
350
351
	/**

lib/FederatedItems/SingleMemberAdd.php 1 location

@@ 703-709 (lines=7) @@
700
	 * @param IEMailTemplate $emailTemplate
701
	 * @param array $links
702
	 */
703
	private function fillMailExistingShares(IEMailTemplate $emailTemplate, array $links) {
704
		foreach ($links as $item) {
705
			$emailTemplate->addBodyButton(
706
				$this->l10n->t('Open »%s«', [htmlspecialchars($item['filename'])]), $item['link']
707
			);
708
		}
709
	}
710
711
712
	/**