Code Duplication    Length = 8-8 lines in 2 locations

lib/Circles/FileSharingBroadcaster.php 2 locations

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