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/MemberAdd.php 1 location

@@ 596-602 (lines=7) @@
593
	 * @param IEMailTemplate $emailTemplate
594
	 * @param array $links
595
	 */
596
	private function fillMailExistingShares(IEMailTemplate $emailTemplate, array $links) {
597
		foreach ($links as $item) {
598
			$emailTemplate->addBodyButton(
599
				$this->l10n->t('Open »%s«', [htmlspecialchars($item['filename'])]), $item['link']
600
			);
601
		}
602
	}
603
604
605
	/**