mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-07 22:37:57 +00:00
Add missing type definitions for psalm
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
9c0334d3f0
commit
87e005be4b
9 changed files with 97 additions and 21 deletions
|
|
@ -125,6 +125,7 @@ readonly class DockerController {
|
|||
public function StartBackupContainerRestore(Request $request, Response $response, array $args) : Response {
|
||||
$this->configurationManager->startTransaction();
|
||||
$this->configurationManager->backupMode = 'restore';
|
||||
/** @var string */
|
||||
$this->configurationManager->selectedRestoreTime = $request->getParsedBody()['selected_restore_time'] ?? '';
|
||||
$this->configurationManager->restoreExcludePreviews = isset($request->getParsedBody()['restore-exclude-previews']);
|
||||
$this->configurationManager->commitTransaction();
|
||||
|
|
@ -171,6 +172,7 @@ readonly class DockerController {
|
|||
$uri = $request->getUri();
|
||||
$host = $uri->getHost();
|
||||
$port = $uri->getPort();
|
||||
/** @var string */
|
||||
$path = $request->getParsedBody()['base_path'] ?? '';
|
||||
if ($port === 8000) {
|
||||
error_log('The AIO_URL-port was discovered to be 8000 which is not expected. It is now set to 443.');
|
||||
|
|
@ -284,6 +286,7 @@ readonly class DockerController {
|
|||
return;
|
||||
// Don't start if domaincheck is already running
|
||||
} elseif ($domaincheckContainer->GetRunningState() === ContainerState::Running) {
|
||||
/** @psalm-var mixed $domaincheckWasStarted */
|
||||
$domaincheckWasStarted = apcu_fetch($cacheKey);
|
||||
// Start domaincheck again when 10 minutes are over by not returning here
|
||||
if($domaincheckWasStarted !== false && is_string($domaincheckWasStarted)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue