Passed
Pull Request — master (#222)
by
unknown
01:59
created
src/Parameters/MetaParameters.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->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
         }
Please login to merge, or discard this patch.
src/Parameters/DocumentableTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
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;
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
@@ -55,9 +55,9 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/BigBlueButton.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
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
 
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
         $cookieFile = tmpfile();
509 509
 
510 510
         if (!$ch) {  // @phpstan-ignore-line
511
-            throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch));
511
+            throw new \RuntimeException('Unhandled curl error: '.curl_error($ch));
512 512
         }
513 513
 
514 514
         // JSESSIONID
@@ -534,8 +534,8 @@  discard block
 block discarded – undo
534 534
             curl_setopt($ch, CURLOPT_POST, 1);
535 535
             curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
536 536
             curl_setopt($ch, CURLOPT_HTTPHEADER, [
537
-                'Content-type: ' . $contentType,
538
-                'Content-length: ' . mb_strlen($payload),
537
+                'Content-type: '.$contentType,
538
+                'Content-length: '.mb_strlen($payload),
539 539
             ]);
540 540
         }
541 541
 
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
 
557 557
         // ANALYSE
558 558
         if (false === $data) {
559
-            throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch));
559
+            throw new \RuntimeException('Unhandled curl error: '.curl_error($ch));
560 560
         }
561 561
 
562 562
         if (is_bool($data)) {
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
         }
565 565
 
566 566
         if ($httpCode < 200 || $httpCode >= 300) {
567
-            throw new BadResponseException('Bad response, HTTP code: ' . $httpCode . ', url: ' . $url);
567
+            throw new BadResponseException('Bad response, HTTP code: '.$httpCode.', url: '.$url);
568 568
         }
569 569
 
570 570
         // CLOSE AND UNSET
Please login to merge, or discard this patch.
src/Util/UrlBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function buildUrl(string $method = '', string $params = '', bool $append = true): string
92 92
     {
93
-        return $this->baseUrl . 'api/' . $method . ($append ? '?' . $this->buildQs($method, $params) : '');
93
+        return $this->baseUrl.'api/'.$method.($append ? '?'.$this->buildQs($method, $params) : '');
94 94
     }
95 95
 
96 96
     /**
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function buildQs(string $method = '', string $params = ''): string
102 102
     {
103
-        return $params . '&checksum=' . hash($this->hashingAlgorithm, $method . $params . $this->secret);
103
+        return $params.'&checksum='.hash($this->hashingAlgorithm, $method.$params.$this->secret);
104 104
     }
105 105
 
106 106
     // URL-Generators
Please login to merge, or discard this patch.