Code Duplication    Length = 7-13 lines in 2 locations

lib/Circles/FileSharingBroadcaster.php 1 location

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

lib/GlobalScale/MemberAdd.php 1 location

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