Passed
Push — 1.10.x ( 07da6d...08890a )
by Yannick
83:27 queued 37:15
created
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/VM.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 
71 71
         foreach ($vmList as $vm) {
72 72
             if (isset($vm['enabled']) && $vm['enabled'] == true) {
73
-                $className = $vm['name'] . 'VM';
73
+                $className = $vm['name'].'VM';
74 74
 
75 75
                 return new $className($vm);
76 76
                 break;
Please login to merge, or discard this patch.
plugin/bbb/lib/vm/DigitalOceanVM.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                         break;
101 101
                 }
102 102
             } else {
103
-                throw new \Exception(" Id " . $this->vmId . " doesn't exists.");
103
+                throw new \Exception(" Id ".$this->vmId." doesn't exists.");
104 104
             }
105 105
         } catch (Exception $e) {
106 106
             die($e->getMessage());
@@ -118,22 +118,22 @@  discard block
 block discarded – undo
118 118
 
119 119
         $powerOff = $droplets->powerOff($this->vmId);
120 120
 
121
-        $this->addMessage('Power off droplet #' . $this->vmId);
121
+        $this->addMessage('Power off droplet #'.$this->vmId);
122 122
 
123 123
         $this->waitForEvent($powerOff->event_id);
124 124
 
125
-        $this->addMessage('Current status: ' . $dropletInfo->droplet->status);
125
+        $this->addMessage('Current status: '.$dropletInfo->droplet->status);
126 126
 
127 127
         $resizeDroplet = $droplets->resize(
128 128
             $this->vmId,
129 129
             array('size_id' => intval($sizeId))
130 130
         );
131
-        $this->addMessage('Resize droplet to size id: ' . $sizeId);
131
+        $this->addMessage('Resize droplet to size id: '.$sizeId);
132 132
         $this->waitForEvent($resizeDroplet->event_id);
133 133
 
134 134
         $powerOn = $droplets->powerOn($this->vmId);
135 135
         $this->waitForEvent($powerOn->event_id);
136
-        $this->addMessage('Power on droplet #' . $this->vmId);
136
+        $this->addMessage('Power on droplet #'.$this->vmId);
137 137
 
138 138
     }
139 139
 
Please login to merge, or discard this patch.
plugin/bbb/lib/bbb_plugin.class.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@
 block discarded – undo
6 6
  * main/img/icons/64/plugin_name_na.png
7 7
 */
8 8
 /**
9
- * Videoconference plugin with BBB
10
- */
9
+     * Videoconference plugin with BBB
10
+     */
11 11
 //namespace Chamilo\Plugin\BBB;
12 12
 /**
13
- * Class BBBPlugin
14
- */
13
+     * Class BBBPlugin
14
+     */
15 15
 class BBBPlugin extends Plugin
16 16
 {
17 17
     public $isCoursePlugin = true;
Please login to merge, or discard this patch.
plugin/dashboard/block_course/block_course.class.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -63,19 +63,19 @@  discard block
 block discarded – undo
63 63
         $content = $this->get_content_html();
64 64
         $html = '
65 65
 		            <div class="panel panel-default" id="intro">
66
-		                <div class="panel-heading">' . get_lang('CoursesInformation') . '
66
+		                <div class="panel-heading">' . get_lang('CoursesInformation').'
67 67
 		                    <div class="pull-right"><a class="btn btn-danger btn-xs" onclick="javascript:if(!confirm(\'' . addslashes(
68 68
                 api_htmlentities(
69 69
                     get_lang('ConfirmYourChoice'),
70 70
                     ENT_QUOTES,
71 71
                     $charset
72 72
                 )
73
-            ) . '\')) return false;" href="index.php?action=disable_block&path=' . $this->path . '">
73
+            ).'\')) return false;" href="index.php?action=disable_block&path='.$this->path.'">
74 74
                 <em class="fa fa-times"></em>
75 75
                 </a></div>
76 76
 		                </div>
77 77
 		                <div class="panel-body">
78
-		                   ' . $content . '
78
+		                   ' . $content.'
79 79
 		                </div>
