@@ -80,12 +80,12 @@ discard block |
||
80 | 80 | { |
81 | 81 | // Provide an early error message if configuration is wrong |
82 | 82 | if (is_null($secret) && false === getenv('BBB_SERVER_BASE_URL')) { |
83 | - throw new \RuntimeException('No BBB-Server-Url found! Please provide it either in constructor ' . |
|
83 | + throw new \RuntimeException('No BBB-Server-Url found! Please provide it either in constructor '. |
|
84 | 84 | "(1st argument) or by environment variable 'BBB_SERVER_BASE_URL'!"); |
85 | 85 | } |
86 | 86 | |
87 | 87 | if (is_null($secret) && false === getenv('BBB_SECRET') && false === getenv('BBB_SECURITY_SALT')) { |
88 | - throw new \RuntimeException('No BBB-Secret (or BBB-Salt) found! Please provide it either in constructor ' . |
|
88 | + throw new \RuntimeException('No BBB-Secret (or BBB-Salt) found! Please provide it either in constructor '. |
|
89 | 89 | "(2nd argument) or by environment variable 'BBB_SECRET' (or 'BBB_SECURITY_SALT')!"); |
90 | 90 | } |
91 | 91 | |
@@ -431,7 +431,7 @@ discard block |
||
431 | 431 | $cookieFile = tmpfile(); |
432 | 432 | |
433 | 433 | if (!$ch) { // @phpstan-ignore-line |
434 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
434 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
435 | 435 | } |
436 | 436 | |
437 | 437 | // JSESSIONID |
@@ -457,8 +457,8 @@ discard block |
||
457 | 457 | curl_setopt($ch, CURLOPT_POST, 1); |
458 | 458 | curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); |
459 | 459 | curl_setopt($ch, CURLOPT_HTTPHEADER, [ |
460 | - 'Content-type: ' . $contentType, |
|
461 | - 'Content-length: ' . mb_strlen($payload), |
|
460 | + 'Content-type: '.$contentType, |
|
461 | + 'Content-length: '.mb_strlen($payload), |
|
462 | 462 | ]); |
463 | 463 | } |
464 | 464 | |
@@ -479,7 +479,7 @@ discard block |
||
479 | 479 | |
480 | 480 | // ANALYSE |
481 | 481 | if (false === $data) { |
482 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
482 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
483 | 483 | } |
484 | 484 | |
485 | 485 | if (is_bool($data)) { |
@@ -487,7 +487,7 @@ discard block |
||
487 | 487 | } |
488 | 488 | |
489 | 489 | if ($httpCode < 200 || $httpCode >= 300) { |
490 | - throw new BadResponseException('Bad response, HTTP code: ' . $httpCode); |
|
490 | + throw new BadResponseException('Bad response, HTTP code: '.$httpCode); |
|
491 | 491 | } |
492 | 492 | |
493 | 493 | // CLOSE AND UNSET |