diff options
Diffstat (limited to 'lib/private/Share')
-rw-r--r-- | lib/private/Share/Helper.php | 2 | ||||
-rw-r--r-- | lib/private/Share/Share.php | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/Share/Helper.php b/lib/private/Share/Helper.php index a1a56077d40..2eba67004dd 100644 --- a/lib/private/Share/Helper.php +++ b/lib/private/Share/Helper.php @@ -169,7 +169,7 @@ class Helper extends \OC\Share\Constants { $enforceExpireDate = $config->getAppValue('core', 'shareapi_enforce_expire_date', 'no'); $defaultExpireSettings['defaultExpireDateSet'] = true; $defaultExpireSettings['expireAfterDays'] = (int)($config->getAppValue('core', 'shareapi_expire_after_n_days', '7')); - $defaultExpireSettings['enforceExpireDate'] = $enforceExpireDate === 'yes' ? true : false; + $defaultExpireSettings['enforceExpireDate'] = $enforceExpireDate === 'yes'; } return $defaultExpireSettings; diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php index 8812399c812..35d84307548 100644 --- a/lib/private/Share/Share.php +++ b/lib/private/Share/Share.php @@ -1416,7 +1416,7 @@ class Share extends Constants { */ protected static function groupItems($items, $itemType) { - $fileSharing = ($itemType === 'file' || $itemType === 'folder') ? true : false; + $fileSharing = $itemType === 'file' || $itemType === 'folder'; $result = array(); @@ -2070,7 +2070,7 @@ class Share extends Constants { */ public static function shareWithGroupMembersOnly() { $value = \OC::$server->getConfig()->getAppValue('core', 'shareapi_only_share_with_group_members', 'no'); - return ($value === 'yes') ? true : false; + return $value === 'yes'; } /** @@ -2078,7 +2078,7 @@ class Share extends Constants { */ public static function isDefaultExpireDateEnabled() { $defaultExpireDateEnabled = \OC::$server->getConfig()->getAppValue('core', 'shareapi_default_expire_date', 'no'); - return ($defaultExpireDateEnabled === "yes") ? true : false; + return $defaultExpireDateEnabled === 'yes'; } /** @@ -2119,7 +2119,7 @@ class Share extends Constants { */ public static function enforcePassword(IConfig $config) { $enforcePassword = $config->getAppValue('core', 'shareapi_enforce_links_password', 'no'); - return ($enforcePassword === "yes") ? true : false; + return $enforcePassword === 'yes'; } /** |