@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | if (extension_loaded('curl')) { |
457 | 457 | $ch = curl_init(); |
458 | 458 | if (!$ch) { |
459 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
459 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
460 | 460 | } |
461 | 461 | $timeout = 10; |
462 | 462 | |
@@ -478,17 +478,17 @@ discard block |
||
478 | 478 | curl_setopt($ch, CURLOPT_POST, 1); |
479 | 479 | curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); |
480 | 480 | curl_setopt($ch, CURLOPT_HTTPHEADER, [ |
481 | - 'Content-type: ' . $contentType, |
|
482 | - 'Content-length: ' . mb_strlen($payload), |
|
481 | + 'Content-type: '.$contentType, |
|
482 | + 'Content-length: '.mb_strlen($payload), |
|
483 | 483 | ]); |
484 | 484 | } |
485 | 485 | $data = curl_exec($ch); |
486 | 486 | if ($data === false) { |
487 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
487 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
488 | 488 | } |
489 | 489 | $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
490 | 490 | if ($httpcode < 200 || $httpcode >= 300) { |
491 | - throw new BadResponseException('Bad response, HTTP code: ' . $httpcode); |
|
491 | + throw new BadResponseException('Bad response, HTTP code: '.$httpcode); |
|
492 | 492 | } |
493 | 493 | curl_close($ch); |
494 | 494 | unset($ch); |