@@ -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 | } |
@@ -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 |