summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/util.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-26 12:36:25 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-26 12:36:25 +0100
commit6bbea33133867c0fc7dc0ab1df74a38c30843141 (patch)
tree035b6310da06ca747733c36b5c09d0c97b886e22 /lib/private/legacy/util.php
parent26682b6936dcc127393655754500a1848d28c7d0 (diff)
downloadnextcloud-server-6bbea33133867c0fc7dc0ab1df74a38c30843141.tar.gz
nextcloud-server-6bbea33133867c0fc7dc0ab1df74a38c30843141.zip
Simplify ternary operator statements
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/legacy/util.php')
-rw-r--r--lib/private/legacy/util.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index 776a879e731..efa488b434d 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -301,7 +301,7 @@ class OC_Util {
*/
public static function isPublicLinkPasswordRequired() {
$enforcePassword = \OC::$server->getConfig()->getAppValue('core', 'shareapi_enforce_links_password', 'no');
- return ($enforcePassword === 'yes') ? true : false;
+ return $enforcePassword === 'yes';
}
/**
@@ -344,7 +344,7 @@ class OC_Util {
$enforceDefaultExpireDate = false;
if ($isDefaultExpireDateEnabled === 'yes') {
$value = \OC::$server->getConfig()->getAppValue('core', 'shareapi_enforce_expire_date', 'no');
- $enforceDefaultExpireDate = ($value === 'yes') ? true : false;
+ $enforceDefaultExpireDate = $value === 'yes';
}
return $enforceDefaultExpireDate;