@@ -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 | } |
@@ -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] = $v ? 'true' : 'false'; |
|
63 | + $queries['userdata-'.$k] = $v ? 'true' : 'false'; |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 | } |
@@ -61,9 +61,9 @@ |
||
61 | 61 | if (0 !== count($this->meta)) { |
62 | 62 | foreach ($this->meta as $k => $v) { |
63 | 63 | if (!is_bool($v)) { |
64 | - $queries['meta_' . $k] = $v; |
|
64 | + $queries['meta_'.$k] = $v; |
|
65 | 65 | } else { |
66 | - $queries['meta_' . $k] = $v ? 'true' : 'false'; |
|
66 | + $queries['meta_'.$k] = $v ? 'true' : 'false'; |
|
67 | 67 | } |
68 | 68 | } |
69 | 69 | } |
@@ -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); |
@@ -444,8 +444,8 @@ |
||
444 | 444 | } |
445 | 445 | |
446 | 446 | if(!$this->guest){ |
447 | - unset($queries['guest']); |
|
448 | - } |
|
447 | + unset($queries['guest']); |
|
448 | + } |
|
449 | 449 | $this->buildUserData($queries); |
450 | 450 | |
451 | 451 | return $this->buildHTTPQuery($queries); |
@@ -443,7 +443,7 @@ |
||
443 | 443 | $queries[$key] = $value; |
444 | 444 | } |
445 | 445 | |
446 | - if(!$this->guest){ |
|
446 | + if (!$this->guest) { |
|
447 | 447 | unset($queries['guest']); |
448 | 448 | } |
449 | 449 | $this->buildUserData($queries); |