| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 2 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next): ResponseInterface |
|
| 27 | { |
||
| 28 | try { |
||
| 29 | 2 | $response = $this->server->respondToAccessTokenRequest($request, $response); |
|
| 30 | 1 | } catch (OAuthServerException $exception) { |
|
| 31 | 1 | return $exception->generateHttpResponse($response); |
|
| 32 | } |
||
| 33 | |||
| 34 | // Pass the request and response on to the next responder in the chain |
||
| 35 | 1 | return $next($request, $response); |
|
| 36 | } |
||
| 38 |