Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Jul 28, 2015
1 parent dda0d71 commit cc70b1f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ php:
- 5.4
- 5.5
- 5.6
- hhvm-nightly
- 7.0
- hhvm

allow_failure:
- hhvm

before_script:
- composer self-update
Expand Down
7 changes: 6 additions & 1 deletion src/ZfrOAuth2/Server/AuthorizationServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,12 @@ protected function getClient(ServerRequestInterface $request, $allowPublicClient
*/
protected function createResponseFromOAuthException(OAuth2Exception $exception)
{
return new Response\JsonResponse(['error' => $exception->getCode(), 'error_description' => $exception->getMessage()], 400);
$payload = [
'error' => $exception->getCode(),
'error_description' => $exception->getMessage()
];

return new Response\JsonResponse($payload, 400);
}

/**
Expand Down

0 comments on commit cc70b1f

Please sign in to comment.