Fix lying docblocks

* typed the return
* removed unneeded temp variable

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2021-03-01 16:48:04 +01:00
parent 92d6abf216
commit 3d0dff0d2b
1 changed files with 2 additions and 5 deletions

View File

@ -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;
}
/**