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:
parent
cbad2a0293
commit
ee5b623099
|
@ -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'] ?? '';
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user