simplify return statement

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2017-04-10 09:44:23 +02:00
parent 18c292d5c3
commit 9aa41b229d
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 4 additions and 4 deletions

View File

@ -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');
}
}