Completed
Pull Request — master (#15)
by Eduardo
05:10
created
src/Helpers/ResponseHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
      */
20 20
     public static function hasErrorStatusCode(ResponseInterface $response) : bool
21 21
     {
22
-        return \in_array(+ \mb_substr($response->getStatusCode(), 0, 1), [4, 5], true);
22
+        return \in_array(+\mb_substr($response->getStatusCode(), 0, 1), [4, 5], true);
23 23
     }
24 24
 }
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
src/Helpers/RequestHelper.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,9 +74,12 @@
 block discarded – undo
74 74
      */
75 75
     private static function _decodeJSON(string $json) : string
76 76
     {
77
-        try {
77
+        try
78
+        {
78 79
             return http_build_query(\GuzzleHttp\json_decode($json, true), '', '&');
79
-        } catch (\Exception $e) {
80
+        }
81
+        catch (\Exception $e)
82
+        {
80 83
             return $json;
81 84
         }
82 85
     }
Please login to merge, or discard this patch.