@@ -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 | } |
@@ -56,9 +56,9 @@ |
||
56 | 56 | if (count($this->meta) !== 0) { |
57 | 57 | foreach ($this->meta as $k => $v) { |
58 | 58 | if (!is_bool($v)) { |
59 | - $queries['meta_' . $k] = $v; |
|
59 | + $queries['meta_'.$k] = $v; |
|
60 | 60 | } else { |
61 | - $queries['meta_' . $k] = $v ? 'true' : 'false'; |
|
61 | + $queries['meta_'.$k] = $v ? 'true' : 'false'; |
|
62 | 62 | } |
63 | 63 | } |
64 | 64 | } |
@@ -56,9 +56,9 @@ |
||
56 | 56 | if (count($this->userData) !== 0) { |
57 | 57 | foreach ($this->userData as $k => $v) { |
58 | 58 | if (!is_bool($v)) { |
59 | - $queries['userdata-' . $k] = $v; |
|
59 | + $queries['userdata-'.$k] = $v; |
|
60 | 60 | } else { |
61 | - $queries['userdata-' . $k] = $v ? 'true' : 'false'; |
|
61 | + $queries['userdata-'.$k] = $v ? 'true' : 'false'; |
|
62 | 62 | } |
63 | 63 | } |
64 | 64 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function __construct($hookId) |
35 | 35 | { |
36 | - $this->hookId = $hookId; |
|
36 | + $this->hookId = $hookId; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | { |
388 | 388 | $attendees = $this->getAttendees(); |
389 | 389 | |
390 | - $moderators = array_filter($attendees, function ($attendee) { |
|
390 | + $moderators = array_filter($attendees, function($attendee) { |
|
391 | 391 | return $attendee->getRole() === 'MODERATOR'; |
392 | 392 | }); |
393 | 393 | |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | { |
403 | 403 | $attendees = $this->getAttendees(); |
404 | 404 | |
405 | - $viewers = array_filter($attendees, function ($attendee) { |
|
405 | + $viewers = array_filter($attendees, function($attendee) { |
|
406 | 406 | return $attendee->getRole() === 'VIEWER'; |
407 | 407 | }); |
408 | 408 |
@@ -344,7 +344,7 @@ |
||
344 | 344 | 'clientURL' => $this->clientURL |
345 | 345 | ]; |
346 | 346 | |
347 | - foreach ( $this->customParameters as $key => $value ) { |
|
347 | + foreach ($this->customParameters as $key => $value) { |
|
348 | 348 | $queries[$key] = $value; |
349 | 349 | } |
350 | 350 |
@@ -398,8 +398,8 @@ |
||
398 | 398 | } |
399 | 399 | |
400 | 400 | /** |
401 | - * @param array $curlopts |
|
402 | - */ |
|
401 | + * @param array $curlopts |
|
402 | + */ |
|
403 | 403 | public function setCurlOpts($curlopts) |
404 | 404 | { |
405 | 405 | $this->curlopts = $curlopts; |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | if (extension_loaded('curl')) { |
422 | 422 | $ch = curl_init(); |
423 | 423 | if (!$ch) { |
424 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
424 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
425 | 425 | } |
426 | 426 | $timeout = 10; |
427 | 427 | |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | $cookiefile = tmpfile(); |
430 | 430 | $cookiefilepath = stream_get_meta_data($cookiefile)['uri']; |
431 | 431 | |
432 | - foreach ($this->curlopts as $opt => $value){ |
|
432 | + foreach ($this->curlopts as $opt => $value) { |
|
433 | 433 | curl_setopt($ch, $opt, $value); |
434 | 434 | } |
435 | 435 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); |
@@ -446,17 +446,17 @@ discard block |
||
446 | 446 | curl_setopt($ch, CURLOPT_POST, 1); |
447 | 447 | curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); |
448 | 448 | curl_setopt($ch, CURLOPT_HTTPHEADER, [ |
449 | - 'Content-type: ' . $contentType, |
|
450 | - 'Content-length: ' . mb_strlen($payload), |
|
449 | + 'Content-type: '.$contentType, |
|
450 | + 'Content-length: '.mb_strlen($payload), |
|
451 | 451 | ]); |
452 | 452 | } |
453 | 453 | $data = curl_exec($ch); |
454 | 454 | if ($data === false) { |
455 | - throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch)); |
|
455 | + throw new \RuntimeException('Unhandled curl error: '.curl_error($ch)); |
|
456 | 456 | } |
457 | 457 | $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); |
458 | 458 | if ($httpcode < 200 || $httpcode >= 300) { |
459 | - throw new BadResponseException('Bad response, HTTP code: ' . $httpcode); |
|
459 | + throw new BadResponseException('Bad response, HTTP code: '.$httpcode); |
|
460 | 460 | } |
461 | 461 | curl_close($ch); |
462 | 462 | unset($ch); |
@@ -1312,7 +1312,7 @@ |
||
1312 | 1312 | 'breakoutRoomsPrivateChatEnabled' => $this->isBreakoutRoomsPrivateChatEnabled() ? 'true' : 'false', |
1313 | 1313 | 'endWhenNoModerator' => $this->isEndWhenNoModerator() ? 'true' : 'false', |
1314 | 1314 | 'meetingKeepEvents' => $this->isMeetingKeepEvents() ? 'true' : 'false', |
1315 | - 'meetingLayout' => $this->getMeetingLayout() , |
|
1315 | + 'meetingLayout' => $this->getMeetingLayout(), |
|
1316 | 1316 | ]; |
1317 | 1317 | |
1318 | 1318 | // Add breakout rooms parameters only if the meeting is a breakout room |
@@ -69,7 +69,7 @@ |
||
69 | 69 | $images = []; |
70 | 70 | foreach ($format->preview->images->children() as $image) { |
71 | 71 | $imageObj = new Image(); |
72 | - $imageObj->setAlt( $image['alt']->__toString()); |
|
72 | + $imageObj->setAlt($image['alt']->__toString()); |
|
73 | 73 | $imageObj->setHeight((int) $image['height']->__toString()); |
74 | 74 | $imageObj->setWidth((int) $image['width']->__toString()); |
75 | 75 | $imageObj->setLink($image->__toString()); |