Skip to content

Commit aee5981

Browse files
committed
use ??
1 parent 6ac73cc commit aee5981

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Routes/Account.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ public static function respondToToken() {
243243
$request = $requestFactory->fromGlobals($_SERVER, $_GET, $_POST, $_COOKIE, $_FILES);
244244
$requestBody = $request->getParsedBody();
245245

246-
$grantType = isset($requestBody['grant_type']) ? $requestBody['grant_type'] : null;
247-
$clientId = isset($requestBody['client_id']) ? $requestBody['client_id'] : null;
246+
$grantType = $requestBody['grant_type'] ?? null;
247+
$clientId = $requestBody['client_id'] ?? null;
248248
switch ($grantType) {
249249
case "authorization_code":
250250
$code = $requestBody['code'];

0 commit comments

Comments
 (0)