Completed
Push — master ( 5f5d60...a9decc )
by Michael
03:36
created
versions/extcal_2_04.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         global $xoopsDB;
31 31
 
32
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . "` ADD `event_nbmember` tinyint(4) NOT NULL default '0' AFTER `event_submitdate` ;";
32
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event')."` ADD `event_nbmember` tinyint(4) NOT NULL default '0' AFTER `event_submitdate` ;";
33 33
         $xoopsDB->query($sql);
34 34
     }
35 35
 
Please login to merge, or discard this patch.
class/colorTools.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -159,9 +159,9 @@
 block discarded – undo
159 159
         $tHex = array('', '', '', '');
160 160
 
161 161
         $tHex[0] = $aColors[0];
162
-        $tHex[1] = substr('00' . dechex($aColors[1]), -2);
163
-        $tHex[2] = substr('00' . dechex($aColors[2]), -2);
164
-        $tHex[3] = substr('00' . dechex($aColors[3]), -2);
162
+        $tHex[1] = substr('00'.dechex($aColors[1]), -2);
163
+        $tHex[2] = substr('00'.dechex($aColors[2]), -2);
164
+        $tHex[3] = substr('00'.dechex($aColors[3]), -2);
165 165
 
166 166
         $colorHexa = implode('', $tHex);
167 167
 
Please login to merge, or discard this patch.
class/form/spin/formspin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      */
204 204
     public function setMin($min)
205 205
     {
206
-        $this->_min = (int)$min;
206
+        $this->_min = (int) $min;
207 207
     }
208 208
     /*-----------------------------------------------------------------*/
209 209
     /**
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      */
222 222
     public function setMax($max)
223 223
     {
224
-        $this->_max = (int)$max;
224
+        $this->_max = (int) $max;
225 225
     }
226 226
 
227 227
     /*-----------------------------------------------------------------*/
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      */
243 243
     public function setSmallIncrement($smallIncrement)
