Code Duplication    Length = 8-8 lines in 2 locations

lib/Circles/FileSharingBroadcaster.php 2 locations

@@ 771-778 (lines=8) @@
768
	 *
769
	 * @return array
770
	 */
771
	private function getCloudsFromContact(string $contactId): array {
772
		$contact = MiscService::getContactData($contactId);
773
		if (!key_exists('CLOUD', $contact)) {
774
			return [];
775
		}
776
777
		return $contact['CLOUD'];
778
	}
779
780
	/**
781
	 * @param string $contactId
@@ 785-792 (lines=8) @@
782
	 *
783
	 * @return array
784
	 */
785
	private function getMailsFromContact(string $contactId): array {
786
		$contact = MiscService::getContactData($contactId);
787
		if (!key_exists('EMAIL', $contact)) {
788
			return [];
789
		}
790
791
		return $contact['EMAIL'];
792
	}
793
794
}
795