From 4f4cb92dd9ac5d2369576e8fc964945dc4175683 Mon Sep 17 00:00:00 2001 From: sagikazarmark Date: Wed, 13 Jan 2016 12:54:17 -0500 Subject: [PATCH] Applied fixes from StyleCI --- src/Client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 27baf33..9eb84fb 100644 --- a/src/Client.php +++ b/src/Client.php @@ -66,7 +66,7 @@ public function sendRequest(RequestInterface $request) private function createRequest(RequestInterface $request) { $options = [ - 'exceptions' => false, + 'exceptions' => false, 'allow_redirects' => false, ]; @@ -119,6 +119,7 @@ private function handleException(GuzzleExceptions\TransferException $exception, // Make sure we have a response for the HttpException if ($exception->hasResponse()) { $psr7Response = $this->createResponse($exception->getResponse()); + return new HttplugException\HttpException( $exception->getMessage(), $request,