80 80
 		            </div>
81 81
 				';
@@ -93,17 +93,17 @@  discard block
 block discarded – undo
93 93
     {
94 94
         $course_data = $this->get_course_information_data();
95 95
         //$content = '<div style="margin:10px;">';
96
-        $content = '<h4>' . get_lang(
96
+        $content = '<h4>'.get_lang(
97 97
                 'YourCourseList'
98
-            ) . '</h4>';
98
+            ).'</h4>';
99 99
         $data_table = null;
100 100
         if (!empty($course_data)) {
101 101
             $data_table .= '<table class="data_table" width:"95%">';
102 102
             $data_table .= '<tr>
103
-	    						<th>' . get_lang('CourseTitle') . '</th>
104
-	    						<th width="20%">' . get_lang('NbStudents') . '</th>
105
-	    						<th width="20%">' . get_lang('AvgTimeSpentInTheCourse') . '</th>
106
-	    						<th width="20%">' . get_lang('ThematicAdvance') . '</th>
103
+	    						<th>' . get_lang('CourseTitle').'</th>
104
+	    						<th width="20%">' . get_lang('NbStudents').'</th>
105
+	    						<th width="20%">' . get_lang('AvgTimeSpentInTheCourse').'</th>
106
+	    						<th width="20%">' . get_lang('ThematicAdvance').'</th>
107 107
 	    					</tr>';
108 108
             $i = 1;
109 109
             foreach ($course_data as $course) {
@@ -112,12 +112,12 @@  discard block
 block discarded – undo
112 112
                 } else {
113 113
                     $class_tr = 'row_even';
114 114
                 }
115
-                $data_table .= '<tr class="' . $class_tr . '">';
115
+                $data_table .= '<tr class="'.$class_tr.'">';
116 116
                 if (!isset($course[2])) {
117 117
                     $course[2] = '0:00:00';
118 118
                 }
119 119
                 foreach ($course as $cell) {
120
-                    $data_table .= '<td align="right">' . $cell . '</td>';
120
+                    $data_table .= '<td align="right">'.$cell.'</td>';
121 121
                 }
122 122
                 $data_table .= '</tr>';
123 123
                 $i++;
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         }
129 129
         $content .= $data_table;
130 130
         if (!empty($course_data)) {
131
-            $content .= '<div style="text-align:right;margin-top:10px;"><a href="' . api_get_path(WEB_CODE_PATH) . 'mySpace/course.php?follow">' . get_lang('SeeMore') . '</a></div>';
131
+            $content .= '<div style="text-align:right;margin-top:10px;"><a href="'.api_get_path(WEB_CODE_PATH).'mySpace/course.php?follow">'.get_lang('SeeMore').'</a></div>';
132 132
         }
133 133
         //$content .= '</div>';
134 134
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 
164 164
             // students directly subscribed to the course
165 165
             $sql = "SELECT user_id FROM $tbl_course_user as course_rel_user
166
-                    WHERE course_rel_user.status=" . STUDENT . " AND course_rel_user.c_id='$courseId'";
166
+                    WHERE course_rel_user.status=".STUDENT." AND course_rel_user.c_id='$courseId'";
167 167
             $rs = Database::query($sql);
168 168
             $users = array();
169 169
             while ($row = Database::fetch_array($rs)) {
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
             );
183 183
 
184 184
             if (!empty($tematic_advance)) {
185
-                $tematic_advance_progress = '<a title="' . get_lang('GoToThematicAdvance') . '" href="' . api_get_path(WEB_CODE_PATH) . 'course_progress/index.php?cidReq=' . $course_code . '&action=thematic_details">' . $tematic_advance . '%</a>';
185
+                $tematic_advance_progress = '<a title="'.get_lang('GoToThematicAdvance').'" href="'.api_get_path(WEB_CODE_PATH).'course_progress/index.php?cidReq='.$course_code.'&action=thematic_details">'.$tematic_advance.'%</a>';
186 186
             } else {
187 187
                 $tematic_advance_progress = '0%';
188 188
             }
Please login to merge, or discard this patch.