Merge pull request #474 from thephpleague/analysis-XlKDLQ

Applied fixes from StyleCI
This commit is contained in:
Alex Bilbie 2016-03-17 12:23:30 +01:00
commit c207addf87
3 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,7 @@ class AuthenticationServerMiddleware
// @codeCoverageIgnoreStart // @codeCoverageIgnoreStart
} catch (\Exception $exception) { } catch (\Exception $exception) {
$response->getBody()->write($exception->getMessage()); $response->getBody()->write($exception->getMessage());
return $response->withStatus(500); return $response->withStatus(500);
// @codeCoverageIgnoreEnd // @codeCoverageIgnoreEnd
} }

View File

@ -40,6 +40,7 @@ class ResourceServerMiddleware
// @codeCoverageIgnoreStart // @codeCoverageIgnoreStart
} catch (\Exception $exception) { } catch (\Exception $exception) {
$response->getBody()->write($exception->getMessage()); $response->getBody()->write($exception->getMessage());
return $response->withStatus(500); return $response->withStatus(500);
// @codeCoverageIgnoreEnd // @codeCoverageIgnoreEnd
} }

View File

@ -21,4 +21,4 @@ interface RendererInterface
* @return string * @return string
*/ */
public function renderAuthorize(array $data = []); public function renderAuthorize(array $data = []);
} }