@@ -54,7 +54,9 @@ |
||
| 54 | 54 | { |
| 55 | 55 | $headers['Content-Type'] = 'application/json'; |
| 56 | 56 | $body = null; |
| 57 | - if ($params) $body = \GuzzleHttp\json_encode($params); |
|
| 57 | + if ($params) { |
|
| 58 | + $body = \GuzzleHttp\json_encode($params); |
|
| 59 | + } |
|
| 58 | 60 | $request = new GuzzleRequest('POST', $endpoint, $headers, $body); |
| 59 | 61 | $response = $this->client->send($request); |
| 60 | 62 | |