Applied fixes from StyleCI

This commit is contained in:
Alex Bilbie
2016-04-17 08:06:17 -04:00
committed by StyleCI Bot
parent f007e25070
commit 77737e7894
11 changed files with 15 additions and 20 deletions

View File

@@ -62,12 +62,10 @@ $app->post('/access_token', function (ServerRequestInterface $request, ResponseI
// Try to respond to the request
return $server->respondToAccessTokenRequest($request, $response);
} catch (OAuthServerException $exception) {
// All instances of OAuthServerException can be formatted into a HTTP response
return $exception->generateHttpResponse($response);
} catch (\Exception $exception) {
// Unknown exception
@@ -75,7 +73,6 @@ $app->post('/access_token', function (ServerRequestInterface $request, ResponseI
$body->write($exception->getMessage());
return $response->withStatus(500)->withBody($body);
}
});