Completed
Pull Request — master (#53)
by Rick
02:35
created
src/GuzzleRequestHandler.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,15 +72,13 @@
 block discarded – undo
72 72
         try {
73 73
             $response = $this->httpClient->post($uri, $formData);
74 74
             $this->logger->debug('Got response back from Telegram, applying json_decode');
75
-        }
76
-        catch (ClientException $e) {
75
+        } catch (ClientException $e) {
77 76
             $response = $e->getResponse();
78 77
             // It can happen that we have a network problem, in such case, we can't do nothing about it, so rethrow
79 78
             if (empty($response)) {
80 79
                 throw $e;
81 80
             }
82
-        }
83
-        finally {
81
+        } finally {
84 82
             return new TelegramRawData((string) $response->getBody(), $e);
85 83
         }
86 84
     }
Please login to merge, or discard this patch.