Completed
Pull Request — master (#148)
by
unknown
26s
created
src/BigBlueButton.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
         if (extension_loaded('curl')) {
458 458
             $ch = curl_init();
459 459
             if (!$ch) {
460
-                throw new \RuntimeException('Unhandled curl error: ' . curl_error($ch));
460
+                throw new \RuntimeException('Unhandled curl error: '.curl_error($ch));
461 461
             }
462 462
 
463 463
             // Needed to store the JSESSIONID
@@ -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
 
Please login to merge, or discard this patch.