Passed
Push — 1.10.x ( 08890a...2189d7 )
by Yannick
116:38 queued 75:46
created
plugin/ext_auth_chamilo_logout_button_behaviour/plugin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 //the plugin title
13
-$plugin_info['title']      = 'Enable or disable logout button';
13
+$plugin_info['title'] = 'Enable or disable logout button';
14 14
 
15 15
 //the comments that go with the plugin
16 16
 $plugin_info['comment']     = "If you use some other authentication than local Chamilo authentication, you may have to disable the Chamilo logout button and give users information about your SSO logout.";
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 $form->addElement("html", "<div class='normal-message'>Fill the text boxes below to overwrite the default values used in this plugin</div>");
24 24
 $form->addElement('text', 'eaclbb_form_link_url', 'Page to load when clicking on the logout button');
25 25
 $form->addElement('text', 'eaclbb_form_link_infobulle', 'Tooltip text for the logout button (displayed on mouseover)');
26
-$form->addElement('checkbox', 'eaclbb_form_link_image', "Display the logout button disabled (black and white)", "",  array('checked' => true));
27
-$form->addElement('checkbox', 'eaclbb_form_alert_onoff', "Display an alert when clicking on the logout button", "",  array('checked' => true));
26
+$form->addElement('checkbox', 'eaclbb_form_link_image', "Display the logout button disabled (black and white)", "", array('checked' => true));
27
+$form->addElement('checkbox', 'eaclbb_form_alert_onoff', "Display an alert when clicking on the logout button", "", array('checked' => true));
28 28
 $form->addElement('text', 'eaclbb_form_alert_text', "Text displayed in the alert box when clickng on the logout button (if checkbox above has been checked).");
29 29
 
30 30
 $form->addButtonSave(get_lang('Save'), 'submit_button');
@@ -44,4 +44,4 @@  discard block
 block discarded – undo
44 44
 $plugin_info['settings_form'] = $form;
45 45
 
46 46
 // Set the templates that are going to be used
47
-$plugin_info['templates']   = array('template.tpl');
47
+$plugin_info['templates'] = array('template.tpl');
Please login to merge, or discard this patch.
plugin/bbb/listing.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -65,22 +65,22 @@  discard block
 block discarded – undo
65 65
         case 'end':
66 66
             $bbb->endMeeting($_GET['id']);
