From 3af75729b8ea381681d0f3fe67b101b567bc5efa Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Thu, 17 Mar 2016 07:22:59 -0400 Subject: [PATCH] Applied fixes from StyleCI --- src/Middleware/AuthenticationServerMiddleware.php | 1 + src/Middleware/ResourceServerMiddleware.php | 1 + src/TemplateRenderer/RendererInterface.php | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Middleware/AuthenticationServerMiddleware.php b/src/Middleware/AuthenticationServerMiddleware.php index 2be5ca63..2d5ffe41 100644 --- a/src/Middleware/AuthenticationServerMiddleware.php +++ b/src/Middleware/AuthenticationServerMiddleware.php @@ -40,6 +40,7 @@ class AuthenticationServerMiddleware // @codeCoverageIgnoreStart } catch (\Exception $exception) { $response->getBody()->write($exception->getMessage()); + return $response->withStatus(500); // @codeCoverageIgnoreEnd } diff --git a/src/Middleware/ResourceServerMiddleware.php b/src/Middleware/ResourceServerMiddleware.php index e30ded8a..1b127608 100644 --- a/src/Middleware/ResourceServerMiddleware.php +++ b/src/Middleware/ResourceServerMiddleware.php @@ -40,6 +40,7 @@ class ResourceServerMiddleware // @codeCoverageIgnoreStart } catch (\Exception $exception) { $response->getBody()->write($exception->getMessage()); + return $response->withStatus(500); // @codeCoverageIgnoreEnd } diff --git a/src/TemplateRenderer/RendererInterface.php b/src/TemplateRenderer/RendererInterface.php index 0a270c56..74d9b48f 100644 --- a/src/TemplateRenderer/RendererInterface.php +++ b/src/TemplateRenderer/RendererInterface.php @@ -21,4 +21,4 @@ interface RendererInterface * @return string */ public function renderAuthorize(array $data = []); -} \ No newline at end of file +}