mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-13 09:10:21 +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 {
|
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue