@@ -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 | } |
@@ -28,14 +28,14 @@ |
||
| 28 | 28 | /** |
| 29 | 29 | * @var string |
| 30 | 30 | */ |
| 31 | - private ?string $recordingId =null; |
|
| 31 | + private ?string $recordingId = null; |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * UpdateRecordingsParameters constructor. |
| 35 | 35 | * |
| 36 | 36 | * @param mixed $recordingId |
| 37 | 37 | */ |
| 38 | - public function __construct($recordingId=null) |
|
| 38 | + public function __construct($recordingId = null) |
|
| 39 | 39 | { |
| 40 | 40 | $this->recordingId = $recordingId; |
| 41 | 41 | } |
@@ -28,12 +28,12 @@ discard block |
||
| 28 | 28 | /** |
| 29 | 29 | * @var string |
| 30 | 30 | */ |
| 31 | - private ?string $recordingId =null; |
|
| 31 | + private ?string $recordingId = null; |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * @var bool |
| 35 | 35 | */ |
| 36 | - private ?bool $publish=null; |
|
| 36 | + private ?bool $publish = null; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * PublishRecordingsParameters constructor. |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * @param mixed $recordingId |
| 42 | 42 | * @param mixed $publish |
| 43 | 43 | */ |
| 44 | - public function __construct($recordingId, $publish=null) |
|
| 44 | + public function __construct($recordingId, $publish = null) |
|
| 45 | 45 | { |
| 46 | 46 | $this->recordingId = $recordingId; |
| 47 | 47 | $this->publish = $publish; |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | return $this->buildHTTPQuery( |
| 92 | 92 | [ |
| 93 | 93 | 'recordID' => $this->recordingId, |
| 94 | - 'publish' => !is_null($this->publish)?($this->publish ? 'true' : 'false'):$this->publish, |
|
| 94 | + 'publish' => !is_null($this->publish) ? ($this->publish ? 'true' : 'false') : $this->publish, |
|
| 95 | 95 | ] |
| 96 | 96 | ); |
| 97 | 97 | } |
@@ -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 | } |
@@ -30,14 +30,14 @@ |
||
| 30 | 30 | /** |
| 31 | 31 | * @var string |
| 32 | 32 | */ |
| 33 | - private ?string $meetingId=null; |
|
| 33 | + private ?string $meetingId = null; |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * EndMeetingParameters constructor. |
| 37 | 37 | * |
| 38 | 38 | * @param string $meetingId |
| 39 | 39 | */ |
| 40 | - public function __construct($meetingId=null) |
|
| 40 | + public function __construct($meetingId = null) |
|
| 41 | 41 | { |
| 42 | 42 | $this->meetingId = $meetingId; |
| 43 | 43 | } |
@@ -28,17 +28,17 @@ |
||
| 28 | 28 | /** |
| 29 | 29 | * @var string |
| 30 | 30 | */ |
| 31 | - private ?string $meetingId =null; |
|
| 31 | + private ?string $meetingId = null; |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * @var string |
| 35 | 35 | */ |
| 36 | - private ?string $recordId =null; |
|
| 36 | + private ?string $recordId = null; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @var string |
| 40 | 40 | */ |
| 41 | - private ?string $state =null; |
|
| 41 | + private ?string $state = null; |
|
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * @return string |
@@ -25,17 +25,17 @@ discard block |
||
| 25 | 25 | /** |
| 26 | 26 | * @var string |
| 27 | 27 | */ |
| 28 | - private ?string $callbackUrl =null; |
|
| 28 | + private ?string $callbackUrl = null; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * @var string |
| 32 | 32 | */ |
| 33 | - private ?string $meetingId =null; |
|
| 33 | + private ?string $meetingId = null; |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @var bool |
| 37 | 37 | */ |
| 38 | - private ?bool $getRaw =null; |
|
| 38 | + private ?bool $getRaw = null; |
|
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * HooksCreateParameters constructor. |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | $queries = [ |
| 116 | 116 | 'callbackURL' => $this->callbackUrl, |
| 117 | 117 | 'meetingID' => $this->meetingId, |
| 118 | - 'getRaw' => !is_null($this->getRaw)?($this->getRaw ? 'true' : 'false'):$this->getRaw, |
|
| 118 | + 'getRaw' => !is_null($this->getRaw) ? ($this->getRaw ? 'true' : 'false') : $this->getRaw, |
|
| 119 | 119 | ]; |
| 120 | 120 | |
| 121 | 121 | return $this->buildHTTPQuery($queries); |
@@ -30,49 +30,49 @@ discard block |
||
| 30 | 30 | /** |
| 31 | 31 | * @var string |
| 32 | 32 | */ |
| 33 | - private ?string $meetingId =null; |
|
| 33 | + private ?string $meetingId = null; |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @var string |
| 37 | 37 | */ |
| 38 | - private ?string $username =null; |
|
| 38 | + private ?string $username = null; |
|
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * @var string |
| 42 | 42 | * |
| 43 | 43 | * @deprecated |
| 44 | 44 | */ |
| 45 | - private ?string $password=null; |
|
| 45 | + private ?string $password = null; |
|
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | 48 | * @var string |
| 49 | 49 | */ |
| 50 | - private ?string $userId=null; |
|
| 50 | + private ?string $userId = null; |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * @var string |
| 54 | 54 | */ |
| 55 | - private ?string $webVoiceConf=null; |
|
| 55 | + private ?string $webVoiceConf = null; |
|
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | 58 | * @var string |
| 59 | 59 | */ |
| 60 | - private ?string $creationTime=null; |
|
| 60 | + private ?string $creationTime = null; |
|
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * @var string |
| 64 | 64 | */ |
| 65 | - private ?string $avatarURL =null; |
|
| 65 | + private ?string $avatarURL = null; |
|
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | 68 | * @var bool |
| 69 | 69 | */ |
| 70 | - private ?bool $redirect =null; |
|
| 70 | + private ?bool $redirect = null; |
|
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | 73 | * @var string |
| 74 | 74 | */ |
| 75 | - private ?string $clientURL =null; |
|
| 75 | + private ?string $clientURL = null; |
|
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | 78 | * @var array |
@@ -82,27 +82,27 @@ discard block |
||
| 82 | 82 | /** |
| 83 | 83 | * @var string |
| 84 | 84 | */ |
| 85 | - private ?string $role =null; |
|
| 85 | + private ?string $role = null; |
|
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | 88 | * @var bool |
| 89 | 89 | */ |
| 90 | - private ?bool $excludeFromDashboard =null; |
|
| 90 | + private ?bool $excludeFromDashboard = null; |
|
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * @var string |
| 94 | 94 | */ |
| 95 | - private ?string $configToken=null; |
|
| 95 | + private ?string $configToken = null; |
|
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | 98 | * @var bool |
| 99 | 99 | */ |
| 100 | - private ?bool $guest =null; |
|
| 100 | + private ?bool $guest = null; |
|
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | 103 | * @var string |
| 104 | 104 | */ |
| 105 | - private ?string $defaultLayout =null; |
|
| 105 | + private ?string $defaultLayout = null; |
|
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | 108 | * JoinMeetingParametersTest constructor. |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | * @param mixed $meetingId |
| 113 | 113 | * @param mixed $username |
| 114 | 114 | */ |
| 115 | - public function __construct($meetingId =null, $username=null, $passworOrRole=null) |
|
| 115 | + public function __construct($meetingId = null, $username = null, $passworOrRole = null) |
|
| 116 | 116 | { |
| 117 | 117 | $this->meetingId = $meetingId; |
| 118 | 118 | $this->username = $username; |
@@ -430,12 +430,12 @@ discard block |
||
| 430 | 430 | 'webVoiceConf' => $this->webVoiceConf, |
| 431 | 431 | 'createTime' => $this->creationTime, |
| 432 | 432 | 'role' => $this->role, |
| 433 | - 'excludeFromDashboard' => !is_null($this->excludeFromDashboard)?($this->excludeFromDashboard ? 'true' : 'false'):$this->excludeFromDashboard, |
|
| 433 | + 'excludeFromDashboard' => !is_null($this->excludeFromDashboard) ? ($this->excludeFromDashboard ? 'true' : 'false') : $this->excludeFromDashboard, |
|
| 434 | 434 | 'avatarURL' => $this->avatarURL, |
| 435 | - 'redirect' => !is_null($this->redirect)?($this->redirect ? 'true' : 'false'):$this->redirect, |
|
| 435 | + 'redirect' => !is_null($this->redirect) ? ($this->redirect ? 'true' : 'false') : $this->redirect, |
|
| 436 | 436 | 'clientURL' => $this->clientURL, |
| 437 | 437 | 'configToken' => $this->configToken, |
| 438 | - 'guest' => !is_null($this->guest)?($this->guest ? 'true' : 'false'):$this->guest, |
|
| 438 | + 'guest' => !is_null($this->guest) ? ($this->guest ? 'true' : 'false') : $this->guest, |
|
| 439 | 439 | 'defaultLayout' => $this->defaultLayout, |
| 440 | 440 | ]; |
| 441 | 441 | |