@@ -58,9 +58,9 @@ |
||
| 58 | 58 | if (0 !== count($this->meta)) { |
| 59 | 59 | foreach ($this->meta as $key => $value) { |
| 60 | 60 | if (!is_bool($value)) { |
| 61 | - $queries['meta_' . $key] = $value; |
|
| 61 | + $queries['meta_'.$key] = $value; |
|
| 62 | 62 | } else { |
| 63 | - $queries['meta_' . $key] = $value ? 'true' : 'false'; |
|
| 63 | + $queries['meta_'.$key] = $value ? 'true' : 'false'; |
|
| 64 | 64 | } |
| 65 | 65 | } |
| 66 | 66 | } |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | if (!is_string($result)) { |
| 78 | - throw new \RuntimeException('String expected, but ' . gettype($result) . ' received.'); |
|
| 78 | + throw new \RuntimeException('String expected, but '.gettype($result).' received.'); |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | return $result; |
@@ -55,9 +55,9 @@ |
||
| 55 | 55 | if (0 !== count($this->userData)) { |
| 56 | 56 | foreach ($this->userData as $key => $value) { |
| 57 | 57 | if (!is_bool($value)) { |
| 58 | - $queries['userdata-' . $key] = $value; |
|
| 58 | + $queries['userdata-'.$key] = $value; |
|
| 59 | 59 | } else { |
| 60 | - $queries['userdata-' . $key] = $value ? 'true' : 'false'; |
|
| 60 | + $queries['userdata-'.$key] = $value ? 'true' : 'false'; |
|
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | 63 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | public function buildUrl(string $method = '', string $params = '', bool $append = true): string |
| 69 | 69 | { |
| 70 | - return $this->bbbServerBaseUrl . 'api/' . $method . ($append ? '?' . $this->buildQs($method, $params) : ''); |
|
| 70 | + return $this->bbbServerBaseUrl.'api/'.$method.($append ? '?'.$this->buildQs($method, $params) : ''); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | public function buildQs(string $method = '', string $params = ''): string |
| 77 | 77 | { |
| 78 | - return $params . '&checksum=' . hash($this->hashingAlgorithm, $method . $params . $this->securitySalt); |
|
| 78 | + return $params.'&checksum='.hash($this->hashingAlgorithm, $method.$params.$this->securitySalt); |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | // URL-Generators |
@@ -79,12 +79,12 @@ discard block |
||
| 79 | 79 | { |
| 80 | 80 | // Provide an early error message if configuration is wrong |
| 81 | 81 | if (is_null($baseUrl) && false === getenv('BBB_SERVER_BASE_URL')) { |
| 82 | - throw new \RuntimeException('No BBB-Server-Url found! Please provide it either in constructor ' . |
|
| 82 | + throw new \RuntimeException('No BBB-Server-Url found! Please provide it either in constructor '. |
|
| 83 | 83 | "(1st argument) or by environment variable 'BBB_SERVER_BASE_URL'!"); |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | if (is_null($secret) && false === getenv('BBB_SECRET') && false === getenv('BBB_SECURITY_SALT')) { |
| 87 | - throw new \RuntimeException('No BBB-Secret (or BBB-Salt) found! Please provide it either in constructor ' . |
|
| 87 | + throw new \RuntimeException('No BBB-Secret (or BBB-Salt) found! Please provide it either in constructor '. |
|
| 88 | 88 | "(2nd argument) or by environment variable 'BBB_SECRET' (or 'BBB_SECURITY_SALT')!"); |
| 89 | 89 | } |
| 90 | 90 | |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | $cookieFile = tmpfile(); |
| 496 | 496 | |
| 497 | 497 | if (!$ch) { // @phpstan-ignore-line |
| 498 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
| 498 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
| 499 | 499 | } |
| 500 | 500 | |
| 501 | 501 | // JSESSIONID |
@@ -521,8 +521,8 @@ discard block |
||
| 521 | 521 | curl_setopt($ch, CURLOPT_POST, 1); |
| 522 | 522 | curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); |
| 523 | 523 | curl_setopt($ch, CURLOPT_HTTPHEADER, [ |
| 524 | - 'Content-type: ' . $contentType, |
|
| 525 | - 'Content-length: ' . mb_strlen($payload), |
|
| 524 | + 'Content-type: '.$contentType, |
|
| 525 | + 'Content-length: '.mb_strlen($payload), |
|
| 526 | 526 | ]); |
| 527 | 527 | } |
| 528 | 528 | |
@@ -543,7 +543,7 @@ discard block |
||
| 543 | 543 | |
| 544 | 544 | // ANALYSE |
| 545 | 545 | if (false === $data) { |
| 546 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
| 546 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
| 547 | 547 | } |
| 548 | 548 | |
| 549 | 549 | if (is_bool($data)) { |
@@ -551,7 +551,7 @@ discard block |
||
| 551 | 551 | } |
| 552 | 552 | |
| 553 | 553 | if ($httpCode < 200 || $httpCode >= 300) { |
| 554 | - throw new BadResponseException('Bad response, HTTP code: ' . $httpCode); |
|
| 554 | + throw new BadResponseException('Bad response, HTTP code: '.$httpCode); |
|
| 555 | 555 | } |
| 556 | 556 | |
| 557 | 557 | // CLOSE AND UNSET |