summaryrefslogtreecommitdiffstats
path: root/apps/settings/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-03-01 16:48:04 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2021-03-01 16:48:04 +0100
commit3d0dff0d2b9e7c8f62f3a4631cec63649f2adec1 (patch)
tree0e812cfe2d96341ce0f16a9eaf11dc9813d67a2c /apps/settings/lib
parent92d6abf216806de0d3dca5e8842ac3532c621b31 (diff)
downloadnextcloud-server-3d0dff0d2b9e7c8f62f3a4631cec63649f2adec1.tar.gz
nextcloud-server-3d0dff0d2b9e7c8f62f3a4631cec63649f2adec1.zip
Fix lying docblocks
* typed the return * removed unneeded temp variable Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/settings/lib')
-rw-r--r--apps/settings/lib/Controller/CheckSetupController.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php
index d732b137199..b03b39ab4a6 100644
--- a/apps/settings/lib/Controller/CheckSetupController.php
+++ b/apps/settings/lib/Controller/CheckSetupController.php
@@ -364,9 +364,8 @@ class CheckSetupController extends Controller {
/**
* @NoCSRFRequired
- * @return DataResponse
*/
- public function getFailedIntegrityCheckFiles() {
+ public function getFailedIntegrityCheckFiles(): DataDisplayResponse {
if (!$this->checker->isCodeCheckEnforced()) {
return new DataDisplayResponse('Integrity checker has been disabled. Integrity cannot be verified.');
}
@@ -410,15 +409,13 @@ Raw output
}
- $response = new DataDisplayResponse(
+ return new DataDisplayResponse(
$formattedTextResponse,
Http::STATUS_OK,
[
'Content-Type' => 'text/plain',
]
);
-
- return $response;
}
/**