@@ -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 | |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | $cookieFile = tmpfile(); |
| 496 | 496 | |
| 497 | 497 | if (!$ch) { // @phpstan-ignore-line |
| 498 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
| 498 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
| 499 | 499 | } |
| 500 | 500 | |
| 501 | 501 | // JSESSIONID |
@@ -521,8 +521,8 @@ discard block |
||
| 521 | 521 | curl_setopt($ch, CURLOPT_POST, 1); |
| 522 | 522 | curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); |
| 523 | 523 | curl_setopt($ch, CURLOPT_HTTPHEADER, [ |
| 524 | - 'Content-type: ' . $contentType, |
|
| 525 | - 'Content-length: ' . mb_strlen($payload), |
|
| 524 | + 'Content-type: '.$contentType, |
|
| 525 | + 'Content-length: '.mb_strlen($payload), |
|
| 526 | 526 | ]); |
| 527 | 527 | } |
| 528 | 528 | |
@@ -543,7 +543,7 @@ discard block |
||
| 543 | 543 | |
| 544 | 544 | // ANALYSE |
| 545 | 545 | if (false === $data) { |
| 546 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
| 546 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
| 547 | 547 | } |
| 548 | 548 | |
| 549 | 549 | if (is_bool($data)) { |
@@ -551,7 +551,7 @@ discard block |
||
| 551 | 551 | } |
| 552 | 552 | |
| 553 | 553 | if ($httpCode < 200 || $httpCode >= 300) { |
| 554 | - throw new BadResponseException('Bad response, HTTP code: ' . $httpCode); |
|
| 554 | + throw new BadResponseException('Bad response, HTTP code: '.$httpCode); |
|
| 555 | 555 | } |
| 556 | 556 | |
| 557 | 557 | // CLOSE AND UNSET |