Passed
Push — master ( 66eec6...f2a2b5 )
by Michael
02:23
created
view_calendar-week.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@  discard block
 block discarded – undo
2 2
 
3 3
 use XoopsModules\Extcal;
4 4
 
5
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
6
-require_once __DIR__ . '/include/constantes.php';
5
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
6
+require_once __DIR__.'/include/constantes.php';
7 7
 $params                                  = ['view' => _EXTCAL_NAV_CALWEEK, 'file' => _EXTCAL_FILE_CALWEEK];
8 8
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
9
-require_once __DIR__ . '/header.php';
9
+require_once __DIR__.'/header.php';
10 10
 
11 11
 /** @var Extcal\Helper $helper */
12 12
 $helper = Extcal\Helper::getInstance();
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 $dayTS = mktime(0, 0, 0, $month, $day, $year);
23 23
 //$offset = date('w', $dayTS) - $helper->getConfig('week_start_day');
24 24
 $offset = date('w', $dayTS) + 7 - $helper->getConfig('week_start_day') < 7 ? date('w', $dayTS) + 7 - $helper->getConfig('week_start_day') : 0;
25
-$dayTS  -= ($offset * _EXTCAL_TS_DAY);
25
+$dayTS -= ($offset * _EXTCAL_TS_DAY);
26 26
 $year   = date('Y', $dayTS);
27 27
 $month  = date('n', $dayTS);
28 28
 $day    = date('j', $dayTS);
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     'cat'          => $cat,
53 53
     'externalKeys' => 'cat_id',
54 54
 ];
55
-$events   = $eventHandler->getEventsOnPeriode($criteres);
55
+$events = $eventHandler->getEventsOnPeriode($criteres);
56 56
 /**********************************************************************/
57 57
 //$eventsArray = $events;
58 58
 
@@ -141,21 +141,21 @@  discard block
 block discarded – undo
141 141
 // Making navig data
142 142
 $navig = [
143 143
     'prev' => [
144
-        'uri'  => 'year=' . $pWeekCalObj->thisYear() . '&amp;month=' . $pWeekCalObj->thisMonth() . '&amp;day=' . $pWeekCalObj->thisDay(),
144
+        'uri'  => 'year='.$pWeekCalObj->thisYear().'&amp;month='.$pWeekCalObj->thisMonth().'&amp;day='.$pWeekCalObj->thisDay(),
145 145
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_week'), $pWeekCalObj->getTimestamp()),
146 146
     ],
147 147
     'this' => [
148
-        'uri'  => 'year=' . $weekCalObj->thisYear() . '&amp;month=' . $weekCalObj->thisMonth() . '&amp;day=' . $weekCalObj->thisDay(),
148
+        'uri'  => 'year='.$weekCalObj->thisYear().'&amp;month='.$weekCalObj->thisMonth().'&amp;day='.$weekCalObj->thisDay(),
149 149
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_week'), $weekCalObj->getTimestamp()),
150 150
     ],
151 151
     'next' => [
152
-        'uri'  => 'year=' . $nWeekCalObj->thisYear() . '&amp;month=' . $nWeekCalObj->thisMonth() . '&amp;day=' . $nWeekCalObj->thisDay(),
152
+        'uri'  => 'year='.$nWeekCalObj->thisYear().'&amp;month='.$nWeekCalObj->thisMonth().'&amp;day='.$nWeekCalObj->thisDay(),
153 153
         'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_week'), $nWeekCalObj->getTimestamp()),
154 154
     ],
155 155
 ];
156 156
 
157 157
 // Title of the page
158
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
158
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
159 159
 
160 160
 // Assigning navig data to the template
161 161
 $xoopsTpl->assign('navig', $navig);
@@ -195,4 +195,4 @@  discard block
 block discarded – undo
195 195
 $xoopsTpl->assign('lang', $lang);
196 196
 $xoopsTpl->assign('view', 'calweek');
197 197
 
198
-require_once XOOPS_ROOT_PATH . '/footer.php';
198
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
event.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,15 +19,15 @@  discard block
 block discarded – undo
19 19
 
20 20
 use XoopsModules\Extcal;
21 21
 
