mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 13:06:53 +00:00
Simplify some code a little bit
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
844831a899
commit
fd308d4b80
1 changed files with 3 additions and 12 deletions
|
|
@ -697,10 +697,7 @@ class ConfigurationManager
|
|||
}
|
||||
|
||||
public function isSeccompDisabled() : bool {
|
||||
if ($this->GetCollaboraSeccompDisabledState() === 'true') {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return $this->GetCollaboraSeccompDisabledState() === 'true';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -795,10 +792,7 @@ class ConfigurationManager
|
|||
}
|
||||
|
||||
public function isDailyBackupRunning() : bool {
|
||||
if (file_exists(DataConst::GetDailyBackupBlockFile())) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return file_exists(DataConst::GetDailyBackupBlockFile());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -870,10 +864,7 @@ class ConfigurationManager
|
|||
}
|
||||
|
||||
public function isCollaboraSubscriptionEnabled() : bool {
|
||||
if (str_contains($this->collabora_additional_options, '--o:support_key=')) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return str_contains($this->collabora_additional_options, '--o:support_key=');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue