@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | if (extension_loaded('curl')) { |
| 363 | 363 | $ch = curl_init(); |
| 364 | 364 | if (!$ch) { |
| 365 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
| 365 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
| 366 | 366 | } |
| 367 | 367 | $timeout = 10; |
| 368 | 368 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
@@ -376,13 +376,13 @@ discard block |
||
| 376 | 376 | curl_setopt($ch, CURLOPT_POST, 1); |
| 377 | 377 | curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); |
| 378 | 378 | curl_setopt($ch, CURLOPT_HTTPHEADER, [ |
| 379 | - 'Content-type: ' . $contentType, |
|
| 380 | - 'Content-length: ' . strlen($xml), |
|
| 379 | + 'Content-type: '.$contentType, |
|
| 380 | + 'Content-length: '.strlen($xml), |
|
| 381 | 381 | ]); |
| 382 | 382 | } |
| 383 | 383 | $data = curl_exec($ch); |
| 384 | 384 | if ($data === false) { |
| 385 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
| 385 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
| 386 | 386 | } |
| 387 | 387 | curl_close($ch); |
| 388 | 388 | |