Code Duplication    Length = 8-8 lines in 2 locations

lib/Circles/FileSharingBroadcaster.php 2 locations

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