244 244
     {
245
-        $this->_smallIncrement = (int)$smallIncrement;
245
+        $this->_smallIncrement = (int) $smallIncrement;
246 246
         if ($this->_smallIncrement == 0) {
247 247
             $this->_smallIncrement = 1;
248 248
         }
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      */
265 265
     public function setLargeIncrement($largeIncrement)
266 266
     {
267
-        $this->_largeIncrement = (int)$largeIncrement;
267
+        $this->_largeIncrement = (int) $largeIncrement;
268 268
         if ($this->_largeIncrement == 0) {
269 269
             $this->_largeIncrement = 10;
270 270
         }
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
         $sFolderImg  = "{$sSpinFolder}/images/{$this->getImgFolder()}/";
406 406
 
407 407
         $prefixe  = $this->getName();
408
-        $prefixe2 = 'spin' . $prefixe;
408
+        $prefixe2 = 'spin'.$prefixe;
409 409
 
410 410
         $smallIncrement = $this->getSmallIncrement();
411 411
         $largeIncrement = $this->getLargeIncrement();
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
         $t = array();
425 425
 
426 426
         if ($this->_loadJS) {
427
-            $js  = $sSpinFolder . '/js/spin.js';
427
+            $js  = $sSpinFolder.'/js/spin.js';
428 428
             $t[] = "<script src='{$js}' type='text/javascript'></script>";
429 429
         }
430 430
 
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
         //-------------------------------------------------------
470 470
 
471 471
         $t[] = '  </tr>';
472
-        $t[] = '</table>' . "\n";
472
+        $t[] = '</table>'."\n";
473 473
         $t[] = '</div>';
474 474
         //-------------------------------------------
475 475
         $html = implode("\n", $t);
Please login to merge, or discard this patch.
include/notification.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
22 22
         $event        = $eventHandler->getEvent($itemId, 0, true);
23 23
         $item['name'] = $event->getVar('event_title');
24
-        $item['url']  = XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id');
24
+        $item['url']  = XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id');
25 25
 
26 26
         return $item;
27 27
     }
Please login to merge, or discard this patch.
language/english/main.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -1,34 +1,34 @@  discard block
 block discarded – undo
1 1
 <?php
2
-include_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php';
2
+include_once XOOPS_ROOT_PATH.'/language/'.$GLOBALS['xoopsConfig']['language'].'/calendar.php';
3 3
 define('_MD_CLEAR_CRITERIA', 'clear criteria');
4
-define('_MD_EXTCAL_1_FR', '1st ' . _CAL_FRIDAY);
5
-define('_MD_EXTCAL_1_MO', '1st ' . _CAL_MONDAY);
6
-define('_MD_EXTCAL_1_SA', '1st ' . _CAL_SATURDAY);
7
-define('_MD_EXTCAL_1_SU', '1st ' . _CAL_SUNDAY);
8
-define('_MD_EXTCAL_1_TH', '1st ' . _CAL_THURSDAY);
9
-define('_MD_EXTCAL_1_TU', '1st ' . _CAL_TUESDAY);
10
-define('_MD_EXTCAL_1_WE', '1st ' . _CAL_WEDNESDAY);
11
-define('_MD_EXTCAL_2_FR', '2nd ' . _CAL_FRIDAY);
12
-define('_MD_EXTCAL_2_MO', '2nd ' . _CAL_MONDAY);
13
-define('_MD_EXTCAL_2_SA', '2nd ' . _CAL_SATURDAY);
14
-define('_MD_EXTCAL_2_SU', '2nd ' . _CAL_SUNDAY);
15
-define('_MD_EXTCAL_2_TH', '2nd ' . _CAL_THURSDAY);
16
-define('_MD_EXTCAL_2_TU', '2nd ' . _CAL_TUESDAY);
17
-define('_MD_EXTCAL_2_WE', '2nd ' . _CAL_WEDNESDAY);
18
-define('_MD_EXTCAL_3_FR', '3rd ' . _CAL_FRIDAY);
19
-define('_MD_EXTCAL_3_MO', '3rd ' . _CAL_MONDAY);
20
-define('_MD_EXTCAL_3_SA', '3rd ' . _CAL_SATURDAY);
21
-define('_MD_EXTCAL_3_SU', '3rd ' . _CAL_SUNDAY);
22
-define('_MD_EXTCAL_3_TH', '3rd ' . _CAL_THURSDAY);
23
-define('_MD_EXTCAL_3_TU', '3rd ' . _CAL_TUESDAY);
24
-define('_MD_EXTCAL_3_WE', '3rd ' . _CAL_WEDNESDAY);
25
-define('_MD_EXTCAL_4_FR', '4th ' . _CAL_FRIDAY);
26
-define('_MD_EXTCAL_4_MO', '4th ' . _CAL_MONDAY);
27
-define('_MD_EXTCAL_4_SA', '4th ' . _CAL_SATURDAY);
28
-define('_MD_EXTCAL_4_SU', '4th ' . _CAL_SUNDAY);
29
-define('_MD_EXTCAL_4_TH', '4th ' . _CAL_THURSDAY);
30
-define('_MD_EXTCAL_4_TU', '4th ' . _CAL_TUESDAY);
31
-define('_MD_EXTCAL_4_WE', '4th ' . _CAL_WEDNESDAY);
4
+define('_MD_EXTCAL_1_FR', '1st '._CAL_FRIDAY);
5
+define('_MD_EXTCAL_1_MO', '1st '._CAL_MONDAY);
6
+define('_MD_EXTCAL_1_SA', '1st '._CAL_SATURDAY);
7
+define('_MD_EXTCAL_1_SU', '1st '._CAL_SUNDAY);
8
+define('_MD_EXTCAL_1_TH', '1st '._CAL_THURSDAY);
9
+define('_MD_EXTCAL_1_TU', '1st '._CAL_TUESDAY);
10
+define('_MD_EXTCAL_1_WE', '1st '._CAL_WEDNESDAY);
11
+define('_MD_EXTCAL_2_FR', '2nd '._CAL_FRIDAY);
12
+define('_MD_EXTCAL_2_MO', '2nd '._CAL_MONDAY);
13
+define('_MD_EXTCAL_2_SA', '2nd '._CAL_SATURDAY);
14
+define('_MD_EXTCAL_2_SU', '2nd '._CAL_SUNDAY);
15
+define('_MD_EXTCAL_2_TH', '2nd '._CAL_THURSDAY);
16
+define('_MD_EXTCAL_2_TU', '2nd '._CAL_TUESDAY);
17
+define('_MD_EXTCAL_2_WE', '2nd '._CAL_WEDNESDAY);
18
+define('_MD_EXTCAL_3_FR', '3rd '._CAL_FRIDAY);
19
+define('_MD_EXTCAL_3_MO', '3rd '._CAL_MONDAY);
20
+define('_MD_EXTCAL_3_SA', '3rd '._CAL_SATURDAY);
21
+define('_MD_EXTCAL_3_SU', '3rd '._CAL_SUNDAY);
22
+define('_MD_EXTCAL_3_TH', '3rd '._CAL_THURSDAY);
23
+define('_MD_EXTCAL_3_TU', '3rd '._CAL_TUESDAY);
24
+define('_MD_EXTCAL_3_WE', '3rd '._CAL_WEDNESDAY);
25
+define('_MD_EXTCAL_4_FR', '4th '._CAL_FRIDAY);
26
+define('_MD_EXTCAL_4_MO', '4th '._CAL_MONDAY);
27
+define('_MD_EXTCAL_4_SA', '4th '._CAL_SATURDAY);
28
+define('_MD_EXTCAL_4_SU', '4th '._CAL_SUNDAY);
29
+define('_MD_EXTCAL_4_TH', '4th '._CAL_THURSDAY);
30
+define('_MD_EXTCAL_4_TU', '4th '._CAL_TUESDAY);
31
+define('_MD_EXTCAL_4_WE', '4th '._CAL_WEDNESDAY);
32 32
 define('_MD_EXTCAL_ABSENT', 'Absent');
33 33
 define('_MD_EXTCAL_ACTION_COME', 'Register');
34 34
 define('_MD_EXTCAL_ACTION_DELEGATION', 'Delegate');
@@ -109,13 +109,13 @@  discard block
 block discarded – undo
109 109
 define('_MD_EXTCAL_JAN', 'Jan');
110 110
 define('_MD_EXTCAL_JUL', 'Jul');
111 111
 define('_MD_EXTCAL_JUN', 'Jun');
112
-define('_MD_EXTCAL_LAST_FR', 'Last ' . _CAL_FRIDAY);
113
-define('_MD_EXTCAL_LAST_MO', 'Last ' . _CAL_MONDAY);
114
-define('_MD_EXTCAL_LAST_SA', 'Last ' . _CAL_SATURDAY);
115
-define('_MD_EXTCAL_LAST_SU', 'Last ' . _CAL_SUNDAY);
116
-define('_MD_EXTCAL_LAST_TH', 'Last ' . _CAL_THURSDAY);
117
-define('_MD_EXTCAL_LAST_TU', 'Last ' . _CAL_TUESDAY);
118
-define('_MD_EXTCAL_LAST_WE', 'Last ' . _CAL_WEDNESDAY);
112
+define('_MD_EXTCAL_LAST_FR', 'Last '._CAL_FRIDAY);
113
+define('_MD_EXTCAL_LAST_MO', 'Last '._CAL_MONDAY);
114
+define('_MD_EXTCAL_LAST_SA', 'Last '._CAL_SATURDAY);
115
+define('_MD_EXTCAL_LAST_SU', 'Last '._CAL_SUNDAY);
116
+define('_MD_EXTCAL_LAST_TH', 'Last '._CAL_THURSDAY);
117
+define('_MD_EXTCAL_LAST_TU', 'Last '._CAL_TUESDAY);
118
+define('_MD_EXTCAL_LAST_WE', 'Last '._CAL_WEDNESDAY);
119 119
 define('_MD_EXTCAL_LIB_COME', 'Register');
120 120
 define('_MD_EXTCAL_LIB_NONE', 'None');
121 121
 define('_MD_EXTCAL_LIB_NOTCOME', 'Unsubscribe');
Please login to merge, or discard this patch.
language/english/modinfo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include_once __DIR__ . '/../../include/constantes.php';
3
+include_once __DIR__.'/../../include/constantes.php';
4 4
 define('_MI_EXTCAL_NAME', 'eXtCal');
5 5
 define('_MI_EXTCAL_ABOUT', 'About');
6 6
 define('_MI_EXTCAL_AFTER', 'After');
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 define('_MI_EXTCAL_START_PAGE', 'Module home page');
136 136
 define('_MI_EXTCAL_SUBMIT_EVENT', 'Submit Event');
137 137
 define('_MI_EXTCAL_TABS_WEIGHT', 'Order of the Tabs');
138
-define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>' . "<span style='color:#0000FF;'>" . _EXTCAL_NAV_LIST . '</span>' . ' <br>Separator: new line');
138
+define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>'."<span style='color:#0000FF;'>"._EXTCAL_NAV_LIST.'</span>'.' <br>Separator: new line');
139 139
 define('_MI_EXTCAL_VISIBLE_TAB_DESC', 'Define the visible view.');
140 140
 define('_MI_EXTCAL_VISIBLE_TABS', 'Visible tab');
141 141
 define('_MI_EXTCAL_WEEK_START_DAY', 'Week start Day');
Please login to merge, or discard this patch.
header.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-include XOOPS_ROOT_PATH . '/header.php';
3
+include XOOPS_ROOT_PATH.'/header.php';
4 4
 
5
-include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
5
+include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
6 6
 
7
-include_once __DIR__ . '/include/agenda_fnc.php';
8
-include_once __DIR__ . '/class/utilities.php';
7
+include_once __DIR__.'/include/agenda_fnc.php';
8
+include_once __DIR__.'/class/utilities.php';
9 9
 
10
-include_once __DIR__ . '/class/perm.php';
11
-include_once __DIR__ . '/class/form/extcalform.php';
10
+include_once __DIR__.'/class/perm.php';
11
+include_once __DIR__.'/class/form/extcalform.php';
12 12
 
13 13
 xoops_loadLanguage('modinfo', _EXTCAL_MODULE);
14 14
 
15 15
 //------------------------------------------------------
16
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php';
17
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php';
18
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weekdays.php';
19
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Week.php';
20
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php';
16
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php';
17
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php';
18
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weekdays.php';
19
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Week.php';
20
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php';
21 21
 
22 22
 //------------------------------------------------------
23 23
 // Getting eXtCal object's handler
Please login to merge, or discard this patch.
include/onupdate.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 if ((!defined('XOOPS_ROOT_PATH')) || !($GLOBALS['xoopsUser'] instanceof XoopsUser)
20 20
     || !$GLOBALS['xoopsUser']->IsAdmin()
21 21
 ) {
22
-    exit('Restricted access' . PHP_EOL);
22
+    exit('Restricted access'.PHP_EOL);
23 23
 }
24 24
 
25 25
 /**
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 function xoops_module_pre_update_extcal(XoopsModule $module)
45 45
 {
46 46
     $moduleDirName  = basename(dirname(__DIR__));
47
-    $classUtilities = ucfirst($moduleDirName) . 'Utilities';
47
+    $classUtilities = ucfirst($moduleDirName).'Utilities';
48 48
     if (!class_exists($classUtilities)) {
49 49
         xoops_load('utilities', $moduleDirName);
50 50
     }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     }
83 83
 
84 84
 
85
-    $fld = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/versions/';
85
+    $fld = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/versions/';
86 86
     $cls = 'extcal_%1$s';
87 87
 
88 88
     $version = array(
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     while (list($key, $val) = each($version)) {
101 101
         if ($previousVersion < $val) {
102 102
             $name = sprintf($cls, $key);
103
-            $f    = $fld . $name . '.php';
103
+            $f    = $fld.$name.'.php';
104 104
             //ext_echo ("<hr>{$f}<hr>");
105 105
             if (is_readable($f)) {
106 106
                 echo "mise à jour version : {$key} = {$val}<br>";
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
     if ($previousVersion < 240) {
116 116
 
117 117
 
118
-        $configurator = include __DIR__ . '/config.php';
119
-        $classUtilities = ucfirst($moduleDirName) . 'Utilities';
118
+        $configurator = include __DIR__.'/config.php';
119
+        $classUtilities = ucfirst($moduleDirName).'Utilities';
120 120
         if (!class_exists($classUtilities)) {
121 121
             xoops_load('utilities', $moduleDirName);
122 122
         }
@@ -125,14 +125,14 @@  discard block
 block discarded – undo
125 125
         //delete old HTML templates
126 126
         if (count($configurator['templateFolders']) > 0) {
127 127
             foreach ($configurator['templateFolders'] as $folder) {
128
-                $templateFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $folder);
128
+                $templateFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$folder);
129 129
                 if (is_dir($templateFolder)) {
130 130
                     $templateList = array_diff(scandir($templateFolder), array('..', '.'));
131 131
                     foreach ($templateList as $k => $v) {
132
-                        $fileInfo = new SplFileInfo($templateFolder . $v);
132
+                        $fileInfo = new SplFileInfo($templateFolder.$v);
133 133
                         if ($fileInfo->getExtension() === 'html' && $fileInfo->getFilename() !== 'index.html') {
134
-                            if (file_exists($templateFolder . $v)) {
135
-                                unlink($templateFolder . $v);
134
+                            if (file_exists($templateFolder.$v)) {
135
+                                unlink($templateFolder.$v);
136 136
                             }
137 137
                         }
138 138
                     }
@@ -144,9 +144,9 @@  discard block
 block discarded – undo
144 144
 
145 145
         //  ---  COPY blank.png FILES ---------------
146 146
         if (count($configurator['copyFiles']) > 0) {
147
-            $file = __DIR__ . '/../assets/images/blank.png';
147
+            $file = __DIR__.'/../assets/images/blank.png';
148 148
             foreach (array_keys($configurator['copyFiles']) as $i) {
149
-                $dest = $configurator['copyFiles'][$i] . '/blank.png';
149
+                $dest = $configurator['copyFiles'][$i].'/blank.png';
150 150
                 $classUtilities::copyFile($file, $dest);
151 151
             }
152 152
         }
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         if (count($configurator['oldFiles']) > 0) {
156 156
             //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
157 157
             foreach (array_keys($configurator['oldFiles']) as $i) {
158
-                $tempFile = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator['oldFiles'][$i]);
158
+                $tempFile = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator['oldFiles'][$i]);
159 159
                 if (is_file($tempFile)) {
160 160
                     unlink($tempFile);
161 161
                 }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         //---------------------
166 166
 
167 167
         //delete .html entries from the tpl table
168
-        $sql = 'DELETE FROM ' . $xoopsDB->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname',
168
+        $sql = 'DELETE FROM '.$xoopsDB->prefix('tplfile')." WHERE `tpl_module` = '".$module->getVar('dirname',
169 169
                                                                                                           'n')
170 170
                . "' AND `tpl_file` LIKE '%.html%'";
171 171
         $xoopsDB->queryF($sql);
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         xoops_load('XoopsFile');
175 175
 
176 176
         //delete /images directory ============
177
-        $imagesDirectory = $GLOBALS['xoops']->path('modules/' . $module->getVar('dirname', 'n') . '/images/');
177
+        $imagesDirectory = $GLOBALS['xoops']->path('modules/'.$module->getVar('dirname', 'n').'/images/');
178 178
         $folderHandler   = XoopsFile::getHandler('folder', $imagesDirectory);
179 179
         $folderHandler->delete($imagesDirectory);
180 180
     }
Please login to merge, or discard this patch.
include/oninstall.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 function xoops_module_pre_install_extcal(XoopsModule $module)
26 26
 {
27 27
     $moduleDirName = basename(dirname(__DIR__));
28
-    $className     = ucfirst($moduleDirName) . 'Utilities';
28
+    $className     = ucfirst($moduleDirName).'Utilities';
29 29
     if (!class_exists($className)) {
30 30
         xoops_load('utilities', $moduleDirName);
31 31
     }
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
         return false;
40 40
     }
41 41
 
42
-    $mod_tables =& $module->getInfo('tables');
42
+    $mod_tables = & $module->getInfo('tables');
43 43
     foreach ($mod_tables as $table) {
44
-        $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS ' . $GLOBALS['xoopsDB']->prefix($table) . ';');
44
+        $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS '.$GLOBALS['xoopsDB']->prefix($table).';');
45 45
     }
46 46
 
47 47
     return true;
@@ -70,20 +70,20 @@  discard block
 block discarded – undo
70 70
      */
71 71
 
72 72
     // Access right
73
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId);
74
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId);
75
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId);
73
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId);
74
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId);
75
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId);
76 76
 
