Code Duplication    Length = 7-13 lines in 2 locations

lib/Circles/FileSharingBroadcaster.php 1 location

@@ 753-765 (lines=13) @@
750
	 * @param IEMailTemplate $emailTemplate
751
	 * @param array $data
752
	 */
753
	protected function fillMailExistingShares(IEMailTemplate $emailTemplate, array $data) {
754
		foreach ($data as $item) {
755
//			$text = $this->l10n->t('%s shared »%s« with you.', [$item['author'], $item['filename']]);
756
//			$emailTemplate->addBodyText(
757
//				htmlspecialchars($text) . '<br>' . htmlspecialchars(
758
//					$this->l10n->t('Click the button below to open it.')
759
//				), $text
760
//			);
761
			$emailTemplate->addBodyButton(
762
				$this->l10n->t('Open »%s«', [htmlspecialchars($item['filename'])]), $item['link']
763
			);
764
		}
765
	}
766
767
768
	/**

lib/GlobalScale/MemberAdd.php 1 location

@@ 312-318 (lines=7) @@
309
	 * @param IEMailTemplate $emailTemplate
310
	 * @param array $links
311
	 */
312
	private function fillMailExistingShares(IEMailTemplate $emailTemplate, array $links) {
313
		foreach ($links as $item) {
314
			$emailTemplate->addBodyButton(
315
				$this->l10n->t('Open »%s«', [htmlspecialchars($item['filename'])]), $item['link']
316
			);
317
		}
318
	}
319
320
321
	/**