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

@@ 582-588 (lines=7) @@
579
	 * @param IEMailTemplate $emailTemplate
580
	 * @param array $links
581
	 */
582
	private function fillMailExistingShares(IEMailTemplate $emailTemplate, array $links) {
583
		foreach ($links as $item) {
584
			$emailTemplate->addBodyButton(
585
				$this->l10n->t('Open »%s«', [htmlspecialchars($item['filename'])]), $item['link']
586
			);
587
		}
588
	}
589
590
591
	/**