summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/lib/Controller/AdminController.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/updatenotification/lib/Controller/AdminController.php')
-rw-r--r--apps/updatenotification/lib/Controller/AdminController.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/updatenotification/lib/Controller/AdminController.php b/apps/updatenotification/lib/Controller/AdminController.php
index ba16f114f61..57f89969db4 100644
--- a/apps/updatenotification/lib/Controller/AdminController.php
+++ b/apps/updatenotification/lib/Controller/AdminController.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
@@ -76,7 +77,7 @@ class AdminController extends Controller {
* @param string $channel
* @return DataResponse
*/
- public function setChannel($channel) {
+ public function setChannel(string $channel): DataResponse {
Util::setChannel($channel);
$this->config->setAppValue('core', 'lastupdatedat', 0);
return new DataResponse(['status' => 'success', 'data' => ['message' => $this->l10n->t('Channel updated')]]);
@@ -85,7 +86,7 @@ class AdminController extends Controller {
/**
* @return DataResponse
*/
- public function createCredentials() {
+ public function createCredentials(): DataResponse {
// Create a new job and store the creation date
$this->jobList->add(ResetTokenBackgroundJob::class);
$this->config->setAppValue('core', 'updater.secret.created', $this->timeFactory->getTime());