Skip to content

Commit 899acaa

Browse files
committed
Fix typos
1 parent 509a815 commit 899acaa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/AuthorizationServer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function handleAuthorizationRequest(
147147
}
148148
$response = $responseType->createAuthorizationResponse($request, $client, $owner);
149149
} catch (OAuth2Exception $ex) {
150-
$response = $this->createResponsFromException($ex);
150+
$response = $this->createResponseFromException($ex);
151151
}
152152

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

178178
$response = $grant->createTokenResponse($request, $client, $owner);
179179
} catch (OAuth2Exception $ex) {
180-
$response = $this->createResponsFromException($ex);
180+
$response = $this->createResponseFromException($ex);
181181
}
182182

183183
// According to the spec, we must set those headers
@@ -238,7 +238,7 @@ public function handleTokenRevocationRequest(ServerRequestInterface $request): R
238238
$this->refreshTokenService->delete($token);
239239
}
240240
} catch (OAuth2Exception $exception) {
241-
$response = $this->createResponsFromException($exception);
241+
$response = $this->createResponseFromException($exception);
242242
} catch (Throwable $exception) {
243243
// According to spec (https://tools.ietf.org/html/rfc7009#section-2.2.1),
244244
// we should return a server 503
@@ -346,7 +346,7 @@ protected function getClient(ServerRequestInterface $request, bool $allowPublicC
346346
* @param OAuth2Exception $exception
347347
* @return ResponseInterface
348348
*/
349-
protected function createResponsFromException(OAuth2Exception $exception): ResponseInterface
349+
protected function createResponseFromException(OAuth2Exception $exception): ResponseInterface
350350
{
351351
$data = [
352352
'error' => $exception->getCode(),

0 commit comments

Comments
 (0)