diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-10 09:44:23 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-10 09:44:23 +0200 |
commit | 78f0b5c19fe3101e3f10b5da70411681cd9b3d3e (patch) | |
tree | a372a0a1426f475ed0c411870c631612b734bffc /apps/federatedfilesharing | |
parent | d5173ac30f19de27327f302ae217e33c419b1960 (diff) | |
download | nextcloud-server-78f0b5c19fe3101e3f10b5da70411681cd9b3d3e.tar.gz nextcloud-server-78f0b5c19fe3101e3f10b5da70411681cd9b3d3e.zip |
simplify return statement
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r-- | apps/federatedfilesharing/lib/FederatedShareProvider.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php index b2f2558c80c..9063bbf7450 100644 --- a/apps/federatedfilesharing/lib/FederatedShareProvider.php +++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php @@ -941,7 +941,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'); } /** @@ -951,7 +951,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'); } /** @@ -961,7 +961,7 @@ class FederatedShareProvider implements IShareProvider { */ public function isLookupServerQueriesEnabled() { $result = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'no'); - return ($result === 'yes') ? true : false; + return ($result === 'yes'); } @@ -972,6 +972,6 @@ class FederatedShareProvider implements IShareProvider { */ public function isLookupServerUploadEnabled() { $result = $this->config->getAppValue('files_sharing', 'lookupServerUploadEnabled', 'yes'); - return ($result === 'yes') ? true : false; + return ($result === 'yes'); } } |