Passed
Pull Request — master (#189)
by Ghazi
10:24
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/UserDataParameters.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@
 block discarded – undo
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
         }
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
@@ -61,9 +61,9 @@
 block discarded – undo
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
         }
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
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.