22
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
23
-require_once __DIR__ . '/include/constantes.php';
22
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
23
+require_once __DIR__.'/include/constantes.php';
24 24
 $params                                  = ['view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT];
25 25
 $GLOBALS['xoopsOption']['template_main'] = 'extcal_event.tpl';
26
-require_once __DIR__ . '/header.php';
26
+require_once __DIR__.'/header.php';
27 27
 
28 28
 //exit;
29 29
 
30
-require_once XOOPS_ROOT_PATH . '/include/comment_view.php';
30
+require_once XOOPS_ROOT_PATH.'/include/comment_view.php';
31 31
 
32 32
 if (!isset($_GET['event'])) {
33 33
     $eventId = 0;
@@ -228,4 +228,4 @@  discard block
 block discarded – undo
228 228
 
229 229
 //function XoopsFormDhtmlTextArea($caption, $name, $value = "", $rows = 5, $cols = 50, $hiddentext = "xoopsHiddenText", $options = array());
230 230
 
231
-require_once XOOPS_ROOT_PATH . '/footer.php';
231
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
comment_reply.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,5 +17,5 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
21
-require_once XOOPS_ROOT_PATH . '/include/comment_reply.php';
20
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
21
+require_once XOOPS_ROOT_PATH.'/include/comment_reply.php';
Please login to merge, or discard this patch.
blocks/random_events.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 use XoopsModules\Extcal;
21 21
 
22
-require_once  dirname(__DIR__) . '/include/constantes.php';
22
+require_once  dirname(__DIR__).'/include/constantes.php';
23 23
 
24 24
 /**
25 25
  * @param $options
@@ -66,22 +66,22 @@  discard block
 block discarded – undo
66 66
 
67 67
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
68 68
 
69
-    $form = _MB_EXTCAL_DISPLAY . "&nbsp;\n";
70
-    $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text">&nbsp;' . _MB_EXTCAL_EVENT . '<br>';
71
-    $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>';
69
+    $form = _MB_EXTCAL_DISPLAY."&nbsp;\n";
70
+    $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text">&nbsp;'._MB_EXTCAL_EVENT.'<br>';
71
+    $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>';
72 72
     array_shift($options);
73 73
     array_shift($options);
74
-    $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">';
74
+    $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">';
75 75
     if (false === array_search(0, $options)) {
76
-        $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>';
76
+        $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>';
77 77
     } else {
78
-        $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>';
78
+        $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>';
79 79
     }
80 80
     foreach ($cats as $cat) {
81 81
         if (false === array_search($cat->getVar('cat_id'), $options)) {
82
-            $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>';
82
+            $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>';
83 83
         } else {
84
-            $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>';
84
+            $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>';
85 85
         }
86 86
     }
87 87
     $form .= '</select>';
Please login to merge, or discard this patch.
location.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -56,22 +56,22 @@
 block discarded – undo
56 56
 $edit_delete = '';
57 57
 if (is_object($xoopsUser) && $isAdmin) {
58 58
     $edit_delete = '<a href="'
59
-                   . XOOPS_URL
60
-                   . '/modules/extcal/admin/Location.php?op=edit_location&location_id='
61
-                   . $location_id
62
-                   . '"><img src="'
63
-                   . $pathIcon16
64
-                   . '/edit.png" width="16px" height="16px" border="0" title="'
65
-                   . _MD_EXTCAL_LOCATION_EDIT
66
-                   . '"></a><a href="'
67
-                   . XOOPS_URL
68
-                   . '/modules/extcal/admin/Location.php?op=delete_location&location_id='
69
-                   . $location_id
70
-                   . '"><img src="'
71
-                   . $pathIcon16
72
-                   . '/delete.png" width="16px" height="16px" border="0" title="'
73
-                   . _MD_EXTCAL_LOCATION_DELETE
74
-                   . '"></a>';
59
+                    . XOOPS_URL
60
+                    . '/modules/extcal/admin/Location.php?op=edit_location&location_id='
61
+                    . $location_id
62
+                    . '"><img src="'
63
+                    . $pathIcon16
64
+                    . '/edit.png" width="16px" height="16px" border="0" title="'
65
+                    . _MD_EXTCAL_LOCATION_EDIT
66
+                    . '"></a><a href="'
67
+                    . XOOPS_URL
68
+                    . '/modules/extcal/admin/Location.php?op=delete_location&location_id='
69
+                    . $location_id
70
+                    . '"><img src="'
71
+                    . $pathIcon16
72
+                    . '/delete.png" width="16px" height="16px" border="0" title="'
73
+                    . _MD_EXTCAL_LOCATION_DELETE
74
+                    . '"></a>';
75 75
 }
76 76
 $xoopsTpl->assign('edit_delete', $edit_delete);
77 77
 
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
 
20 20
 use XoopsModules\Extcal;
21 21
 
22
-require_once  dirname(dirname(__DIR__)) . '/mainfile.php';
23
-require_once __DIR__ . '/include/constantes.php';
22
+require_once  dirname(dirname(__DIR__)).'/mainfile.php';
23
+require_once __DIR__.'/include/constantes.php';
24 24
 $GLOBALS['xoopsOption']['template_main'] = 'extcal_location.tpl';
25
-require_once __DIR__ . '/header.php';
25
+require_once __DIR__.'/header.php';
26 26
 
27 27
 $locationHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_LOCATION);
28 28
 //require_once XOOPS_ROOT_PATH.'/header.php';
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 $location_exist = $locationHandler->getCount($criteria);
38 38
 
39 39
 if (0 == $location_exist) {
40
-    redirect_header(XOOPS_URL . '/modules/extcal/index.php', 3, _NOPERM);
40
+    redirect_header(XOOPS_URL.'/modules/extcal/index.php', 3, _NOPERM);
41 41
 }
42 42
 
43 43
 $view_location = $locationHandler->getLocation($location_id, true);
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
 
80 80
 $date = mktime(0, 0, 0, date('m'), date('d'), date('y'));
81 81
 
82
-$requete = $xoopsDB->query('SELECT event_id, event_title, event_desc, event_picture1, event_start FROM ' . $xoopsDB->prefix('extcal_event') . " WHERE event_location='" . $location_id . "' AND event_start >='" . $date . "'");
82
+$requete = $xoopsDB->query('SELECT event_id, event_title, event_desc, event_picture1, event_start FROM '.$xoopsDB->prefix('extcal_event')." WHERE event_location='".$location_id."' AND event_start >='".$date."'");
83 83
 while (false !== ($donnees = $xoopsDB->fetchArray($requete))) {
84 84
     if ($donnees['event_desc'] > 210) {
85 85
         $event_desc = $donnees['event_desc'];
86 86
     } else {
87
-        $event_desc = substr($donnees['event_desc'], 0, 210) . '...';
87
+        $event_desc = substr($donnees['event_desc'], 0, 210).'...';
88 88
     }
89 89
     $xoopsTpl->append('events', [
90 90
         'event_picture1' => $donnees['event_picture1'],
@@ -97,4 +97,4 @@  discard block
 block discarded – undo
97 97
 /** @var xos_opal_Theme $xoTheme */
98 98
 $xoTheme->addScript('browse.php?modules/extcal/assets/js/highslide.js');
99 99
 $xoTheme->addStylesheet('browse.php?modules/extcal/assets/js/highslide.css');
100
-require_once XOOPS_ROOT_PATH . '/footer.php';
100
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
testdata/index.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 use XoopsModules\Extcal;
19 19
 use XoopsModules\Extcal\Common;
20 20
 
21
-require dirname(dirname(dirname(__DIR__))) . '/mainfile.php';
22
-include dirname(__DIR__) . '/preloads/autoloader.php';
21
+require dirname(dirname(dirname(__DIR__))).'/mainfile.php';
22
+include dirname(__DIR__).'/preloads/autoloader.php';
23 23
 $op = \Xmf\Request::getCmd('op', '');
24 24
 
25 25
 switch ($op) {
@@ -51,14 +51,14 @@  discard block
 block discarded – undo
51 51
     $tables = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getInfo('tables');
52 52
 
53 53
     foreach ($tables as $table) {
54
-        $tabledata = \Xmf\Yaml::readWrapped($table . '.yml');
54
+        $tabledata = \Xmf\Yaml::readWrapped($table.'.yml');
55 55
         \Xmf\Database\TableLoad::truncateTable($table);
56 56
         \Xmf\Database\TableLoad::loadTableFromArray($table, $tabledata);
57 57
     }
58 58
 
59 59
 
60 60
     //  ---  COPY test folder files ---------------
61
-    if (is_array ($configurator->copyTestFolders) && count($configurator->copyTestFolders) > 0) {
61
+    if (is_array($configurator->copyTestFolders) && count($configurator->copyTestFolders) > 0) {
62 62
         //        $file = __DIR__ . '/../testdata/images/';
63 63
         foreach (array_keys($configurator->copyTestFolders) as $i) {
64 64
             $src  = $configurator->copyTestFolders[$i][0];
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         }
68 68
     }
69 69
 
70
-    redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS'));
70
+    redirect_header('../admin/index.php', 1, constant('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS'));
71 71
 }
72 72
 
73 73
 function saveSampleData()
@@ -78,10 +78,10 @@  discard block
 block discarded – undo
78 78
     $tables = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getInfo('tables');
79 79
 
80 80
     foreach ($tables as $table) {
81
-        \Xmf\Database\TableLoad::saveTableToYamlFile($table, $table . '_' . date("Y-m-d H-i-s") . '.yml');
81
+        \Xmf\Database\TableLoad::saveTableToYamlFile($table, $table.'_'.date("Y-m-d H-i-s").'.yml');
82 82
     }
83 83
 
84
-    redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS'));
84
+    redirect_header('../admin/index.php', 1, constant('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS'));
85 85
 }
86 86
 
87 87
 function exportSchema()
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
         $migrate = new  \Xmf\Database\Migrate($moduleDirName);
94 94
         $migrate->saveCurrentSchema();
95 95
 
96
-        redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS'));
96
+        redirect_header('../admin/index.php', 1, constant('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_SUCCESS'));
97 97
     } catch (\Exception $e) {
98
-        exit(constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR'));
98
+        exit(constant('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR'));
99 99
     }
100 100
 }
Please login to merge, or discard this patch.
language/english/common.php 1 patch
Spacing   +76 added lines, -76 removed lines patch added patch discarded remove patch
@@ -21,63 +21,63 @@  discard block
 block discarded – undo
21 21
 $moduleDirName      = basename(dirname(dirname(__DIR__)));
22 22
 $moduleDirNameUpper = strtoupper($moduleDirName);
23 23
 
24
-define('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS', 'GD library support: ');
25
-define('CO_' . $moduleDirNameUpper . '_GDLIBVERSION', 'GD Library version: ');
26
-define('CO_' . $moduleDirNameUpper . '_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)");
27
-define('CO_' . $moduleDirNameUpper . '_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)");
28
-define('CO_' . $moduleDirNameUpper . '_IMAGEINFO', 'Server status');
29
-define('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): ');
30
-define('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): ');
31
-define('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): ');
32
-define('CO_' . $moduleDirNameUpper . '_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> ");
33
-define('CO_' . $moduleDirNameUpper . '_OFF', "<span style='font-weight: bold;'>OFF</span>");
34
-define('CO_' . $moduleDirNameUpper . '_ON', "<span style='font-weight: bold;'>ON</span>");
35
-define('CO_' . $moduleDirNameUpper . '_SERVERPATH', 'Server path to XOOPS root: ');
36
-define('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS', 'Server uploads status: ');
37
-define('CO_' . $moduleDirNameUpper . '_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>");
38
-define('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.');
39
-
40
-define('CO_' . $moduleDirNameUpper . '_PRINT', "<span style='font-weight: bold;'>Print</span>");
41
-define('CO_' . $moduleDirNameUpper . '_PDF', "<span style='font-weight: bold;'>Create PDF</span>");
42
-
43
-define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'");
44
-define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED1', "Update failed - couldn't add new fields");
45
-define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'");
46
-define('CO_' . $moduleDirNameUpper . '_ERROR_COLUMN', 'Could not create column in database : %s');
47
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)');
48
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)');
49
-define('CO_' . $moduleDirNameUpper . '_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module');
50
-
51
-define('CO_' . $moduleDirNameUpper . '_FOLDERS_DELETED_OK', 'Upload Folders have been deleted');
24
+define('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS', 'GD library support: ');
25
+define('CO_'.$moduleDirNameUpper.'_GDLIBVERSION', 'GD Library version: ');
26
+define('CO_'.$moduleDirNameUpper.'_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)");
27
+define('CO_'.$moduleDirNameUpper.'_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)");
28
+define('CO_'.$moduleDirNameUpper.'_IMAGEINFO', 'Server status');
29
+define('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): ');
30
+define('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): ');
31
+define('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): ');
32
+define('CO_'.$moduleDirNameUpper.'_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> ");
33
+define('CO_'.$moduleDirNameUpper.'_OFF', "<span style='font-weight: bold;'>OFF</span>");
34
+define('CO_'.$moduleDirNameUpper.'_ON', "<span style='font-weight: bold;'>ON</span>");
35
+define('CO_'.$moduleDirNameUpper.'_SERVERPATH', 'Server path to XOOPS root: ');
36
+define('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS', 'Server uploads status: ');
37
+define('CO_'.$moduleDirNameUpper.'_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>");
38
+define('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.');
39
+
40
+define('CO_'.$moduleDirNameUpper.'_PRINT', "<span style='font-weight: bold;'>Print</span>");
41
+define('CO_'.$moduleDirNameUpper.'_PDF', "<span style='font-weight: bold;'>Create PDF</span>");
42
+
43
+define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'");
44
+define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED1', "Update failed - couldn't add new fields");
45
+define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'");
46
+define('CO_'.$moduleDirNameUpper.'_ERROR_COLUMN', 'Could not create column in database : %s');
47
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)');
48
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)');
49
+define('CO_'.$moduleDirNameUpper.'_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module');
50
+
51
+define('CO_'.$moduleDirNameUpper.'_FOLDERS_DELETED_OK', 'Upload Folders have been deleted');
52 52
 
53 53
 // Error Msgs
54
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH', 'Could not delete %s directory');
55
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_REMOVE', 'Could not delete %s');
56
-define('CO_' . $moduleDirNameUpper . '_ERROR_NO_PLUGIN', 'Could not load plugin');
54
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH', 'Could not delete %s directory');
55
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_REMOVE', 'Could not delete %s');
56
+define('CO_'.$moduleDirNameUpper.'_ERROR_NO_PLUGIN', 'Could not load plugin');
57 57
 
58 58
 //Help
59
-define('CO_' . $moduleDirNameUpper . '_DIRNAME', basename(dirname(dirname(__DIR__))));
60
-define('CO_' . $moduleDirNameUpper . '_HELP_HEADER', __DIR__ . '/help/helpheader.tpl');
61
-define('CO_' . $moduleDirNameUpper . '_BACK_2_ADMIN', 'Back to Administration of ');
62
-define('CO_' . $moduleDirNameUpper . '_OVERVIEW', 'Overview');
59
+define('CO_'.$moduleDirNameUpper.'_DIRNAME', basename(dirname(dirname(__DIR__))));
60
+define('CO_'.$moduleDirNameUpper.'_HELP_HEADER', __DIR__.'/help/helpheader.tpl');
61
+define('CO_'.$moduleDirNameUpper.'_BACK_2_ADMIN', 'Back to Administration of ');
62
+define('CO_'.$moduleDirNameUpper.'_OVERVIEW', 'Overview');
63 63
 
64 64
 //define('CO_' . $moduleDirNameUpper . '_HELP_DIR', __DIR__);
65 65
 
66 66
 //help multi-page
67
-define('CO_' . $moduleDirNameUpper . '_DISCLAIMER', 'Disclaimer');
68
-define('CO_' . $moduleDirNameUpper . '_LICENSE', 'License');
69
-define('CO_' . $moduleDirNameUpper . '_SUPPORT', 'Support');
67
+define('CO_'.$moduleDirNameUpper.'_DISCLAIMER', 'Disclaimer');
68
+define('CO_'.$moduleDirNameUpper.'_LICENSE', 'License');
69
+define('CO_'.$moduleDirNameUpper.'_SUPPORT', 'Support');
70 70
 
71 71
 
72 72
 //Sample Data
73
-define('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)');
74
-define('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS', 'Sample Date uploaded successfully');
75
-define('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA', 'Export Tables to YAML');
76
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON', 'Show Sample Button?');
77
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC', 'If yes, the "Add Sample Data" button will be visible to the Admin. It is Yes as a default for first installation.');
78
-define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA', 'Export DB Schema to YAML');
79
-define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success');
80
-define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed');
73
+define('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)');
74
+define('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS', 'Sample Date uploaded successfully');
75
+define('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA', 'Export Tables to YAML');
76
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON', 'Show Sample Button?');
77
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON_DESC', 'If yes, the "Add Sample Data" button will be visible to the Admin. It is Yes as a default for first installation.');
78
+define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA', 'Export DB Schema to YAML');
79
+define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success');
80
+define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed');
81 81
 
82 82
 //letter choice
83 83
 define('CO_'.$moduleDirNameUpper.'_'.'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>");
@@ -85,39 +85,39 @@  discard block
 block discarded – undo
85 85
 define('CO_'.$moduleDirNameUpper.'_'.'ALL', 'All');
86 86
 
87 87
 // block defines
88
-define('CO_' . $moduleDirNameUpper . '_' . 'ACCESSRIGHTS', 'Access Rights');
89
-define('CO_' . $moduleDirNameUpper . '_' . 'ACTION', 'Action');
90
-define('CO_' . $moduleDirNameUpper . '_' . 'ACTIVERIGHTS', 'Active Rights');
91
-define('CO_' . $moduleDirNameUpper . '_' . 'BADMIN', 'Block Administration');
92
-define('CO_' . $moduleDirNameUpper . '_' . 'BLKDESC', 'Description');
93
-define('CO_' . $moduleDirNameUpper . '_' . 'CBCENTER', 'Center Middle');
94
-define('CO_' . $moduleDirNameUpper . '_' . 'CBLEFT', 'Center Left');
95
-define('CO_' . $moduleDirNameUpper . '_' . 'CBRIGHT', 'Center Right');
96
-define('CO_' . $moduleDirNameUpper . '_' . 'SBLEFT', 'Left');
97
-define('CO_' . $moduleDirNameUpper . '_' . 'SBRIGHT', 'Right');
98
-define('CO_' . $moduleDirNameUpper . '_' . 'SIDE', 'Alignment');
99
-define('CO_' . $moduleDirNameUpper . '_' . 'TITLE', 'Title');
100
-define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE', 'Visible');
101
-define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLEIN', 'Visible In');
102
-define('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT', 'Weight');
103
-
104
-define('CO_' . $moduleDirNameUpper . '_' . 'PERMISSIONS', 'Permissions');
105
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS', 'Blocks Admin');
106
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_DESC', 'Blocks/Group Admin');
107
-
108
-define('CO_' . $moduleDirNameUpper . '_' .'BLOCKS_MANAGMENT', 'Manage');
109
-define('CO_' . $moduleDirNameUpper . '_' .'BLOCKS_ADDBLOCK', 'Add a new block');
110
-define('CO_' . $moduleDirNameUpper . '_' .'BLOCKS_EDITBLOCK', 'Edit a block');
111
-define('CO_' . $moduleDirNameUpper . '_' .'BLOCKS_CLONEBLOCK', 'Clone a block');
88
+define('CO_'.$moduleDirNameUpper.'_'.'ACCESSRIGHTS', 'Access Rights');
89
+define('CO_'.$moduleDirNameUpper.'_'.'ACTION', 'Action');
90
+define('CO_'.$moduleDirNameUpper.'_'.'ACTIVERIGHTS', 'Active Rights');
91
+define('CO_'.$moduleDirNameUpper.'_'.'BADMIN', 'Block Administration');
92
+define('CO_'.$moduleDirNameUpper.'_'.'BLKDESC', 'Description');
93
+define('CO_'.$moduleDirNameUpper.'_'.'CBCENTER', 'Center Middle');
94
+define('CO_'.$moduleDirNameUpper.'_'.'CBLEFT', 'Center Left');
95
+define('CO_'.$moduleDirNameUpper.'_'.'CBRIGHT', 'Center Right');
96
+define('CO_'.$moduleDirNameUpper.'_'.'SBLEFT', 'Left');
97
+define('CO_'.$moduleDirNameUpper.'_'.'SBRIGHT', 'Right');
98
+define('CO_'.$moduleDirNameUpper.'_'.'SIDE', 'Alignment');
99
+define('CO_'.$moduleDirNameUpper.'_'.'TITLE', 'Title');
100
+define('CO_'.$moduleDirNameUpper.'_'.'VISIBLE', 'Visible');
101
+define('CO_'.$moduleDirNameUpper.'_'.'VISIBLEIN', 'Visible In');
102
+define('CO_'.$moduleDirNameUpper.'_'.'WEIGHT', 'Weight');
103
+
104
+define('CO_'.$moduleDirNameUpper.'_'.'PERMISSIONS', 'Permissions');
105
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS', 'Blocks Admin');
106
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_DESC', 'Blocks/Group Admin');
107
+
108
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_MANAGMENT', 'Manage');
109
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADDBLOCK', 'Add a new block');
110
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_EDITBLOCK', 'Edit a block');
111
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_CLONEBLOCK', 'Clone a block');
112 112
 
113 113
 //myblocksadmin
114
-define('CO_' . $moduleDirNameUpper . '_' . 'AGDS', 'Admin Groups');
115
-define('CO_' . $moduleDirNameUpper . '_' . 'BCACHETIME', 'Cache Time');
114
+define('CO_'.$moduleDirNameUpper.'_'.'AGDS', 'Admin Groups');
115
+define('CO_'.$moduleDirNameUpper.'_'.'BCACHETIME', 'Cache Time');
116 116
 
117 117
 //Template Admin
118
-define('CO_' . $moduleDirNameUpper . '_' . 'TPLSETS', 'Template Management');
119
-define('CO_' . $moduleDirNameUpper . '_' . 'GENERATE', 'Generate');
120
-define('CO_' . $moduleDirNameUpper . '_' . 'FILENAME', 'File Name');
118
+define('CO_'.$moduleDirNameUpper.'_'.'TPLSETS', 'Template Management');
119
+define('CO_'.$moduleDirNameUpper.'_'.'GENERATE', 'Generate');
120
+define('CO_'.$moduleDirNameUpper.'_'.'FILENAME', 'File Name');
121 121
 
122 122
 //Menu
123
-define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_MIGRATE', 'Migrate');
123
+define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_MIGRATE', 'Migrate');
Please login to merge, or discard this patch.
admin/blockform.php 2 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -27,15 +27,15 @@  discard block
 block discarded – undo
27 27
 }
28 28
 $side_select = new \XoopsFormSelect(_AM_SYSTEM_BLOCKS_TYPE, 'bside', $block['side']);
29 29
 $side_select->addOptionArray([
30
-                                 0 => _AM_SYSTEM_BLOCKS_SBLEFT,
31
-                                 1 => _AM_SYSTEM_BLOCKS_SBRIGHT,
32
-                                 3 => _AM_SYSTEM_BLOCKS_CBLEFT,
33
-                                 4 => _AM_SYSTEM_BLOCKS_CBRIGHT,
34
-                                 5 => _AM_SYSTEM_BLOCKS_CBCENTER,
35
-                                 7 => _AM_SYSTEM_BLOCKS_CBBOTTOMLEFT,
36
-                                 8 => _AM_SYSTEM_BLOCKS_CBBOTTOMRIGHT,
37
-                                 9 => _AM_SYSTEM_BLOCKS_CBBOTTOM
38
-                             ]);
30
+                                    0 => _AM_SYSTEM_BLOCKS_SBLEFT,
31
+                                    1 => _AM_SYSTEM_BLOCKS_SBRIGHT,
32
+                                    3 => _AM_SYSTEM_BLOCKS_CBLEFT,
33
+                                    4 => _AM_SYSTEM_BLOCKS_CBRIGHT,
34
+                                    5 => _AM_SYSTEM_BLOCKS_CBCENTER,
35
+                                    7 => _AM_SYSTEM_BLOCKS_CBBOTTOMLEFT,
36
+                                    8 => _AM_SYSTEM_BLOCKS_CBBOTTOMRIGHT,
37
+                                    9 => _AM_SYSTEM_BLOCKS_CBBOTTOM
38
+                                ]);
39 39
 $form->addElement($side_select);
40 40
 $form->addElement(new \XoopsFormText(constant('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT'), 'bweight', 2, 5, $block['weight']));
41 41
 $form->addElement(new \XoopsFormRadioYN(constant('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE'), 'bvisible', $block['visible']));
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
     $form->addElement($textarea, true);
58 58
     $ctype_select = new \XoopsFormSelect(_AM_SYSTEM_BLOCKS_CTYPE, 'bctype', $block['ctype']);
59 59
     $ctype_select->addOptionArray([
60
-                                      'H' => _AM_SYSTEM_BLOCKS_HTML,
61
-                                      'P' => _AM_SYSTEM_BLOCKS_PHP,
62
-                                      'S' => _AM_SYSTEM_BLOCKS_AFWSMILE,
63
-                                      'T' => _AM_SYSTEM_BLOCKS_AFNOSMILE
64
-                                  ]);
60
+                                        'H' => _AM_SYSTEM_BLOCKS_HTML,
61
+                                        'P' => _AM_SYSTEM_BLOCKS_PHP,
62
+                                        'S' => _AM_SYSTEM_BLOCKS_AFWSMILE,
63
+                                        'T' => _AM_SYSTEM_BLOCKS_AFNOSMILE
64
+                                    ]);
65 65
     $form->addElement($ctype_select);
66 66
 } else {
67 67
     if ('' !== $block['template']) {
@@ -82,18 +82,18 @@  discard block
 block discarded – undo
82 82
 }
83 83
 $cache_select = new \XoopsFormSelect(_AM_SYSTEM_BLOCKS_BCACHETIME, 'bcachetime', $block['bcachetime']);
84 84
 $cache_select->addOptionArray([
85
-                                  '0'       => _NOCACHE,
86
-                                  '30'      => sprintf(_SECONDS, 30),
87
-                                  '60'      => _MINUTE,
88
-                                  '300'     => sprintf(_MINUTES, 5),
89
-                                  '1800'    => sprintf(_MINUTES, 30),
90
-                                  '3600'    => _HOUR,
91
-                                  '18000'   => sprintf(_HOURS, 5),
92
-                                  '86400'   => _DAY,
93
-                                  '259200'  => sprintf(_DAYS, 3),
94
-                                  '604800'  => _WEEK,
95
-                                  '2592000' => _MONTH
96
-                              ]);
85
+                                    '0'       => _NOCACHE,
86
+                                    '30'      => sprintf(_SECONDS, 30),
87
+                                    '60'      => _MINUTE,
88
+                                    '300'     => sprintf(_MINUTES, 5),
89
+                                    '1800'    => sprintf(_MINUTES, 30),
90
+                                    '3600'    => _HOUR,
91
+                                    '18000'   => sprintf(_HOURS, 5),
92
+                                    '86400'   => _DAY,
93
+                                    '259200'  => sprintf(_DAYS, 3),
94
+                                    '604800'  => _WEEK,
95
+                                    '2592000' => _MONTH
96
+                                ]);
97 97
 $form->addElement($cache_select);
