Passed
Push — master ( 0a6b15...b44c45 )
by Ghazi
11:06
created
src/BigBlueButton.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -93,12 +93,12 @@  discard block
 block discarded – undo
93 93
     {
94 94
         // Provide an early error message if configuration is wrong
95 95
         if (is_null($baseUrl) && false === getenv('BBB_SERVER_BASE_URL')) {
96
-            throw new \RuntimeException('No BBB-Server-Url found! Please provide it either in constructor ' .
96
+            throw new \RuntimeException('No BBB-Server-Url found! Please provide it either in constructor '.
97 97
                 "(1st argument) or by environment variable 'BBB_SERVER_BASE_URL'!");
98 98
         }
99 99
 
100 100
         if (is_null($secret) && false === getenv('BBB_SECRET') && false === getenv('BBB_SECURITY_SALT')) {
101
-            throw new \RuntimeException('No BBB-Secret (or BBB-Salt) found! Please provide it either in constructor ' .
101
+            throw new \RuntimeException('No BBB-Secret (or BBB-Salt) found! Please provide it either in constructor '.
102 102
                 "(2nd argument) or by environment variable 'BBB_SECRET' (or 'BBB_SECURITY_SALT')!");
103 103
         }
104 104
 
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
         $cookieFile = tmpfile();
539 539
 
540 540
         if (!$ch) {  // @phpstan-ignore-line
541
-            throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch));
541
+            throw new \RuntimeException('Unhandled curl error: '.curl_error($ch));
542 542
         }
543 543
 
544 544
         // JSESSIONID
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
 
560 560
         // Initialise headers array with mandatory Content-type
561 561
         $headers = [
562
-            'Content-type: ' . $contentType,
562
+            'Content-type: '.$contentType,
563 563
         ];
564 564
 
565 565
         // PAYLOAD
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
             curl_setopt($ch, CURLOPT_POST, 1);
570 570
             curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
571 571
             // Add Content-length header if payload is present
572
-            $headers[] = 'Content-length: ' . mb_strlen($payload);
572
+            $headers[] = 'Content-length: '.mb_strlen($payload);
573 573
         }
574 574
 
575 575
         // Set HTTP headers
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
 
593 593
         // ANALYSE
594 594
         if (false === $data) {
595
-            throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch));
595
+            throw new \RuntimeException('Unhandled curl error: '.curl_error($ch));
596 596
         }
597 597
 
598 598
         if (is_bool($data)) {
@@ -600,7 +600,7 @@  discard block
 block discarded – undo
600 600
         }
601 601
 
602 602
         if ($httpCode < 200 || $httpCode >= 300) {
603
-            throw new BadResponseException('Bad response, HTTP code: ' . $httpCode . ', url: ' . $url);
603
+            throw new BadResponseException('Bad response, HTTP code: '.$httpCode.', url: '.$url);
604 604
         }
605 605
 
606 606
         // CLOSE AND UNSET
Please login to merge, or discard this patch.