Completed
Push — master ( 1e173f...636f13 )
by Dmitry
02:05
created
src/Request.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -199,8 +199,7 @@  discard block
 block discarded – undo
199 199
         try
200 200
         {
201 201
             $token = JWT::encode($payload, $this->own_private_key(), 'RS512');
202
-        }
203
-        catch (\Exception $e)
202
+        } catch (\Exception $e)
204 203
         {
205 204
             Log::instance()->error($e->getMessage().PHP_EOL.$e->getTraceAsString());
206 205
             throw new Exception\JSON('unable to create JWT token', $e);
@@ -229,8 +228,7 @@  discard block
 block discarded – undo
229 228
             $body = $httpresponse->getBody()->getContents();
230 229
             Log::instance()->debug('got response:'.PHP_EOL.$body);
231 230
             return new $this->response_class($body, $this->jwt);
232
-        }
233
-        catch (\GuzzleHttp\Exception\RequestException $e)
231
+        } catch (\GuzzleHttp\Exception\RequestException $e)
234 232
         {
235 233
             $this->handle_request_exception($e);
236 234
         }
Please login to merge, or discard this patch.