Code Duplication    Length = 8-8 lines in 2 locations

lib/Circles/FileSharingBroadcaster.php 2 locations

@@ 782-789 (lines=8) @@
779
	 *
780
	 * @return array
781
	 */
782
	private function getCloudsFromContact(string $contactId): array {
783
		$contact = MiscService::getContactData($contactId);
784
		if (!key_exists('CLOUD', $contact)) {
785
			return [];
786
		}
787
788
		return $contact['CLOUD'];
789
	}
790
791
	/**
792
	 * @param string $contactId
@@ 796-803 (lines=8) @@
793
	 *
794
	 * @return array
795
	 */
796
	private function getMailsFromContact(string $contactId): array {
797
		$contact = MiscService::getContactData($contactId);
798
		if (!key_exists('EMAIL', $contact)) {
799
			return [];
800
		}
801
802
		return $contact['EMAIL'];
803
	}
804
805
}
806