@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | if (extension_loaded('curl')) { |
| 483 | 483 | $ch = curl_init(); |
| 484 | 484 | if (!$ch) { |
| 485 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
| 485 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
| 486 | 486 | } |
| 487 | 487 | |
| 488 | 488 | // Needed to store the JSESSIONID |
@@ -506,17 +506,17 @@ discard block |
||
| 506 | 506 | curl_setopt($ch, CURLOPT_POST, 1); |
| 507 | 507 | curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); |
| 508 | 508 | curl_setopt($ch, CURLOPT_HTTPHEADER, [ |
| 509 | - 'Content-type: ' . $contentType, |
|
| 510 | - 'Content-length: ' . mb_strlen($payload), |
|
| 509 | + 'Content-type: '.$contentType, |
|
| 510 | + 'Content-length: '.mb_strlen($payload), |
|
| 511 | 511 | ]); |
| 512 | 512 | } |
| 513 | 513 | $data = curl_exec($ch); |
| 514 | 514 | if (false === $data) { |
| 515 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
| 515 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
| 516 | 516 | } |
| 517 | 517 | $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
| 518 | 518 | if ($httpcode < 200 || $httpcode >= 300) { |
| 519 | - throw new BadResponseException('Bad response, HTTP code: ' . $httpcode); |
|
| 519 | + throw new BadResponseException('Bad response, HTTP code: '.$httpcode); |
|
| 520 | 520 | } |
| 521 | 521 | curl_close($ch); |
| 522 | 522 | unset($ch); |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | public function buildUrl($method = '', $params = '', $append = true) |
| 72 | 72 | { |
| 73 | - return $this->bbbServerBaseUrl . 'api/' . $method . ($append ? '?' . $this->buildQs($method, $params) : ''); |
|
| 73 | + return $this->bbbServerBaseUrl.'api/'.$method.($append ? '?'.$this->buildQs($method, $params) : ''); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -83,6 +83,6 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public function buildQs($method = '', $params = '') |
| 85 | 85 | { |
| 86 | - return $params . '&checksum=' . hash($this->hashingAlgorithm, $method . $params . $this->securitySalt); |
|
| 86 | + return $params.'&checksum='.hash($this->hashingAlgorithm, $method.$params.$this->securitySalt); |
|
| 87 | 87 | } |
| 88 | 88 | } |
@@ -58,9 +58,9 @@ |
||
| 58 | 58 | if (0 !== count($this->userData)) { |
| 59 | 59 | foreach ($this->userData as $k => $v) { |
| 60 | 60 | if (!is_bool($v)) { |
| 61 | - $queries['userdata-' . $k] = $v; |
|
| 61 | + $queries['userdata-'.$k] = $v; |
|
| 62 | 62 | } else { |
| 63 | - $queries['userdata-' . $k] = !is_null($v) ? ($v ? 'true' : 'false') : $v; |
|
| 63 | + $queries['userdata-'.$k] = !is_null($v) ? ($v ? 'true' : 'false') : $v; |
|
| 64 | 64 | } |
| 65 | 65 | } |
| 66 | 66 | } |
@@ -58,9 +58,9 @@ |
||
| 58 | 58 | if (0 !== count($this->meta)) { |
| 59 | 59 | foreach ($this->meta as $k => $v) { |
| 60 | 60 | if (!is_bool($v)) { |
| 61 | - $queries['meta_' . $k] = $v; |
|
| 61 | + $queries['meta_'.$k] = $v; |
|
| 62 | 62 | } else { |
| 63 | - $queries['meta_' . $k] = !is_null($v) ? ($v ? 'true' : 'false') : $v; |
|
| 63 | + $queries['meta_'.$k] = !is_null($v) ? ($v ? 'true' : 'false') : $v; |
|
| 64 | 64 | } |
| 65 | 65 | } |
| 66 | 66 | } |