Code Duplication    Length = 7-7 lines in 2 locations

apps/federatedfilesharing/lib/FederatedShareProvider.php 2 locations

@@ 974-980 (lines=7) @@
971
	 *
972
	 * @return bool
973
	 */
974
	public function isOutgoingServer2serverShareEnabled() {
975
		if ($this->gsConfig->onlyInternalFederation()) {
976
			return false;
977
		}
978
		$result = $this->config->getAppValue('files_sharing', 'outgoing_server2server_share_enabled', 'yes');
979
		return ($result === 'yes');
980
	}
981
982
	/**
983
	 * check if users are allowed to mount public links from other Nextclouds
@@ 987-993 (lines=7) @@
984
	 *
985
	 * @return bool
986
	 */
987
	public function isIncomingServer2serverShareEnabled() {
988
		if ($this->gsConfig->onlyInternalFederation()) {
989
			return false;
990
		}
991
		$result = $this->config->getAppValue('files_sharing', 'incoming_server2server_share_enabled', 'yes');
992
		return ($result === 'yes');
993
	}
994
995
996
	/**