Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nguereza-tony committed Jun 30, 2024
1 parent 509a815 commit 899acaa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/AuthorizationServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function handleAuthorizationRequest(
}
$response = $responseType->createAuthorizationResponse($request, $client, $owner);
} catch (OAuth2Exception $ex) {
$response = $this->createResponsFromException($ex);
$response = $this->createResponseFromException($ex);
}

return $response->withHeader('Content-Type', 'application/json');
Expand Down Expand Up @@ -177,7 +177,7 @@ public function handleTokenRequest(

$response = $grant->createTokenResponse($request, $client, $owner);
} catch (OAuth2Exception $ex) {
$response = $this->createResponsFromException($ex);
$response = $this->createResponseFromException($ex);
}

// According to the spec, we must set those headers
Expand Down Expand Up @@ -238,7 +238,7 @@ public function handleTokenRevocationRequest(ServerRequestInterface $request): R
$this->refreshTokenService->delete($token);
}
} catch (OAuth2Exception $exception) {
$response = $this->createResponsFromException($exception);
$response = $this->createResponseFromException($exception);
} catch (Throwable $exception) {
// According to spec (https://tools.ietf.org/html/rfc7009#section-2.2.1),
// we should return a server 503
Expand Down Expand Up @@ -346,7 +346,7 @@ protected function getClient(ServerRequestInterface $request, bool $allowPublicC
* @param OAuth2Exception $exception
* @return ResponseInterface
*/
protected function createResponsFromException(OAuth2Exception $exception): ResponseInterface
protected function createResponseFromException(OAuth2Exception $exception): ResponseInterface
{
$data = [
'error' => $exception->getCode(),
Expand Down

0 comments on commit 899acaa

Please sign in to comment.