Skip to content

Commit 90a9485

Browse files
committed
chore: Make parameter name more explicit
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 42c5a60 commit 90a9485

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/private/OCS/ApiHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class ApiHelper {
2121
/**
2222
* Respond to a call
2323
* @psalm-taint-escape html
24-
* @param int $httpStatusCode force the HTTP status code, only used for the special case of maintenance mode which return 503 even for v1
24+
* @param int $overrideHttpStatusCode force the HTTP status code, only used for the special case of maintenance mode which return 503 even for v1
2525
*/
26-
public static function respond(int $statusCode, string $statusMessage, array $headers = [], ?int $httpStatusCode = null): void {
26+
public static function respond(int $statusCode, string $statusMessage, array $headers = [], ?int $overrideHttpStatusCode = null): void {
2727
$request = Server::get(IRequest::class);
2828
$format = $request->getParam('format', 'xml');
2929
if (self::isV2($request)) {
@@ -47,7 +47,7 @@ public static function respond(int $statusCode, string $statusMessage, array $he
4747
header($name . ': ' . $value);
4848
}
4949

50-
http_response_code($httpStatusCode ?? $response->getStatus());
50+
http_response_code($overrideHttpStatusCode ?? $response->getStatus());
5151

5252
self::setContentType($format);
5353
$body = $response->render();

0 commit comments

Comments
 (0)