Completed
Push — v2.3-stable ( af3f38...a39ba1 )
by Jesus
03:44 queued 01:40
created
classes/locallib/bigbluebutton.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
 defined('MOODLE_INTERNAL') || die();
29 29
 
30
-require_once($CFG->dirroot . '/mod/bigbluebuttonbn/locallib.php');
30
+require_once($CFG->dirroot.'/mod/bigbluebuttonbn/locallib.php');
31 31
 
32 32
 /**
33 33
  * Wrapper for executing http requests on a BigBlueButton server.
@@ -46,18 +46,18 @@  discard block
 block discarded – undo
46 46
      * @return string
47 47
      */
48 48
     public static function action_url($action = '', $data = array(), $metadata = array()) {
49
-        $baseurl = self::sanitized_url() . $action . '?';
49
+        $baseurl = self::sanitized_url().$action.'?';
50 50
         $metadata = array_combine(
51 51
             array_map(
52 52
                 function($k) {
53
-                    return 'meta_' . $k;
53
+                    return 'meta_'.$k;
54 54
                 }
55 55
                 , array_keys($metadata)
56 56
             ),
57 57
             $metadata
58 58
         );
59 59
         $params = http_build_query($data + $metadata, '', '&');
60
-        return $baseurl . $params . '&checksum=' . sha1($action . $params . self::sanitized_secret());
60
+        return $baseurl.$params.'&checksum='.sha1($action.$params.self::sanitized_secret());
61 61
     }
62 62
 
63 63
     /**
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         if (substr($serverurl, -4) == '/api') {
74 74
             $serverurl = rtrim($serverurl, '/api');
75 75
         }
76
-        return $serverurl . '/api/';
76
+        return $serverurl.'/api/';
77 77
     }
78 78
 
79 79
     /**
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
         $pserverurl = parse_url(trim(\mod_bigbluebuttonbn\locallib\config::get('server_url')));
95 95
         $pserverurlport = "";
96 96
         if (isset($pserverurl['port'])) {
97
-            $pserverurlport = ":" . $pserverurl['port'];
97
+            $pserverurlport = ":".$pserverurl['port'];
98 98
         }
99
-        return $pserverurl['scheme'] . "://" . $pserverurl['host'] . $pserverurlport . "/";
99
+        return $pserverurl['scheme']."://".$pserverurl['host'].$pserverurlport."/";
100 100
     }
101 101
 }
Please login to merge, or discard this patch.