diff options
author | Simon Rettberg | 2022-05-12 15:37:59 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-05-12 15:37:59 +0200 |
commit | 08c32a6bae82f1a2a6b0f5c548adbbf141725590 (patch) | |
tree | e51679d27e19036ab7e83684bb694d67c69af8b9 /modules-available/dnbd3 | |
parent | [statistics] Use proper filter op for ID44 and RAM on chart page (diff) | |
download | slx-admin-08c32a6bae82f1a2a6b0f5c548adbbf141725590.tar.gz slx-admin-08c32a6bae82f1a2a6b0f5c548adbbf141725590.tar.xz slx-admin-08c32a6bae82f1a2a6b0f5c548adbbf141725590.zip |
[dnbd3] Types
Diffstat (limited to 'modules-available/dnbd3')
-rw-r--r-- | modules-available/dnbd3/inc/dnbd3.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules-available/dnbd3/inc/dnbd3.inc.php b/modules-available/dnbd3/inc/dnbd3.inc.php index ccd783d9..83baffbf 100644 --- a/modules-available/dnbd3/inc/dnbd3.inc.php +++ b/modules-available/dnbd3/inc/dnbd3.inc.php @@ -5,9 +5,9 @@ class Dnbd3 { const PROP_ENABLED = 'dnbd3.enabled'; const PROP_NFS_FALLBACK = 'dnbd3.nfs-fallback'; - public static function isEnabled() + public static function isEnabled(): bool { - return Property::get(self::PROP_ENABLED, 0) ? true : false; + return (bool)Property::get(self::PROP_ENABLED, 0); } public static function setEnabled($bool) @@ -16,9 +16,9 @@ class Dnbd3 { Trigger::mount(false, true); } - public static function hasNfsFallback() + public static function hasNfsFallback(): bool { - return Property::get(self::PROP_NFS_FALLBACK, 0) ? true : false; + return (bool)Property::get(self::PROP_NFS_FALLBACK, 0); } public static function setNfsFallback($bool) |