Completed
Pull Request — master (#173)
by
unknown
42s
created
src/Util/UrlBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Parameters/MetaParameters.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,9 +56,9 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Parameters/UserDataParameters.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,9 +56,9 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Parameters/HooksDestroyParameters.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function __construct($hookId)
35 35
     {
36
-        $this->hookId  = $hookId;
36
+        $this->hookId = $hookId;
37 37
     }
38 38
 
39 39
     /**
Please login to merge, or discard this patch.
src/Core/Meeting.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Parameters/JoinMeetingParameters.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -344,7 +344,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/BigBlueButton.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
         if (extension_loaded('curl')) {
457 457
             $ch = curl_init();
458 458
             if (!$ch) {
459
-                throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch));
459
+                throw new \RuntimeException('Unhandled curl error: '.curl_error($ch));
460 460
             }
461 461
             $timeout = 10;
462 462
 
@@ -478,17 +478,17 @@  discard block
 block discarded – undo
478 478
                 curl_setopt($ch, CURLOPT_POST, 1);
479 479
                 curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
480 480
                 curl_setopt($ch, CURLOPT_HTTPHEADER, [
481
-                    'Content-type: ' . $contentType,
482
-                    'Content-length: ' . mb_strlen($payload),
481
+                    'Content-type: '.$contentType,
482
+                    'Content-length: '.mb_strlen($payload),
483 483
                 ]);
484 484
             }
485 485
             $data = curl_exec($ch);
486 486
             if ($data === false) {
487
-                throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch));
487
+                throw new \RuntimeException('Unhandled curl error: '.curl_error($ch));
488 488
             }
489 489
             $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
490 490
             if ($httpcode < 200 || $httpcode >= 300) {
491
-                throw new BadResponseException('Bad response, HTTP code: ' . $httpcode);
491
+                throw new BadResponseException('Bad response, HTTP code: '.$httpcode);
492 492
             }
493 493
             curl_close($ch);
494 494
             unset($ch);
Please login to merge, or discard this patch.
src/Parameters/CreateMeetingParameters.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1312,7 +1312,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.