Completed
Push — 1.11.x ( 525d2d...253320 )
by José
93:09 queued 53:41
created
plugin/buycourses/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php
2 2
 /* For licensing terms, see /license.txt */
3 3
 
4
-require_once __DIR__ . '/../../main/inc/global.inc.php';
4
+require_once __DIR__.'/../../main/inc/global.inc.php';
Please login to merge, or discard this patch.
plugin/buycourses/install.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 /**
9 9
  * Initialization
10 10
  */
11
-require_once dirname(__FILE__) . '/config.php';
11
+require_once dirname(__FILE__).'/config.php';
12 12
 if (!api_is_platform_admin()) {
13 13
     die ('You must have admin permissions to install plugins');
14 14
 }
Please login to merge, or discard this patch.
plugin/ext_auth_chamilo_logout_button_behaviour/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     api_get_setting('cas_activate') == 'true' &&
8 8
     $_user['auth_source'] == CAS_AUTH_SOURCE
9 9
 ) {
10
-    $_template['show_message']   = true;
10
+    $_template['show_message'] = true;
11 11
     // the link URL
12 12
     $link_url = "#";
13 13
     if (!empty($plugin_info['settings']['ext_auth_chamilo_logout_button_behaviour_eaclbb_form_link_url'])) {
Please login to merge, or discard this patch.
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/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.