Skip to content

Commit

Permalink
fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
jr-k committed Sep 29, 2021
1 parent 358987b commit 8c6d8ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Controller/TokenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
use League\Bundle\OAuth2ServerBundle\OAuth2Events;
use League\OAuth2\Server\AuthorizationServer;
use League\OAuth2\Server\Exception\OAuthServerException;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
use Psr\Http\Message\ResponseFactoryInterface;
use Symfony\Bridge\PsrHttpMessage\HttpFoundationFactoryInterface;
use Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;

final class TokenController
{
Expand Down Expand Up @@ -70,7 +70,7 @@ public function indexAction(Request $request): Response
$renderedResponse = $this->httpFoundationFactory->createResponse($response);

/** @var TokenRequestResolveEvent $event */
$event = $this->eventDispatcher->dispatch(
$this->eventDispatcher->dispatch(
new TokenRequestResolveEvent($renderedResponse),
OAuth2Events::TOKEN_REQUEST_RESOLVE
);
Expand Down
10 changes: 5 additions & 5 deletions src/OAuth2Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ final class OAuth2Events
public const AUTHORIZATION_REQUEST_RESOLVE = 'league.oauth2_server.event.authorization_request_resolve';

/**
* The REQUEST_TOKEN_RESOLVE event occurs right before the system
* complete token request.
*
* You could manipulate the response.
*/
* The REQUEST_TOKEN_RESOLVE event occurs right before the system
* complete token request.
*
* You could manipulate the response.
*/
public const TOKEN_REQUEST_RESOLVE = 'league.oauth2_server.event.token_request_resolve';

/**
Expand Down

0 comments on commit 8c6d8ff

Please sign in to comment.