67 67
             $message = Display::return_message(
68
-                get_lang('MeetingClosed') . '<br />' . get_lang(
68
+                get_lang('MeetingClosed').'<br />'.get_lang(
69 69
                     'MeetingClosedComment'
70 70
                 ),
71 71
                 'success',
72 72
                 false
73 73
             );
74 74
 
75
-            if (file_exists(__DIR__ . '/config.vm.php')) {
76
-                require __DIR__ . '/../../vendor/autoload.php';
75
+            if (file_exists(__DIR__.'/config.vm.php')) {
76
+                require __DIR__.'/../../vendor/autoload.php';
77 77
 
78
-                require __DIR__ . '/lib/vm/AbstractVM.php';
79
-                require __DIR__ . '/lib/vm/VMInterface.php';
80
-                require __DIR__ . '/lib/vm/DigitalOceanVM.php';
81
-                require __DIR__ . '/lib/VM.php';
78
+                require __DIR__.'/lib/vm/AbstractVM.php';
79
+                require __DIR__.'/lib/vm/VMInterface.php';
80
+                require __DIR__.'/lib/vm/DigitalOceanVM.php';
81
+                require __DIR__.'/lib/VM.php';
82 82
 
83
-                $config = require __DIR__ . '/config.vm.php';
83
+                $config = require __DIR__.'/config.vm.php';
84 84
 
85 85
                 $vm = new VM($config);
86 86
                 $vm->resizeToMinLimit();
@@ -122,4 +122,4 @@  discard block
 block discarded – undo
122 122
 $tpl->assign('message', $message);
123 123
 $listing_tpl = 'bbb/listing.tpl';
124 124
 $content = $tpl->fetch($listing_tpl);
125
-$tpl->assign('content', $content);$tpl->display_one_col_template();
125
+$tpl->assign('content', $content); $tpl->display_one_col_template();
Please login to merge, or discard this patch.
plugin/bbb/start.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * @package chamilo.plugin.bigbluebutton
6 6
  */
7 7
 
8
-require __DIR__ . '/../../vendor/autoload.php';
8
+require __DIR__.'/../../vendor/autoload.php';
9 9
 
10 10
 $course_plugin = 'bbb'; //needed in order to load the plugin lang variables
11 11
 require_once dirname(__FILE__).'/config.php';
@@ -25,16 +25,16 @@  discard block
 block discarded – undo
25 25
 
26 26
         if (isset($_GET['launch']) && $_GET['launch'] == 1) {
27 27
 
28
-            if (file_exists(__DIR__ . '/config.vm.php')) {
29
-                $config = require __DIR__ . '/config.vm.php';
28
+            if (file_exists(__DIR__.'/config.vm.php')) {
29
+                $config = require __DIR__.'/config.vm.php';
30 30
                 $vmIsEnabled = true;
31 31
                 $host = null;
32 32
                 $salt = null;
33 33
 
34
-                require __DIR__ . '/lib/vm/AbstractVM.php';
35
-                require __DIR__ . '/lib/vm/VMInterface.php';
36
-                require __DIR__ . '/lib/vm/DigitalOceanVM.php';
37
-                require __DIR__ . '/lib/VM.php';
34
+                require __DIR__.'/lib/vm/AbstractVM.php';
35
+                require __DIR__.'/lib/vm/VMInterface.php';
36
+                require __DIR__.'/lib/vm/DigitalOceanVM.php';
37
+                require __DIR__.'/lib/VM.php';
38 38
 
39 39
                 $vm = new VM($config);
40 40
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             }
71 71
         } else {
72 72
             $url = 'listing.php?'.api_get_cidreq();
73
-            header('Location: ' . $url);
73
+            header('Location: '.$url);
74 74
             exit;
75 75
         }
76 76
     } else {
Please login to merge, or discard this patch.
plugin/bbb/lang/english.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 $strings['VideoConferenceAddedToTheCalendar']   = "Videoconference added to the calendar";
21 21
 $strings['VideoConferenceAddedToTheLinkTool']   = "Videoconference added to the link tool";
22 22
 
23
-$strings['GoToTheVideoConference']   = "Go to the videoconference";
23
+$strings['GoToTheVideoConference'] = "Go to the videoconference";
24 24
 
25 25
 $strings['Records']             = "Recording";
26 26
 $strings['Meeting']             = "Meeting";
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 $strings['EnterConference']     = "Enter the videoconference";
32 32
 $strings['RecordList']          = "Recording list";
33 33
 $strings['ServerIsNotRunning']  = "Videoconference server is not running";
34
-$strings['ServerIsNotConfigured']  = "Videoconference server is not configured";
34
+$strings['ServerIsNotConfigured'] = "Videoconference server is not configured";
35 35
 
36 36
 $strings['XUsersOnLine']        = "%s user(s) online";
37 37
 
Please login to merge, or discard this patch.
plugin/bbb/lang/french.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 $strings['VideoConferenceAddedToTheCalendar']   = "Vidéoconférence ajoutée au calendrier";
14 14
 $strings['VideoConferenceAddedToTheLinkTool']   = "Vidéoconférence ajoutée comme lien. Vous pouvez éditer et publier le lien sur la page principale du cours depuis l'outil liens.";
15 15
 
16
-$strings['GoToTheVideoConference']   = "Entrer dans la salle de conférence";
16
+$strings['GoToTheVideoConference'] = "Entrer dans la salle de conférence";
17 17
 
18 18
 $strings['Records']             = "Enregistrement";
19 19
 $strings['Meeting']             = "Salle de conférence";
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 $strings['EnterConference']     = "Entrer dans la salle de conférence";
25 25
 $strings['RecordList']          = "Liste des enregistrements";
26 26
 $strings['ServerIsNotRunning']  = "Le serveur de vidéoconférence ne fonctionne pas";
27
-$strings['ServerIsNotConfigured']  = "Le serveur de vidéoconférence n'est pas configuré correctement";
27
+$strings['ServerIsNotConfigured'] = "Le serveur de vidéoconférence n'est pas configuré correctement";
28 28
 
29 29
 $strings['XUsersOnLine']        = "%s utilisateurs dans la salle";
30 30
 
Please login to merge, or discard this patch.
plugin/bbb/lang/spanish.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 $strings['VideoConferenceAddedToTheCalendar']   = "Videoconferencia añadida al calendario";
14 14
 $strings['VideoConferenceAddedToTheLinkTool']   = "Videoconferencia añadida como enlace. Puede editar y publicar el enlace en la página principal del curso desde la herramienta de enlace.";
15 15
 
16
-$strings['GoToTheVideoConference']   = "Ir a la videoconferencia";
16
+$strings['GoToTheVideoConference'] = "Ir a la videoconferencia";
17 17
 
18 18
 $strings['Records']             = "Grabación";
19 19
 $strings['Meeting']             = "Sala de conferencia";
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 $strings['EnterConference']     = "Entrar a la videoconferencia";
25 25
 $strings['RecordList']          = "Lista de grabaciones";
26 26
 $strings['ServerIsNotRunning']  = "El servidor de videoconferencia no está funcionando";
27
-$strings['ServerIsNotConfigured']  = "El servidor de videoconferencia no está configurado correctamente";
27
+$strings['ServerIsNotConfigured'] = "El servidor de videoconferencia no está configurado correctamente";
28 28
 
29 29
 $strings['XUsersOnLine']        = "%s usuario(s) en la sala";
30 30
 
Please login to merge, or discard this patch.
plugin/bbb/cron.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require __DIR__ . '/../../vendor/autoload.php';
4
-if (file_exists(__DIR__ . '/config.vm.php')) {
3
+require __DIR__.'/../../vendor/autoload.php';
4
+if (file_exists(__DIR__.'/config.vm.php')) {
5 5
 
6
-    require_once dirname(__FILE__) . '/config.php';
6
+    require_once dirname(__FILE__).'/config.php';
7 7
 
8
-    require __DIR__ . '/lib/vm/AbstractVM.php';
9
-    require __DIR__ . '/lib/vm/VMInterface.php';
10
-    require __DIR__ . '/lib/vm/DigitalOceanVM.php';
11
-    require __DIR__ . '/lib/VM.php';
8
+    require __DIR__.'/lib/vm/AbstractVM.php';
9
+    require __DIR__.'/lib/vm/VMInterface.php';
10
+    require __DIR__.'/lib/vm/DigitalOceanVM.php';
11
+    require __DIR__.'/lib/VM.php';
12 12
 
13
-    $config = require __DIR__ . '/config.vm.php';
13
+    $config = require __DIR__.'/config.vm.php';
14 14
 
15 15
     $vm = new VM($config);
16 16
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
             if (empty($activeSessions)) {
22 22
                 $vm->runCron();
23 23
             } else {
24
-                echo "Can't run cron active sessions found: " . $activeSessions;
24
+                echo "Can't run cron active sessions found: ".$activeSessions;
25 25
             }
26 26
         }
27 27
     }
Please login to merge, or discard this patch.
plugin/bbb/lib/bbb_api.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -55,25 +55,25 @@  discard block
 block discarded – undo
55 55
 	*/
56 56
 		// BASE CONFIGS - set these for your BBB server in config.php and they will
57 57
 		// simply flow in here via the constants:
58
-		$this->_securitySalt 		= CONFIG_SECURITY_SALT;
59
-		$this->_bbbServerBaseUrl 	= CONFIG_SERVER_BASE_URL;
58
+		$this->_securitySalt = CONFIG_SECURITY_SALT;
59
+		$this->_bbbServerBaseUrl = CONFIG_SERVER_BASE_URL;
60 60
 	}
61 61
 
62
-	private function _processXmlResponse($url){
62
+	private function _processXmlResponse($url) {
63 63
 	/*
64 64
 	A private utility method used by other public methods to process XML responses.
65 65
 	*/
66 66
 		if (extension_loaded('curl')) {
67
-			$ch = curl_init() or die ( curl_error($ch) );
67
+			$ch = curl_init() or die (curl_error($ch));
68 68
 			$timeout = 10;
69
-			curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false);
70
-			curl_setopt( $ch, CURLOPT_URL, $url );
71
-			curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
72
-			curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, $timeout);
73
-			$data = curl_exec( $ch );
74
-			curl_close( $ch );
75
-
76
-			if($data)
69
+			curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
70
+			curl_setopt($ch, CURLOPT_URL, $url);
71
+			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
72
+			curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
73
+			$data = curl_exec($ch);
74
+			curl_close($ch);
75
+
76
+			if ($data)
77 77
 				return (new SimpleXMLElement($data));
78 78
 			else
79 79
 				return false;
@@ -137,10 +137,10 @@  discard block
 block discarded – undo
137 137
 		'&duration='.urlencode($creationParams['duration']);
138 138
 		//'&meta_category='.urlencode($creationParams['meta_category']);
139 139
 		$welcomeMessage = $creationParams['welcomeMsg'];
140
-		if(trim($welcomeMessage))
140
+		if (trim($welcomeMessage))
141 141
 			$params .= '&welcome='.urlencode($welcomeMessage);
142 142
 		// Return the complete URL:
143
-		return ( $creationUrl.$params.'&checksum='.sha1("create".$params.$this->_securitySalt) );
143
+		return ($creationUrl.$params.'&checksum='.sha1("create".$params.$this->_securitySalt));
144 144
 	}
145 145
 
146 146
 	public function createMeetingWithXmlResponseArray($creationParams) {
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 		$xml = $this->_processXmlResponse($this->getCreateMeetingURL($creationParams));
166 166
 
167 167
         if ($xml) {
168
-			if($xml->meetingID)
168
+			if ($xml->meetingID)
169 169
 				return array(
170 170
 					'returncode' => $xml->returncode,
171 171
 					'message' => $xml->message,
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 		$meetingId = '1234'		-- REQUIRED - The unique id for the meeting
284 284
 		*/
285 285
 		$xml = $this->_processXmlResponse($this->getIsMeetingRunningUrl($meetingId));
286
-		if($xml) {
286
+		if ($xml) {
287 287
 			return array(
288 288
 				'returncode' => $xml->returncode,
289 289
 				'running' => $xml->running 	// -- Returns true/false.
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 		and then handle the results that we get in the XML response.
311 311
 		*/
312 312
 		$xml = $this->_processXmlResponse($this->getGetMeetingsUrl());
313
-		if($xml) {
313
+		if ($xml) {
314 314
 			// If we don't get a success code, stop processing and return just the returncode:
315 315
 			if ($xml->returncode != 'SUCCESS') {
316 316
 				$result = array(
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 		);
380 380
 		*/
381 381
 		$xml = $this->_processXmlResponse($this->getMeetingInfoUrl($infoParams));
382
-		if($xml) {
382
+		if ($xml) {
383 383
 			// If we don't get a success code or messageKey, find out why:
384 384
 			if (($xml->returncode != 'SUCCESS') || ($xml->messageKey == null)) {
385 385
 				$result = array(
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 		probably be required in user code when 'recording' is set to true.
455 455
 		*/
456 456
 		$xml = $this->_processXmlResponse($this->getRecordingsUrl($recordingParams));
457
-		if($xml) {
457
+		if ($xml) {
458 458
 			// If we don't get a success code or messageKey, find out why:
459 459
 			if (($xml->returncode != 'SUCCESS') || ($xml->messageKey == null)) {
460 460
 				$result = array(
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
 		);
525 525
 		*/
526 526
 		$xml = $this->_processXmlResponse($this->getPublishRecordingsUrl($recordingParams));
527
-		if($xml) {
527
+		if ($xml) {
528 528
 			return array(
529 529
 				'returncode' => $xml->returncode,
530 530
 				'published' => $xml->published 	// -- Returns true/false.
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
 		*/
558 558
 
559 559
 		$xml = $this->_processXmlResponse($this->getDeleteRecordingsUrl($recordingParams));
560
-		if($xml) {
560
+		if ($xml) {
561 561
 			return array(
562 562
 				'returncode' => $xml->returncode,
563 563
 				'deleted' => $xml->deleted 	// -- Returns true/false.
Please login to merge, or discard this patch.
plugin/bbb/lib/bbb.lib.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -122,20 +122,20 @@  discard block
 block discarded – undo
122 122
         $params['session_id'] = api_get_session_id();
123 123
 
124 124
         $params['attendee_pw'] = isset($params['moderator_pw']) ? $params['moderator_pw'] : api_get_course_id();
125
-        $attendeePassword =  $params['attendee_pw'];
125
+        $attendeePassword = $params['attendee_pw'];
126 126
         $params['moderator_pw'] = isset($params['moderator_pw']) ? $params['moderator_pw'] : $this->getModMeetingPassword();
127 127
         $moderatorPassword = $params['moderator_pw'];
128 128
 
129 129
         $params['record'] = api_get_course_setting('big_blue_button_record_and_store', $courseCode) == 1 ? true : false;
130 130
         $max = api_get_course_setting('big_blue_button_max_students_allowed', $courseCode);
131
-        $max =  isset($max) ? $max : -1;
131
+        $max = isset($max) ? $max : -1;
132 132
         $params['status'] = 1;
133 133
         // Generate a pseudo-global-unique-id to avoid clash of conferences on
134 134
         // the same BBB server with several Chamilo portals
135 135
         $params['remote_id'] = uniqid(true, true);
136 136
         // Each simultaneous conference room needs to have a different
137 137
         // voice_bridge composed of a 5 digits number, so generating a random one
138
-        $params['voice_bridge'] = rand(10000,99999);
138
+        $params['voice_bridge'] = rand(10000, 99999);
139 139
 
140 140
         if ($this->debug) {
141 141
             error_log("enter create_meeting ".print_r($params, 1));
@@ -158,23 +158,23 @@  discard block
 block discarded – undo
158 158
             $duration = 300;
159 159
 
160 160
             $bbbParams = array(
161
-                'meetingId' => $params['remote_id'], 					// REQUIRED
162
-                'meetingName' => $meetingName, 	// REQUIRED
163
-                'attendeePw' => $attendeePassword, 					// Match this value in getJoinMeetingURL() to join as attendee.
164
-                'moderatorPw' => $moderatorPassword, 					// Match this value in getJoinMeetingURL() to join as moderator.
165
-                'welcomeMsg' => $welcomeMessage, 					// ''= use default. Change to customize.
166
-                'dialNumber' => '', 					// The main number to call into. Optional.
167
-                'voiceBridge' => $params['voice_bridge'], 					// PIN to join voice. Required.
168
-                'webVoice' => '', 						// Alphanumeric to join voice. Optional.
161
+                'meetingId' => $params['remote_id'], // REQUIRED
162
+                'meetingName' => $meetingName, // REQUIRED
163
+                'attendeePw' => $attendeePassword, // Match this value in getJoinMeetingURL() to join as attendee.
164
+                'moderatorPw' => $moderatorPassword, // Match this value in getJoinMeetingURL() to join as moderator.
165
+                'welcomeMsg' => $welcomeMessage, // ''= use default. Change to customize.
166
+                'dialNumber' => '', // The main number to call into. Optional.
167
+                'voiceBridge' => $params['voice_bridge'], // PIN to join voice. Required.
168
+                'webVoice' => '', // Alphanumeric to join voice. Optional.
169 169
                 'logoutUrl' =>  $this->logout_url,
170
-                'maxParticipants' => $max, 				// Optional. -1 = unlimitted. Not supported in BBB. [number]
171
-                'record' => $record, 					// New. 'true' will tell BBB to record the meeting.
172
-                'duration' => $duration, 				// Default = 0 which means no set duration in minutes. [number]
170
+                'maxParticipants' => $max, // Optional. -1 = unlimitted. Not supported in BBB. [number]
171
+                'record' => $record, // New. 'true' will tell BBB to record the meeting.
172
+                'duration' => $duration, // Default = 0 which means no set duration in minutes. [number]
173 173
                 //'meta_category' => '', 				// Use to pass additional info to BBB server. See API docs.
174 174
             );
175 175
 
176 176
             if ($this->debug) {
177
-                error_log("create_meeting params: ".print_r($bbbParams,1));
177
+                error_log("create_meeting params: ".print_r($bbbParams, 1));
178 178
             }
179 179
 
180 180
             $status = false;
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
                 ) {
189 189
                     if ($this->debug) {
190 190
                         error_log(
191
-                            "create_meeting result: " . print_r($result, 1)
191
+                            "create_meeting result: ".print_r($result, 1)
192 192
                         );
193 193
                     }
194 194
                     $meeting = $this->joinMeeting($meetingName, true);
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 
307 307
             if ($this->debug) {
308 308
                 error_log(
309
-                    "meeting is running: " . intval($meetingInfoExists)
309
+                    "meeting is running: ".intval($meetingInfoExists)
310 310
                 );
311 311
             }
312 312
 
@@ -323,11 +323,11 @@  discard block
 block discarded – undo
323 323
 
324 324
         if ($meetingInfoExists) {
325 325
             $joinParams = array(
326
-                'meetingId' => $meetingData['remote_id'],	//	-- REQUIRED - A unique id for the meeting
327
-                'username' => $this->user_complete_name,	//-- REQUIRED - The name that will display for the user in the meeting
328
-                'password' => $pass,			//-- REQUIRED - The attendee or moderator password, depending on what's passed here
326
+                'meetingId' => $meetingData['remote_id'], //	-- REQUIRED - A unique id for the meeting
327
+                'username' => $this->user_complete_name, //-- REQUIRED - The name that will display for the user in the meeting
328
+                'password' => $pass, //-- REQUIRED - The attendee or moderator password, depending on what's passed here
329 329
                 //'createTime' => api_get_utc_datetime(),			//-- OPTIONAL - string. Leave blank ('') unless you set this correctly.
330
-                'userID' => api_get_user_id(),				//-- OPTIONAL - string
330
+                'userID' => api_get_user_id(), //-- OPTIONAL - string
331 331
                 'webVoiceConf' => ''	//	-- OPTIONAL - string
332 332
             );
333 333
             $url = $this->api->getJoinMeetingURL($joinParams);
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
             $url = $this->logout_url;
337 337
         }
338 338
         if ($this->debug) {
339
-            error_log("return url :" . $url);
339
+            error_log("return url :".$url);
340 340
         }
341 341
         return $url;
342 342
     }
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
             }
398 398
             $meetingBBB['end_url'] = api_get_self().'?'.api_get_cidreq().'&action=end&id='.$meetingDB['id'];
399 399
 
400
-            if ((string)$meetingBBB['returncode'] == 'FAILED') {
400
+            if ((string) $meetingBBB['returncode'] == 'FAILED') {
401 401
                 if ($meetingDB['status'] == 1 && $this->isTeacher()) {
402 402
                     $this->endMeeting($meetingDB['id']);
403 403
                 }
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
                     $item['action_links'] = implode('<br />', $actionLinksArray);
588 588
                 }
589 589
                 //var_dump($recordArray);
590
-                $item['show_links']  = implode('<br />', $recordArray);
590
+                $item['show_links'] = implode('<br />', $recordArray);
591 591
                 $item['action_links'] = implode('<br />', $actionLinksArray);
592 592
             }
593 593
 
@@ -600,11 +600,11 @@  discard block
 block discarded – undo
600 600
 
601 601
             if ($meetingDB['status'] == 1) {
602 602
                 $joinParams = array(
603
-                    'meetingId' => $meetingDB['remote_id'],		//-- REQUIRED - A unique id for the meeting
604
-                    'username' => $this->user_complete_name,	//-- REQUIRED - The name that will display for the user in the meeting
605
-                    'password' => $pass,			//-- REQUIRED - The attendee or moderator password, depending on what's passed here
606
-                    'createTime' => '',			//-- OPTIONAL - string. Leave blank ('') unless you set this correctly.
607
-                    'userID' => '',			//	-- OPTIONAL - string
603
+                    'meetingId' => $meetingDB['remote_id'], //-- REQUIRED - A unique id for the meeting
604
+                    'username' => $this->user_complete_name, //-- REQUIRED - The name that will display for the user in the meeting
605
+                    'password' => $pass, //-- REQUIRED - The attendee or moderator password, depending on what's passed here
606
+                    'createTime' => '', //-- OPTIONAL - string. Leave blank ('') unless you set this correctly.
607
+                    'userID' => '', //	-- OPTIONAL - string
608 608
                     'webVoiceConf' => ''	//	-- OPTIONAL - string
609 609
                 );
610 610
                 $item['go_url'] = $this->protocol.$this->api->getJoinMeetingURL($joinParams);
@@ -659,8 +659,8 @@  discard block
 block discarded – undo
659 659
         $pass = $this->getUserMeetingPassword();
660 660
 
661 661
         $endParams = array(
662
-            'meetingId' => $meetingData['remote_id'],   // REQUIRED - We have to know which meeting to end.
663
-            'password' => $pass,        // REQUIRED - Must match moderator pass for meeting.
662
+            'meetingId' => $meetingData['remote_id'], // REQUIRED - We have to know which meeting to end.
663
+            'password' => $pass, // REQUIRED - Must match moderator pass for meeting.
664 664
         );
665 665
         $this->api->endMeetingWithXmlResponseArray($endParams);
666 666
         Database::update($this->table, array('status' => 0, 'closed_at' => api_get_utc_datetime()), array('id = ? ' => $id));
@@ -842,7 +842,7 @@  discard block
 block discarded – undo
842 842
      */
843 843
     public function redirectToBBB($url)
844 844
     {
845
-        if (file_exists(__DIR__ . '/../config.vm.php')) {
845
+        if (file_exists(__DIR__.'/../config.vm.php')) {
846 846
             // Using VM
847 847
             echo Display::url(get_lang('ClickToContinue'), $url);
848 848
             exit;
Please login to merge, or discard this patch.