Fix lying docblocks
* typed the return * removed unneeded temp variable Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
92d6abf216
commit
3d0dff0d2b
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue