@@ -58,9 +58,9 @@ |
||
58 | 58 | if (0 !== count($this->userData)) { |
59 | 59 | foreach ($this->userData as $k => $v) { |
60 | 60 | if (!is_bool($v)) { |
61 | - $queries['userdata-' . $k] = $v; |
|
61 | + $queries['userdata-'.$k] = $v; |
|
62 | 62 | } else { |
63 | - $queries['userdata-' . $k] = $v ? 'true' : 'false'; |
|
63 | + $queries['userdata-'.$k] = $v ? 'true' : 'false'; |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 | } |
@@ -61,9 +61,9 @@ |
||
61 | 61 | if (0 !== count($this->meta)) { |
62 | 62 | foreach ($this->meta as $k => $v) { |
63 | 63 | if (!is_bool($v)) { |
64 | - $queries['meta_' . $k] = $v; |
|
64 | + $queries['meta_'.$k] = $v; |
|
65 | 65 | } else { |
66 | - $queries['meta_' . $k] = $v ? 'true' : 'false'; |
|
66 | + $queries['meta_'.$k] = $v ? 'true' : 'false'; |
|
67 | 67 | } |
68 | 68 | } |
69 | 69 | } |
@@ -482,7 +482,7 @@ discard block |
||
482 | 482 | if (extension_loaded('curl')) { |
483 | 483 | $ch = curl_init(); |
484 | 484 | if (!$ch) { |
485 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
485 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
486 | 486 | } |
487 | 487 | $timeout = 10; |
488 | 488 | |
@@ -507,17 +507,17 @@ discard block |
||
507 | 507 | curl_setopt($ch, CURLOPT_POST, 1); |
508 | 508 | curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); |
509 | 509 | curl_setopt($ch, CURLOPT_HTTPHEADER, [ |
510 | - 'Content-type: ' . $contentType, |
|
511 | - 'Content-length: ' . mb_strlen($payload), |
|
510 | + 'Content-type: '.$contentType, |
|
511 | + 'Content-length: '.mb_strlen($payload), |
|
512 | 512 | ]); |
513 | 513 | } |
514 | 514 | $data = curl_exec($ch); |
515 | 515 | if (false === $data) { |
516 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
516 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
517 | 517 | } |
518 | 518 | $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
519 | 519 | if ($httpcode < 200 || $httpcode >= 300) { |
520 | - throw new BadResponseException('Bad response, HTTP code: ' . $httpcode); |
|
520 | + throw new BadResponseException('Bad response, HTTP code: '.$httpcode); |
|
521 | 521 | } |
522 | 522 | curl_close($ch); |
523 | 523 | unset($ch); |