77 77
     // Can submit
78
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId);
78
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId);
79 79
 
80 80
     // Auto approve
81
-    $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId);
81
+    $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId);
82 82
 
83 83
     //    $moduleDirName = $xoopsModule->getVar('dirname');
84
-    $configurator = include $GLOBALS['xoops']->path('modules/' . $moduleDirName . '/include/config.php');
84
+    $configurator = include $GLOBALS['xoops']->path('modules/'.$moduleDirName.'/include/config.php');
85 85
 
86
-    $classUtilities = ucfirst($moduleDirName) . 'Utilities';
86
+    $classUtilities = ucfirst($moduleDirName).'Utilities';
87 87
     if (!class_exists($classUtilities)) {
88 88
         xoops_load('utilities', $moduleDirName);
89 89
     }
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
         }
96 96
     }
97 97
     if (count($configurator['copyFiles']) > 0) {
98
-        $file = __DIR__ . '/../assets/images/blank.png';
98
+        $file = __DIR__.'/../assets/images/blank.png';
99 99
         foreach (array_keys($configurator['copyFiles']) as $i) {
100
-            $dest = $configurator['copyFiles'][$i] . '/blank.png';
100
+            $dest = $configurator['copyFiles'][$i].'/blank.png';
101 101
             $classUtilities::copyFile($file, $dest);
102 102
         }
103 103
     }
Please login to merge, or discard this patch.