mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-06-04 01:40:09 +00:00
Simplify some code a little bit
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
@@ -697,10 +697,7 @@ class ConfigurationManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function isSeccompDisabled() : bool {
|
public function isSeccompDisabled() : bool {
|
||||||
if ($this->GetCollaboraSeccompDisabledState() === 'true') {
|
return $this->GetCollaboraSeccompDisabledState() === 'true';
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -795,10 +792,7 @@ class ConfigurationManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function isDailyBackupRunning() : bool {
|
public function isDailyBackupRunning() : bool {
|
||||||
if (file_exists(DataConst::GetDailyBackupBlockFile())) {
|
return file_exists(DataConst::GetDailyBackupBlockFile());
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -870,10 +864,7 @@ class ConfigurationManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function isCollaboraSubscriptionEnabled() : bool {
|
public function isCollaboraSubscriptionEnabled() : bool {
|
||||||
if (str_contains($this->collabora_additional_options, '--o:support_key=')) {
|
return str_contains($this->collabora_additional_options, '--o:support_key=');
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user