4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-14 13:16:37 +00:00

Minor code quality fixes.

This commit is contained in:
Buster "Silver Eagle" Neece 2022-05-25 21:14:55 -05:00
parent cbad2a0293
commit ee5b623099
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
2 changed files with 2 additions and 4 deletions

View File

@ -28,8 +28,7 @@ final class SftpAuthAction
->withStatus(500)
->withJson(['username' => '']);
$parsedBody = $request->getParsedBody();
$parsedBody = (array)$request->getParsedBody();
$username = $parsedBody['username'] ?? '';
$password = $parsedBody['password'] ?? '';
$pubKey = $parsedBody['public_key'] ?? '';

View File

@ -32,8 +32,7 @@ final class SftpEventAction
): ResponseInterface {
$errorResponse = $response->withStatus(500)->withJson(['success' => false]);
$parsedBody = $request->getParsedBody();
$parsedBody = (array)$request->getParsedBody();
$action = $parsedBody['action'] ?? null;
$username = $parsedBody['username'] ?? null;
$path = $parsedBody['path'] ?? null;