Code Duplication    Length = 8-8 lines in 2 locations

lib/Circles/FileSharingBroadcaster.php 2 locations

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