@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | if (extension_loaded('curl')) { |
| 385 | 385 | $ch = curl_init(); |
| 386 | 386 | if (!$ch) { |
| 387 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
| 387 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
| 388 | 388 | } |
| 389 | 389 | $timeout = 10; |
| 390 | 390 | |
@@ -405,13 +405,13 @@ discard block |
||
| 405 | 405 | curl_setopt($ch, CURLOPT_POST, 1); |
| 406 | 406 | curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); |
| 407 | 407 | curl_setopt($ch, CURLOPT_HTTPHEADER, [ |
| 408 | - 'Content-type: ' . $contentType, |
|
| 409 | - 'Content-length: ' . mb_strlen($payload), |
|
| 408 | + 'Content-type: '.$contentType, |
|
| 409 | + 'Content-length: '.mb_strlen($payload), |
|
| 410 | 410 | ]); |
| 411 | 411 | } |
| 412 | 412 | $data = curl_exec($ch); |
| 413 | 413 | if ($data === false) { |
| 414 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
| 414 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
| 415 | 415 | } |
| 416 | 416 | curl_close($ch); |
| 417 | 417 | |