Merge pull request #25854 from nextcloud/techdept/psalm/checksetupcontroller

Fix lying docblocks
This commit is contained in:
Lukas Reschke 2021-03-02 13:33:21 +01:00 committed by GitHub
commit 41dc18342f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}
/**