summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/lib/Controller/AdminController.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-01-17 13:42:02 +0100
committerJoas Schilling <coding@schilljs.com>2018-01-18 10:55:44 +0100
commit19f7cc9e9243c8ce4f3a5cba2c6fc286b1e32f38 (patch)
treec87781c3db915aa2bb3a7fe0ff20e4428f423bb3 /apps/updatenotification/lib/Controller/AdminController.php
parent9296116297fb6c46f1f26d745b5fe1f63f6caa2a (diff)
downloadnextcloud-server-19f7cc9e9243c8ce4f3a5cba2c6fc286b1e32f38.tar.gz
nextcloud-server-19f7cc9e9243c8ce4f3a5cba2c6fc286b1e32f38.zip
Make Update notficiations strict and fix all inspections
Signed-off-by: Joas Schilling <coding@schilljs.com>
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());