From: Bjoern Schiessle Date: Mon, 10 Apr 2017 07:44:23 +0000 (+0200) Subject: simplify return statement X-Git-Tag: v11.0.4RC1~17^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9aa41b229dfb616d18b33a123fe22793b9db4b89;p=nextcloud-server.git simplify return statement Signed-off-by: Bjoern Schiessle --- diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php index 60dbd457df0..75d4de39a64 100644 --- a/apps/federatedfilesharing/lib/FederatedShareProvider.php +++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php @@ -931,7 +931,7 @@ class FederatedShareProvider implements IShareProvider { */ public function isOutgoingServer2serverShareEnabled() { $result = $this->config->getAppValue('files_sharing', 'outgoing_server2server_share_enabled', 'yes'); - return ($result === 'yes') ? true : false; + return ($result === 'yes'); } /** @@ -941,7 +941,7 @@ class FederatedShareProvider implements IShareProvider { */ public function isIncomingServer2serverShareEnabled() { $result = $this->config->getAppValue('files_sharing', 'incoming_server2server_share_enabled', 'yes'); - return ($result === 'yes') ? true : false; + return ($result === 'yes'); } /** @@ -951,7 +951,7 @@ class FederatedShareProvider implements IShareProvider { */ public function isLookupServerQueriesEnabled() { $result = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'no'); - return ($result === 'yes') ? true : false; + return ($result === 'yes'); } @@ -962,6 +962,6 @@ class FederatedShareProvider implements IShareProvider { */ public function isLookupServerUploadEnabled() { $result = $this->config->getAppValue('files_sharing', 'lookupServerUploadEnabled', 'yes'); - return ($result === 'yes') ? true : false; + return ($result === 'yes'); } }