simplify return statement
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
d5173ac30f
commit
78f0b5c19f
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue