@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | public function __construct() |
| 58 | 58 | { |
| 59 | 59 | // Keeping backward compatibility with older deployed versions |
| 60 | - $this->securitySecret = (getenv('BBB_SECURITY_SALT') === false) ? getenv('BBB_SECRET') : $this->securitySecret = getenv('BBB_SECURITY_SALT'); |
|
| 60 | + $this->securitySecret = (getenv('BBB_SECURITY_SALT') === false) ? getenv('BBB_SECRET') : $this->securitySecret = getenv('BBB_SECURITY_SALT'); |
|
| 61 | 61 | $this->bbbServerBaseUrl = getenv('BBB_SERVER_BASE_URL'); |
| 62 | 62 | $this->urlBuilder = new UrlBuilder($this->securitySecret, $this->bbbServerBaseUrl); |
| 63 | 63 | } |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | if (extension_loaded('curl')) { |
| 366 | 366 | $ch = curl_init(); |
| 367 | 367 | if (!$ch) { |
| 368 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
| 368 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
| 369 | 369 | } |
| 370 | 370 | $timeout = 10; |
| 371 | 371 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); |
@@ -379,13 +379,13 @@ discard block |
||
| 379 | 379 | curl_setopt($ch, CURLOPT_POST, 1); |
| 380 | 380 | curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); |
| 381 | 381 | curl_setopt($ch, CURLOPT_HTTPHEADER, [ |
| 382 | - 'Content-type: ' . $contentType, |
|
| 383 | - 'Content-length: ' . mb_strlen($payload), |
|
| 382 | + 'Content-type: '.$contentType, |
|
| 383 | + 'Content-length: '.mb_strlen($payload), |
|
| 384 | 384 | ]); |
| 385 | 385 | } |
| 386 | 386 | $data = curl_exec($ch); |
| 387 | 387 | if ($data === false) { |
| 388 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
| 388 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
| 389 | 389 | } |
| 390 | 390 | curl_close($ch); |
| 391 | 391 | |