98 98
 
99 99
 $grouppermHandler = xoops_getHandler('groupperm');
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@  discard block
 block discarded – undo
16 16
 
17 17
 
18 18
 
19
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
19
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
20 20
 
21 21
 $moduleDirName = basename(dirname(__DIR__));
22
-$moduleDirNameUpper   = strtoupper($moduleDirName); //$capsDirName
22
+$moduleDirNameUpper = strtoupper($moduleDirName); //$capsDirName
23 23
 
24 24
 $form = new \XoopsThemeForm($block['form_title'], 'blockform', 'blocksadmin.php', 'post', true);
25 25
 if (isset($block['name'])) {
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
                                  9 => _AM_SYSTEM_BLOCKS_CBBOTTOM
38 38
                              ]);
39 39
 $form->addElement($side_select);
40
-$form->addElement(new \XoopsFormText(constant('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT'), 'bweight', 2, 5, $block['weight']));
41
-$form->addElement(new \XoopsFormRadioYN(constant('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE'), 'bvisible', $block['visible']));
42
-$mod_select = new \XoopsFormSelect(constant('CO_' . $moduleDirNameUpper . '_' . 'VISIBLEIN'), 'bmodule', $block['modules'], 5, true);
40
+$form->addElement(new \XoopsFormText(constant('CO_'.$moduleDirNameUpper.'_'.'WEIGHT'), 'bweight', 2, 5, $block['weight']));
41
+$form->addElement(new \XoopsFormRadioYN(constant('CO_'.$moduleDirNameUpper.'_'.'VISIBLE'), 'bvisible', $block['visible']));
42
+$mod_select = new \XoopsFormSelect(constant('CO_'.$moduleDirNameUpper.'_'.'VISIBLEIN'), 'bmodule', $block['modules'], 5, true);
43 43
 /** @var XoopsModuleHandler $moduleHandler */
