@@ -55,7 +55,7 @@ |
||
55 | 55 | { |
56 | 56 | if (count($this->meta) !== 0) { |
57 | 57 | foreach ($this->meta as $k => $v) { |
58 | - $queries['meta_' . $k] = $v; |
|
58 | + $queries['meta_'.$k] = $v; |
|
59 | 59 | } |
60 | 60 | } |
61 | 61 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function buildUrl($method = '', $params = '', $append = true) |
58 | 58 | { |
59 | - return $this->bbbServerBaseUrl . 'api/' . $method . ($append ? '?' . $this->buildQs($method, $params) : ''); |
|
59 | + return $this->bbbServerBaseUrl.'api/'.$method.($append ? '?'.$this->buildQs($method, $params) : ''); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
@@ -69,6 +69,6 @@ discard block |
||
69 | 69 | */ |
70 | 70 | public function buildQs($method = '', $params = '') |
71 | 71 | { |
72 | - return $params . '&checksum=' . sha1($method . $params . $this->securitySalt); |
|
72 | + return $params.'&checksum='.sha1($method.$params.$this->securitySalt); |
|
73 | 73 | } |
74 | 74 | } |
@@ -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 | } |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | if (extension_loaded('curl')) { |
365 | 365 | $ch = curl_init(); |
366 | 366 | if (!$ch) { |
367 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
367 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
368 | 368 | } |
369 | 369 | $timeout = 10; |
370 | 370 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
@@ -378,13 +378,13 @@ discard block |
||
378 | 378 | curl_setopt($ch, CURLOPT_POST, 1); |
379 | 379 | curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); |
380 | 380 | curl_setopt($ch, CURLOPT_HTTPHEADER, [ |
381 | - 'Content-type: ' . $contentType, |
|
382 | - 'Content-length: ' . strlen($payload), |
|
381 | + 'Content-type: '.$contentType, |
|
382 | + 'Content-length: '.strlen($payload), |
|
383 | 383 | ]); |
384 | 384 | } |
385 | 385 | $data = curl_exec($ch); |
386 | 386 | if ($data === false) { |
387 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
387 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
388 | 388 | } |
389 | 389 | curl_close($ch); |
390 | 390 | |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | |
401 | 401 | return new SimpleXMLElement($response); |
402 | 402 | } catch (\RuntimeException $e) { |
403 | - throw new \RuntimeException('Failover curl error: ' . $e->getMessage()); |
|
403 | + throw new \RuntimeException('Failover curl error: '.$e->getMessage()); |
|
404 | 404 | } |
405 | 405 | } |
406 | 406 | } |