@@ -79,12 +79,12 @@ discard block |
||
| 79 | 79 | { |
| 80 | 80 | // Provide an early error message if configuration is wrong |
| 81 | 81 | if (is_null($baseUrl) && false === getenv('BBB_SERVER_BASE_URL')) { |
| 82 | - throw new \RuntimeException('No BBB-Server-Url found! Please provide it either in constructor ' . |
|
| 82 | + throw new \RuntimeException('No BBB-Server-Url found! Please provide it either in constructor '. |
|
| 83 | 83 | "(1st argument) or by environment variable 'BBB_SERVER_BASE_URL'!"); |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | if (is_null($secret) && false === getenv('BBB_SECRET') && false === getenv('BBB_SECURITY_SALT')) { |
| 87 | - throw new \RuntimeException('No BBB-Secret (or BBB-Salt) found! Please provide it either in constructor ' . |
|
| 87 | + throw new \RuntimeException('No BBB-Secret (or BBB-Salt) found! Please provide it either in constructor '. |
|
| 88 | 88 | "(2nd argument) or by environment variable 'BBB_SECRET' (or 'BBB_SECURITY_SALT')!"); |
| 89 | 89 | } |
| 90 | 90 | |
@@ -508,7 +508,7 @@ discard block |
||
| 508 | 508 | $cookieFile = tmpfile(); |
| 509 | 509 | |
| 510 | 510 | if (!$ch) { // @phpstan-ignore-line |
| 511 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
| 511 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
| 512 | 512 | } |
| 513 | 513 | |
| 514 | 514 | // JSESSIONID |
@@ -534,8 +534,8 @@ discard block |
||
| 534 | 534 | curl_setopt($ch, CURLOPT_POST, 1); |
| 535 | 535 | curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); |
| 536 | 536 | curl_setopt($ch, CURLOPT_HTTPHEADER, [ |
| 537 | - 'Content-type: ' . $contentType, |
|
| 538 | - 'Content-length: ' . mb_strlen($payload), |
|
| 537 | + 'Content-type: '.$contentType, |
|
| 538 | + 'Content-length: '.mb_strlen($payload), |
|
| 539 | 539 | ]); |
| 540 | 540 | } |
| 541 | 541 | |
@@ -556,7 +556,7 @@ discard block |
||
| 556 | 556 | |
| 557 | 557 | // ANALYSE |
| 558 | 558 | if (false === $data) { |
| 559 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
| 559 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
| 560 | 560 | } |
| 561 | 561 | |
| 562 | 562 | if (is_bool($data)) { |
@@ -564,7 +564,7 @@ discard block |
||
| 564 | 564 | } |
| 565 | 565 | |
| 566 | 566 | if ($httpCode < 200 || $httpCode >= 300) { |
| 567 | - throw new BadResponseException('Bad response, HTTP code: ' . $httpCode . ', url: ' . $url); |
|
| 567 | + throw new BadResponseException('Bad response, HTTP code: '.$httpCode.', url: '.$url); |
|
| 568 | 568 | } |
| 569 | 569 | |
| 570 | 570 | // CLOSE AND UNSET |