44 44
 $moduleHandler = xoops_getHandler('module');
45 45
 $criteria      = new \CriteriaCompo(new \Criteria('hasmain', 1));
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 $form->addElement(new \XoopsFormText(_AM_TITLE, 'btitle', 50, 255, $block['title']), false);
54 54
 if ($block['is_custom']) {
55 55
     $textarea = new \XoopsFormDhtmlTextArea(_AM_SYSTEM_BLOCKS_CONTENT, 'bcontent', $block['content'], 15, 70);
56
-    $textarea->setDescription('<span style="font-size:x-small;font-weight:bold;">' . _AM_SYSTEM_BLOCKS_USEFULTAGS . '</span><br><span style="font-size:x-small;font-weight:normal;">' . sprintf(_AM_BLOCKTAG1, '{X_SITEURL}', XOOPS_URL . '/') . '</span>');
56
+    $textarea->setDescription('<span style="font-size:x-small;font-weight:bold;">'._AM_SYSTEM_BLOCKS_USEFULTAGS.'</span><br><span style="font-size:x-small;font-weight:normal;">'.sprintf(_AM_BLOCKTAG1, '{X_SITEURL}', XOOPS_URL.'/').'</span>');
57 57
     $form->addElement($textarea, true);
58 58
     $ctype_select = new \XoopsFormSelect(_AM_SYSTEM_BLOCKS_CTYPE, 'bctype', $block['ctype']);
59 59
     $ctype_select->addOptionArray([
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
68 68
         $tplfileHandler = xoops_getHandler('tplfile');
69 69
         $btemplate      = $tplfileHandler->find($GLOBALS['xoopsConfig']['template_set'], 'block', $block['bid']);
70 70
         if (count($btemplate) > 0) {
71
-            $form->addElement(new \XoopsFormLabel(_AM_SYSTEM_BLOCKS_CONTENT, '<a href="' . XOOPS_URL . '/modules/system/admin.php?fct=tplsets&amp;op=edittpl&amp;id=' . $btemplate[0]->getVar('tpl_id') . '">' . _AM_SYSTEM_BLOCKS_EDITTPL . '</a>'));
71
+            $form->addElement(new \XoopsFormLabel(_AM_SYSTEM_BLOCKS_CONTENT, '<a href="'.XOOPS_URL.'/modules/system/admin.php?fct=tplsets&amp;op=edittpl&amp;id='.$btemplate[0]->getVar('tpl_id').'">'._AM_SYSTEM_BLOCKS_EDITTPL.'</a>'));
72 72
         } else {
73 73
             $btemplate2 = $tplfileHandler->find('default', 'block', $block['bid']);
74 74
             if (count($btemplate2) > 0) {
75
-                $form->addElement(new \XoopsFormLabel(_AM_SYSTEM_BLOCKS_CONTENT, '<a href="' . XOOPS_URL . '/modules/system/admin.php?fct=tplsets&amp;op=edittpl&amp;id=' . $btemplate2[0]->getVar('tpl_id') . '" target="_blank">' . _AM_SYSTEM_BLOCKS_EDITTPL . '</a>'));
75
+                $form->addElement(new \XoopsFormLabel(_AM_SYSTEM_BLOCKS_CONTENT, '<a href="'.XOOPS_URL.'/modules/system/admin.php?fct=tplsets&amp;op=edittpl&amp;id='.$btemplate2[0]->getVar('tpl_id').'" target="_blank">'._AM_SYSTEM_BLOCKS_EDITTPL.'</a>'));
76 76
             }
77 77
         }
78 78
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 $form->addElement($cache_select);
98 98
 
99 99
 $grouppermHandler = xoops_getHandler('groupperm');
100
-$groups          = $grouppermHandler->getGroupIds('block_read', $block['bid']);
100
+$groups = $grouppermHandler->getGroupIds('block_read', $block['bid']);
101 101
 
102 102
 $form->addElement(new \XoopsFormSelectGroup(_AM_SYSTEM_BLOCKS_GROUP, 'groups', true, $groups, 5, true));
103 103
 
Please login to merge, or discard this patch.
admin/migrate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 use XoopsModules\Extcal;
34 34
 use XoopsModules\Extcal\Common;
35 35
 
36
-require_once __DIR__ . '/admin_header.php';
36
+require_once __DIR__.'/admin_header.php';
37 37
 xoops_cp_header();
38 38
 
39 39
 $adminObject->displayNavigation(basename(__FILE__));
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         if (!empty($queue)) {
77 77
             echo "<pre>\n";
78 78
             foreach ($queue as $line) {
79
-                echo $line . ";\n";
79
+                echo $line.";\n";
80 80
             }
81 81
             echo "</pre>\n";
82 82
         }
@@ -98,4 +98,4 @@  discard block
 block discarded – undo
98 98
 
99 99
 echo "<div>$message</div>";
100 100
 
101
-require_once __DIR__ . '/admin_footer.php';
101
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.