Code Duplication    Length = 8-8 lines in 2 locations

lib/Circles/FileSharingBroadcaster.php 2 locations

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