Passed
Push — master ( f62223...75b16c )
by Michael
02:33
created
comment_delete.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_delete.php';
20
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
21
+require_once XOOPS_ROOT_PATH.'/include/comment_delete.php';
Please login to merge, or discard this patch.
admin/upgrade.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
     $step = $_POST['step'];
6 6
 }
7 7
 
8
-require_once  dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
9
-require_once __DIR__   . '/function.php';
8
+require_once  dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
9
+require_once __DIR__.'/function.php';
10 10
 
11 11
 // Change this variable if you use a cloned version of eXtGallery
12 12
 $localModuleDir = 'extcal';
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
16 16
 $downloadServer = 'http://downloads.sourceforge.net/zoullou/';
17 17
 
18 18
 $lastVersion       = @file_get_contents($versionFile);
19
-$lastVersionString = substr($lastVersion, 0, 1) . '.' . substr($lastVersion, 1, 1) . '.' . substr($lastVersion, 2, 1);
20
-$moduleFileName    = $moduleName . '-' . $lastVersionString . '.tar.gz';
21
-$langFileName      = $moduleName . '-lang-' . $lastVersionString . '_' . $xoopsConfig['language'] . '.tar.gz';
19
+$lastVersionString = substr($lastVersion, 0, 1).'.'.substr($lastVersion, 1, 1).'.'.substr($lastVersion, 2, 1);
20
+$moduleFileName    = $moduleName.'-'.$lastVersionString.'.tar.gz';
21
+$langFileName      = $moduleName.'-lang-'.$lastVersionString.'_'.$xoopsConfig['language'].'.tar.gz';
22 22
 
23 23
 switch ($step) {
24 24
     case 'download':
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
             break;
31 31
         }
32 32
 
33
-        if (!$handle = @fopen($downloadServer . $moduleFileName, 'r')) {
33
+        if (!$handle = @fopen($downloadServer.$moduleFileName, 'r')) {
34 34
             printf(_AM_EXTCAL_MD_FILE_DONT_EXIST, $downloadServer, $moduleFileName);
35 35
             xoops_cp_footer();
36 36
             break;
37 37
         }
38
-        $localHandle = @fopen(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName, 'w+');
38
+        $localHandle = @fopen(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName, 'w+');
39 39
 
40 40
         // Downlad module archive
41 41
         if ($handle) {
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
 
50 50
         // English file are included on module package
51 51
         if ('english' !== $xoopsConfig['language']) {
52
-            if (!$handle = @fopen($downloadServer . $langFileName, 'r')) {
52
+            if (!$handle = @fopen($downloadServer.$langFileName, 'r')) {
53 53
                 printf(_AM_EXTCAL_LG_FILE_DONT_EXIST, $downloadServer, $langFileName);
54 54
             } else {
55
-                $localHandle = @fopen(XOOPS_ROOT_PATH . '/uploads/' . $langFileName, 'w+');
55
+                $localHandle = @fopen(XOOPS_ROOT_PATH.'/uploads/'.$langFileName, 'w+');
56 56
                 // Download language archive
57 57
                 if ($handle) {
58 58
                     while (!feof($handle)) {
@@ -75,35 +75,35 @@  discard block
 block discarded – undo
75 75
         xoops_cp_header();
76 76
         adminMenu();
77 77
 
78
-        if (!file_exists(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName)) {
78
+        if (!file_exists(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName)) {
79 79
             echo _AM_EXTCAL_MD_FILE_DONT_EXIST_SHORT;
80 80
             xoops_cp_footer();
81 81
 
82 82
             break;
83 83
         }
84 84
 
85
-        $gPcltarLibDir = XOOPS_ROOT_PATH . '/modules/' . $localModuleDir . '/class';
86
-        require_once dirname(__DIR__) . '/class/pcltar.lib.php';
85
+        $gPcltarLibDir = XOOPS_ROOT_PATH.'/modules/'.$localModuleDir.'/class';
86
+        require_once dirname(__DIR__).'/class/pcltar.lib.php';
87 87
 
88 88
         //TrOn(5);
89 89
 
90 90
         // Extract module files
91
-        PclTarExtract(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName, XOOPS_ROOT_PATH . '/modules/' . $localModuleDir . '/', 'modules/' . $moduleName . '/');
91
+        PclTarExtract(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName, XOOPS_ROOT_PATH.'/modules/'.$localModuleDir.'/', 'modules/'.$moduleName.'/');
92 92
         // Delete downloaded module's files
93
-        unlink(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName);
93
+        unlink(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName);
94 94
 
95
-        if (file_exists(XOOPS_ROOT_PATH . '/uploads/' . $langFileName)) {
95
+        if (file_exists(XOOPS_ROOT_PATH.'/uploads/'.$langFileName)) {
96 96
             // Extract language files
97
-            PclTarExtract(XOOPS_ROOT_PATH . '/uploads/' . $langFileName, XOOPS_ROOT_PATH . '/modules/' . $localModuleDir . '/', 'modules/' . $moduleName . '/');
97
+            PclTarExtract(XOOPS_ROOT_PATH.'/uploads/'.$langFileName, XOOPS_ROOT_PATH.'/modules/'.$localModuleDir.'/', 'modules/'.$moduleName.'/');
98 98
             // Delete downloaded module's files
99
-            unlink(XOOPS_ROOT_PATH . '/uploads/' . $langFileName);
99
+            unlink(XOOPS_ROOT_PATH.'/uploads/'.$langFileName);
100 100
         }
101 101
 
102 102
         // Delete template_c file
103
-        if ($handle = opendir(XOOPS_ROOT_PATH . '/templates_c')) {
103
+        if ($handle = opendir(XOOPS_ROOT_PATH.'/templates_c')) {
104 104
             while (false !== ($file = readdir($handle))) {
105 105
                 if ('.' !== $file && '..' !== $file && 'index.html' !== $file) {
106
-                    unlink(XOOPS_ROOT_PATH . '/templates_c/' . $file);
106
+                    unlink(XOOPS_ROOT_PATH.'/templates_c/'.$file);
107 107
                 }
108 108
             }
109 109
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         }
112 112
         //TrDisplay();
113 113
 
114
-        xoops_confirm(['dirname' => $localModuleDir, 'op' => 'update_ok', 'fct' => 'modulesadmin'], XOOPS_URL . '/modules/system/admin.php', _AM_EXTCAL_INSTALL_DONE, _AM_EXTCAL_UPDATE);
114
+        xoops_confirm(['dirname' => $localModuleDir, 'op' => 'update_ok', 'fct' => 'modulesadmin'], XOOPS_URL.'/modules/system/admin.php', _AM_EXTCAL_INSTALL_DONE, _AM_EXTCAL_UPDATE);
115 115
 
116 116
         xoops_cp_footer();
117 117
 
Please login to merge, or discard this patch.
admin/permissions.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once  dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
21
-require_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php';
22
-require_once __DIR__ . '/admin_header.php';
20
+require_once  dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
21
+require_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php';
22
+require_once __DIR__.'/admin_header.php';
23 23
 
24 24
 $step = 'default';
25 25
 if (\Xmf\Request::hasVar('step', 'POST')) {
@@ -95,35 +95,35 @@  discard block
 block discarded – undo
95 95
         echo '<fieldset id="defaultBookmark"><legend><a href="#defaultBookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'default\'); toggleIcon(\'defaultIcon\');"><img id="defaultIcon" src="../assets/images/icons/minus.gif">&nbsp;'
96 96
              . _AM_EXTCAL_PUBLIC_PERM_MASK
97 97
              . '</a></legend><div id="default">';
98
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
98
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
99 99
         echo _AM_EXTCAL_PUBLIC_PERM_MASK_INFO;
100 100
         echo '</fieldset><br>';
101 101
         echo '<table class="outer" style="width:100%;">';
102 102
         echo '<form method="post" action="permissions.php">';
103 103
         echo '<tr>';
104
-        echo '<th colspan="8" style="text-align:center;">' . _AM_EXTCAL_PUBLIC_PERM_MASK . '</th>';
104
+        echo '<th colspan="8" style="text-align:center;">'._AM_EXTCAL_PUBLIC_PERM_MASK.'</th>';
105 105
         echo '</tr>';
106 106
         echo '<tr>';
107
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_GROUP_NAME . '</td>';
108
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_VIEW . '</td>';
109
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_SUBMIT . '</td>';
110
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_AUTO_APPROVE . '</td>';
111
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_EDIT . '</td>';
107
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_GROUP_NAME.'</td>';
108
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_VIEW.'</td>';
109
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_SUBMIT.'</td>';
110
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_AUTO_APPROVE.'</td>';
111
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_EDIT.'</td>';
112 112
         echo '</tr>';
113 113
         $i = 0;
114 114
         foreach ($glist as $k => $v) {
115 115
             $style = (0 == ++$i % 2) ? 'odd' : 'even';
116 116
             echo '<tr>';
117
-            echo '<td class="' . $style . '">' . $v . '</td>';
118
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][1]" type="checkbox"' . getChecked($viewGroup, $k) . '></td>';
119
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][2]" type="checkbox"' . getChecked($submitGroup, $k) . '></td>';
120
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][4]" type="checkbox"' . getChecked($autoApproveGroup, $k) . '></td>';
121
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][8]" type="checkbox"' . getChecked($editGroup, $k) . '></td>';
117
+            echo '<td class="'.$style.'">'.$v.'</td>';
118
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][1]" type="checkbox"'.getChecked($viewGroup, $k).'></td>';
119
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][2]" type="checkbox"'.getChecked($submitGroup, $k).'></td>';
120
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][4]" type="checkbox"'.getChecked($autoApproveGroup, $k).'></td>';
121
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][8]" type="checkbox"'.getChecked($editGroup, $k).'></td>';
122 122
             echo '</tr>';
123 123
         }
124 124
         echo '<input type="hidden" name="type" value="public">';
125 125
         echo '<input type="hidden" name="step" value="enreg">';
126
-        echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="' . _SUBMIT . '"></td></tr></form>';
126
+        echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="'._SUBMIT.'"></td></tr></form>';
127 127
         echo '</table><br>';
128 128
 
129 129
         echo '</div></fieldset><br>';
@@ -158,12 +158,12 @@  discard block
 block discarded – undo
158 158
              . '</a></legend><div id="'
159 159
              . $permName
160 160
              . '">';
161
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
161
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
162 162
         echo $permDesc;
163 163
         echo '</fieldset>';
164 164
 
165 165
         if ($catHandler->getCount()) {
166
-            echo $form->render() . '<br>';
166
+            echo $form->render().'<br>';
167 167
         } else {
168 168
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
169 169
         }
@@ -196,11 +196,11 @@  discard block
 block discarded – undo
196 196
              . '</a></legend><div id="'
197 197
              . $permName
198 198
              . '">';
199
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
199
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
200 200
         echo $permDesc;
201 201
         echo '</fieldset>';
202 202
         if ($catHandler->getCount()) {
203
-            echo $form->render() . '<br>';
203
+            echo $form->render().'<br>';
204 204
         } else {
205 205
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
206 206
         }
@@ -233,11 +233,11 @@  discard block
 block discarded – undo
233 233
              . '</a></legend><div id="'
234 234
              . $permName
235 235
              . '">';
236
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
236
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
237 237
         echo $permDesc;
238 238
         echo '</fieldset>';
239 239
         if ($catHandler->getCount()) {
240
-            echo $form->render() . '<br>';
240
+            echo $form->render().'<br>';
241 241
         } else {
242 242
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
243 243
         }
@@ -270,11 +270,11 @@  discard block
 block discarded – undo
270 270
              . '</a></legend><div id="'
271 271
              . $permName
272 272
              . '">';
273
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
273
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
274 274
         echo $permDesc;
275 275
         echo '</fieldset>';
276 276
         if ($catHandler->getCount()) {
277
-            echo $form->render() . '<br>';
277
+            echo $form->render().'<br>';
278 278
         } else {
279 279
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
280 280
         }
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
         echo 'toggle(\'extcal_cat_edit\'); toggleIcon (\'extcal_cat_editIcon\');';
292 292
         echo '</script>';
293 293
 
294
-        require_once __DIR__ . '/admin_footer.php';
294
+        require_once __DIR__.'/admin_footer.php';
295 295
 
296 296
         break;
297 297
 
Please login to merge, or discard this patch.
admin/location.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -156,10 +156,10 @@
 block discarded – undo
156 156
             }
157 157
         } else {
158 158
             xoops_confirm([
159
-                              'ok'               => 1,
160
-                              'location_id' => $_REQUEST['location_id'],
161
-                              'op'               => 'delete_location',
162
-                          ], $_SERVER['REQUEST_URI'], _AM_EXTCAL_LOCATION_SURDEL . '<br>');
159
+                                'ok'               => 1,
160
+                                'location_id' => $_REQUEST['location_id'],
161
+                                'op'               => 'delete_location',
162
+                            ], $_SERVER['REQUEST_URI'], _AM_EXTCAL_LOCATION_SURDEL . '<br>');
163 163
         }
164 164
         break;
165 165
 
Please login to merge, or discard this patch.
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -20,18 +20,18 @@  discard block
 block discarded – undo
20 20
 use XoopsModules\Extcal;
21 21
 
22 22
 // Include xoops admin header
23
-require_once  dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
23
+require_once  dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
24 24
 // require_once  dirname(__DIR__) . '/class/ExtcalPersistableObjectHandler.php';
25
-require_once  dirname(dirname(dirname(__DIR__))) . '/kernel/module.php';
26
-require_once  dirname(dirname(dirname(__DIR__))) . '/class/xoopsformloader.php';
27
-require_once  dirname(dirname(dirname(__DIR__))) . '/class/tree.php';
28
-require_once  dirname(dirname(dirname(__DIR__))) . '/class/xoopslists.php';
29
-require_once  dirname(dirname(dirname(__DIR__))) . '/class/pagenav.php';
30
-require_once  dirname(dirname(dirname(__DIR__))) . '/class/xoopsform/grouppermform.php';
31
-require_once  dirname(dirname(dirname(__DIR__))) . '/class/uploader.php';
32
-require_once  dirname(__DIR__) . '/include/constantes.php';
25
+require_once  dirname(dirname(dirname(__DIR__))).'/kernel/module.php';
26
+require_once  dirname(dirname(dirname(__DIR__))).'/class/xoopsformloader.php';
27
+require_once  dirname(dirname(dirname(__DIR__))).'/class/tree.php';
28
+require_once  dirname(dirname(dirname(__DIR__))).'/class/xoopslists.php';
29
+require_once  dirname(dirname(dirname(__DIR__))).'/class/pagenav.php';
30
+require_once  dirname(dirname(dirname(__DIR__))).'/class/xoopsform/grouppermform.php';
31
+require_once  dirname(dirname(dirname(__DIR__))).'/class/uploader.php';
32
+require_once  dirname(__DIR__).'/include/constantes.php';
33 33
 
34
-require_once __DIR__ . '/admin_header.php';
34
+require_once __DIR__.'/admin_header.php';
35 35
 
36 36
 //require("functions.php");
37 37
 //require("../include/functions.php");
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
39 39
 if ($xoopsUser) {
40 40
     $xoopsModule = \XoopsModule::getByDirname('extcal');
41 41
     if (!$xoopsUser->isAdmin($xoopsModule->mid())) {
42
-        redirect_header(XOOPS_URL . '/', 3, _NOPERM);
42
+        redirect_header(XOOPS_URL.'/', 3, _NOPERM);
43 43
     }
44 44
 } else {
45
-    redirect_header(XOOPS_URL . '/', 3, _NOPERM);
45
+    redirect_header(XOOPS_URL.'/', 3, _NOPERM);
46 46
 }
47 47
 
48 48
 // Include language file
@@ -97,9 +97,9 @@  discard block
 block discarded – undo
97 97
         $criteria->setSort('nom');
98 98
         $criteria->setOrder('ASC');
99 99
         $location_arr = $locationHandler->getObjects($criteria);
100
-        $numrows           = $locationHandler->getCount($criteria);
100
+        $numrows = $locationHandler->getCount($criteria);
101 101
         if ($numrows > $limit) {
102
-            $pagenav = new \XoopsPageNav($numrows, $limit, $start, 'start', 'op=liste&limit=' . $limit);
102
+            $pagenav = new \XoopsPageNav($numrows, $limit, $start, 'start', 'op=liste&limit='.$limit);
103 103
             $pagenav = $pagenav->renderNav(4);
104 104
         } else {
105 105
             $pagenav = '';
@@ -108,35 +108,35 @@  discard block
 block discarded – undo
108 108
         if ($numrows > 0) {
109 109
             echo '<table width="100%" cellspacing="1" class="outer">';
110 110
             echo '<tr>';
111
-            echo '<th align="center">' . _AM_EXTCAL_LOCATION_FORM_NOM . '</th>';
112
-            echo '<th align="center" width="20%">' . _AM_EXTCAL_LOCATION_FORM_ADRESSE . '</th>';
113
-            echo '<th align="center" width="20%">' . _AM_EXTCAL_LOCATION_FORM_CITY . '</th>';
114
-            echo '<th align="center" width="15%">' . _AM_EXTCAL_LOCATION_FORM_TELEPHONE . '</th>';
115
-            echo '<th align="center" width="15%">' . _AM_EXTCAL_LOCATION_FORM_ACTION . '</th>';
111
+            echo '<th align="center">'._AM_EXTCAL_LOCATION_FORM_NOM.'</th>';
112
+            echo '<th align="center" width="20%">'._AM_EXTCAL_LOCATION_FORM_ADRESSE.'</th>';
113
+            echo '<th align="center" width="20%">'._AM_EXTCAL_LOCATION_FORM_CITY.'</th>';
114
+            echo '<th align="center" width="15%">'._AM_EXTCAL_LOCATION_FORM_TELEPHONE.'</th>';
115
+            echo '<th align="center" width="15%">'._AM_EXTCAL_LOCATION_FORM_ACTION.'</th>';
116 116
             echo '</tr>';
117 117
             $class = 'odd';
118 118
             foreach (array_keys($location_arr) as $i) {
119
-                $class                   = ('even' === $class) ? 'odd' : 'even';
119
+                $class = ('even' === $class) ? 'odd' : 'even';
120 120
                 $location_id        = $location_arr[$i]->getVar('id');
121 121
                 $location_nom       = $location_arr[$i]->getVar('nom');
122 122
                 $location_adresse   = $location_arr[$i]->getVar('adresse');
123 123
                 $location_city      = $location_arr[$i]->getVar('ville');
124 124
                 $location_telephone = $location_arr[$i]->getVar('tel_fixe');
125
-                echo '<tr class="' . $class . '">';
126
-                echo '<td align="left">' . '<a href="Location.php?op=edit_location&location_id=' . $location_id . '">' . $location_nom . '</a>' . '</td>';
125
+                echo '<tr class="'.$class.'">';
126
+                echo '<td align="left">'.'<a href="Location.php?op=edit_location&location_id='.$location_id.'">'.$location_nom.'</a>'.'</td>';
127 127
 
128
-                echo '<td align="center"><b>' . $location_adresse . '</td>';
129
-                echo '<td align="center"><b>' . $location_city . '</td>';
130
-                echo '<td align="center"><b>' . $location_telephone . '</td>';
128
+                echo '<td align="center"><b>'.$location_adresse.'</td>';
129
+                echo '<td align="center"><b>'.$location_city.'</td>';
130
+                echo '<td align="center"><b>'.$location_telephone.'</td>';
131 131
                 echo '<td align="center" width="15%">';
132
-                echo '<a href="Location.php?op=edit_location&location_id=' . $location_id . '"><img src=' . $pathIcon16 . '/edit.png alt="' . _AM_EXTCAL_LOCATION_FORM_EDIT . '" title="' . _AM_EXTCAL_LOCATION_FORM_EDIT . '"></a> ';
133
-                echo '<a href="Location.php?op=delete_location&location_id=' . $location_id . '"><img src=' . $pathIcon16 . '/delete.png alt="' . _AM_EXTCAL_LOCATION_FORM_DELETE . '" title="' . _AM_EXTCAL_LOCATION_FORM_DELETE . '"></a> ';
132
+                echo '<a href="Location.php?op=edit_location&location_id='.$location_id.'"><img src='.$pathIcon16.'/edit.png alt="'._AM_EXTCAL_LOCATION_FORM_EDIT.'" title="'._AM_EXTCAL_LOCATION_FORM_EDIT.'"></a> ';
133
+                echo '<a href="Location.php?op=delete_location&location_id='.$location_id.'"><img src='.$pathIcon16.'/delete.png alt="'._AM_EXTCAL_LOCATION_FORM_DELETE.'" title="'._AM_EXTCAL_LOCATION_FORM_DELETE.'"></a> ';
134 134
                 echo '</td>';
135 135
             }
136 136
             echo '</table><br>';
137
-            echo '<br><div align=right>' . $pagenav . '</div><br>';
137
+            echo '<br><div align=right>'.$pagenav.'</div><br>';
138 138
         } else {
139
-            echo '<div class="errorMsg" style="text-align: center;">' . _AM_EXTCAL_ERREUR_NO_LOCATION . '</div>';
139
+            echo '<div class="errorMsg" style="text-align: center;">'._AM_EXTCAL_ERREUR_NO_LOCATION.'</div>';
140 140
         }
141 141
 
142 142
         // Affichage du formulaire
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
                               'ok'               => 1,
160 160
                               'location_id' => $_REQUEST['location_id'],
161 161
                               'op'               => 'delete_location',
162
-                          ], $_SERVER['REQUEST_URI'], _AM_EXTCAL_LOCATION_SURDEL . '<br>');
162
+                          ], $_SERVER['REQUEST_URI'], _AM_EXTCAL_LOCATION_SURDEL.'<br>');
163 163
         }
164 164
         break;
165 165
 
@@ -201,11 +201,11 @@  discard block
 block discarded – undo
201 201
         $obj->setVar('map', $_REQUEST['map']);
202 202
 
203 203
         //Logo
204
-        $uploaddir_location = XOOPS_ROOT_PATH . '/uploads/extcal/location/';
205
-        $uploadurl_location = XOOPS_URL . '/uploads/extcal/location/';
204
+        $uploaddir_location = XOOPS_ROOT_PATH.'/uploads/extcal/location/';
205
+        $uploadurl_location = XOOPS_URL.'/uploads/extcal/location/';
206 206
 
207 207
         $delimg = @$_REQUEST['delimg'];
208
-        $delimg = isset($delimg) ? (int)$delimg : 0;
208
+        $delimg = isset($delimg) ? (int) $delimg : 0;
209 209
         if (0 == $delimg && !empty($_REQUEST['xoops_upload_file'][0])) {
210 210
             $upload = new \XoopsMediaUploader($uploaddir_location, [
211 211
                 'image/gif',
@@ -227,8 +227,8 @@  discard block
 block discarded – undo
227 227
                 $logo = $_REQUEST['file'];
228 228
             }
229 229
         } else {
230
-            $logo              = '';
231
-            $url_location = XOOPS_ROOT_PATH . '/uploads/extcal/location/' . $_REQUEST['file'];
230
+            $logo = '';
231
+            $url_location = XOOPS_ROOT_PATH.'/uploads/extcal/location/'.$_REQUEST['file'];
232 232
             if (is_file($url_location)) {
233 233
                 chmod($url_location, 0777);
234 234
                 unlink($url_location);
@@ -248,4 +248,4 @@  discard block
 block discarded – undo
248 248
         break;
249 249
 }
250 250
 
251
-require_once __DIR__ . '/admin_footer.php';
251
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/cat.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
 use Xmf\Request;
21 21
 use XoopsModules\Extcal;
22 22
 
23
-require_once  dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
24
-require_once dirname(dirname(dirname(__DIR__))) . '/class/xoopsformloader.php';
25
-require_once __DIR__ . '/admin_header.php';
23
+require_once  dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
24
+require_once dirname(dirname(dirname(__DIR__))).'/class/xoopsformloader.php';
25
+require_once __DIR__.'/admin_header.php';
26 26
 // require_once  dirname(__DIR__) . '/class/Utility.php';
27
-require_once  dirname(__DIR__) . '/include/constantes.php';
27
+require_once  dirname(__DIR__).'/include/constantes.php';
28 28
 
29 29
 //$gepeto = array_merge($_GET, $_POST);
30 30
 //while (list($key, $value) = each($gepeto)) {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         $form->addElement(new \XoopsFormText(_AM_EXTCAL_WEIGHT, 'cat_weight', 30, 5, 0), false);
96 96
         $form->addElement(new \XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color', '#FF0000'));
97 97
 
98
-        $file_path =  dirname(__DIR__) . '/assets/css/images';
98
+        $file_path = dirname(__DIR__).'/assets/css/images';
99 99
         $tf        = \XoopsLists::getImgListAsArray($file_path);
100 100
         array_unshift($tf, _MD_EXTCAL_NONE);
101 101
         //$xfIcones = new \XoopsFormSelect(_AM_EXTCAL_ICONE, "cat_icone", $cat->getVar('cat_icone'), '');
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
         $form->display();
109 109
 
110
-        require_once __DIR__ . '/admin_footer.php';
110
+        require_once __DIR__.'/admin_footer.php';
111 111
         break;
112 112
 
113 113
     case 'edit':
@@ -120,15 +120,15 @@  discard block
 block discarded – undo
120 120
             //            $cat = $catHandler->getCat($cat_id, true);
121 121
         }
122 122
 
123
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_EDIT_CATEGORY . '</legend>';
123
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_EDIT_CATEGORY.'</legend>';
124 124
 
125 125
         $form = new \XoopsThemeForm(_AM_EXTCAL_ADD_CATEGORY, 'add_cat', 'cat.php?op=enreg', 'post', true);
126 126
         $form->addElement(new \XoopsFormText(_AM_EXTCAL_NAME, 'cat_name', 30, 255, $cat->getVar('cat_name')), true);
127 127
         $form->addElement(new \XoopsFormDhtmlTextArea(_AM_EXTCAL_DESCRIPTION, 'cat_desc', $cat->getVar('cat_desc')), false);
128 128
         $form->addElement(new \XoopsFormText(_AM_EXTCAL_WEIGHT, 'cat_weight', 30, 5, $cat->getVar('cat_weight')), false);
129
-        $form->addElement(new \XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color', '#' . $cat->getVar('cat_color')));
129
+        $form->addElement(new \XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color', '#'.$cat->getVar('cat_color')));
130 130
 
131
-        $file_path =  dirname(__DIR__) . '/assets/css/images';
131
+        $file_path = dirname(__DIR__).'/assets/css/images';
132 132
         $tf        = \XoopsLists::getImgListAsArray($file_path);
133 133
         array_unshift($tf, _MD_EXTCAL_NONE);
134 134
         $xfIcones = new \XoopsFormSelect(_AM_EXTCAL_ICONE, 'cat_icone', $cat->getVar('cat_icone'), '');
@@ -284,6 +284,6 @@  discard block
 block discarded – undo
284 284
         //$xoopsTpl->assign("module_dirname",    $xoopsModule->getVar("dirname") );
285 285
 
286 286
         $xoopsTpl->display('db:admin/extcal_admin_cat_list.tpl');
287
-        require_once __DIR__ . '/admin_footer.php';
287
+        require_once __DIR__.'/admin_footer.php';
288 288
         break;
289 289
 }
Please login to merge, or discard this patch.
admin/main.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@  discard block
 block discarded – undo
2 2
 
3 3
 use XoopsModules\Extcal;
4 4
 
5
-require_once  dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
6
-require_once dirname(dirname(dirname(__DIR__))) . '/class/xoopsformloader.php';
7
-require_once __DIR__ . '/admin_header.php';
5
+require_once  dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
6
+require_once dirname(dirname(dirname(__DIR__))).'/class/xoopsformloader.php';
7
+require_once __DIR__.'/admin_header.php';
8 8
 
9 9
 function extgalleryLastVersion()
10 10
 {
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         switch ($fct) {
33 33
             case 'send':
34 34
                 if (!$GLOBALS['xoopsSecurity']->check()) {
35
-                    redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
35
+                    redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
36 36
                 }
37 37
                 xoops_cp_header();
38 38
                 adminMenu(1);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                     'EV_TITLE' => $event->getVar('event_title'),
65 65
                     'EV_START' => $extcalTime->getFormatedDate($helper->getConfig('date_long'), $event->getVar('event_start')),
66 66
                     'EV_END'   => $extcalTime->getFormatedDate($helper->getConfig('date_long'), $event->getVar('event_end')),
67
-                    'EV_LINK'  => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'),
67
+                    'EV_LINK'  => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'),
68 68
                 ];
69 69
                 $xoopsMailer->assign($tag);
70 70
                 $xoopsMailer->send(true);
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             default:
80 80
                 xoops_cp_header();
81 81
                 $fromemail      = !empty($xoopsConfig['adminmail']) ? $xoopsConfig['adminmail'] : $xoopsUser->getVar('email', 'E');
82
-                $subjectCaption = _AM_EXTCAL_SUBJECT . "<br><br><span style='font-size:x-small;font-weight:bold;'>" . _AM_EXTCAL_USEFUL_TAGS . "</span><br><span style='font-size:x-small;font-weight:normal;'>" . _AM_EXTCAL_MAILTAGS6 . '<br>' . _AM_EXTCAL_MAILTAGS2 . '</span>&nbsp;&nbsp;&nbsp;';
82
+                $subjectCaption = _AM_EXTCAL_SUBJECT."<br><br><span style='font-size:x-small;font-weight:bold;'>"._AM_EXTCAL_USEFUL_TAGS."</span><br><span style='font-size:x-small;font-weight:normal;'>"._AM_EXTCAL_MAILTAGS6.'<br>'._AM_EXTCAL_MAILTAGS2.'</span>&nbsp;&nbsp;&nbsp;';
83 83
                 $bodyCaption    = _AM_EXTCAL_BODY
84 84
                                   . "<br><br><span style='font-size:x-small;font-weight:bold;'>"
85 85
                                   . _AM_EXTCAL_USEFUL_TAGS
@@ -102,12 +102,12 @@  discard block
 block discarded – undo
102 102
                                   . '<br>'
103 103
                                   . _AM_EXTCAL_MAILTAGS9
104 104
                                   . '</span>&nbsp;&nbsp;&nbsp;';
105
-                $toCheckBbox    = new \XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail');
105
+                $toCheckBbox = new \XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail');
106 106
                 $toCheckBox->addOption('mail', _AM_EXTCAL_EMAIL);
107 107
                 $toCheckBox->addOption('pm', _AM_EXTCAL_PM);
108 108
 
109
-                echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_APPROVED_EVENT . '</legend>';
110
-                echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
109
+                echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_APPROVED_EVENT.'</legend>';
110
+                echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
111 111
                 echo _AM_EXTCAL_INFO_SEND_NOTIF;
112 112
                 echo '</fieldset><br>';
113 113
                 $form = new \XoopsThemeForm(_AM_EXTCAL_SEND_NOTIFICATION, 'mailusers', 'index.php?op=notification&amp;fct=send', 'post', true);
@@ -137,13 +137,13 @@  discard block
 block discarded – undo
137 137
         //        $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
138 138
         $adminObject = \Xmf\Module\Admin::getInstance();
139 139
         $adminObject->addInfoBox(_MI_EXTCAL_DASHBOARD);
140
-        $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_EXTCAL_INDEX_CATEGORIES . '</infolabel>', $catHandler->getCount()), '', 'Green');
141
-        $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_EXTCAL_INDEX_EVENT . '</infolabel>', $eventHandler->getCount(new \Criteria('event_approved', 1))), '', 'Green');
142
-        $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_EXTCAL_INDEX_PENDING . '</infolabel>', $eventHandler->getCount(new \Criteria('event_approved', 0))), '', 'Red');
140
+        $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_CATEGORIES.'</infolabel>', $catHandler->getCount()), '', 'Green');
141
+        $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_EVENT.'</infolabel>', $eventHandler->getCount(new \Criteria('event_approved', 1))), '', 'Green');
142
+        $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_PENDING.'</infolabel>', $eventHandler->getCount(new \Criteria('event_approved', 0))), '', 'Red');
143 143
         $criteriaCompo = new \CriteriaCompo();
144 144
         $criteriaCompo->add(new \Criteria('event_approved', 1));
145 145
         $criteriaCompo->add(new \Criteria('event_start', time(), '>='));
146
-        $adminObject->addInfoBoxLine(sprintf('<infolabel>' . _AM_EXTCAL_INDEX_APPROVED . '</infolabel><infotext>', $eventHandler->getCount($criteriaCompo) . '</infotext>'), '', 'Green');
146
+        $adminObject->addInfoBoxLine(sprintf('<infolabel>'._AM_EXTCAL_INDEX_APPROVED.'</infolabel><infotext>', $eventHandler->getCount($criteriaCompo).'</infotext>'), '', 'Green');
147 147
 
148 148
         $adminObject->addConfigBoxLine();
149 149
         $adminObject->addConfigBoxLine(_AM_EXTCAL_PEAR_PATH);
@@ -160,42 +160,42 @@  discard block
 block discarded – undo
160 160
         $pendingEvent = $eventHandler->objectToArray($eventHandler->getPendingEvent(), ['cat_id']);
161 161
         $eventHandler->formatEventsDate($pendingEvent, 'd/m/Y');
162 162
 
163
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_PENDING_EVENT . '</legend>';
164
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
163
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_PENDING_EVENT.'</legend>';
164
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
165 165
         //        echo '<img src="../assets/images/icons/on.png" >&nbsp;&nbsp;'._AM_EXTCAL_INFO_APPROVE_PENDING_EVENT.'<br>';
166
-        echo '<img src=' . $pathIcon16 . '/edit.png>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_EDIT_PENDING_EVENT . '<br>';
167
-        echo '<img src=' . $pathIcon16 . '/delete.png>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_DELETE_PENDING_EVENT . '<br>';
166
+        echo '<img src='.$pathIcon16.'/edit.png>&nbsp;&nbsp;'._AM_EXTCAL_INFO_EDIT_PENDING_EVENT.'<br>';
167
+        echo '<img src='.$pathIcon16.'/delete.png>&nbsp;&nbsp;'._AM_EXTCAL_INFO_DELETE_PENDING_EVENT.'<br>';
168 168
         echo '</fieldset><br>';
169 169
 
170 170
         echo '<table class="outer" style="width:100%;">';
171 171
         echo '<tr style="text-align:center;">';
172
-        echo '<th>' . _AM_EXTCAL_CATEGORY . '</th>';
173
-        echo '<th>' . _AM_EXTCAL_TITLE . '</th>';
174
-        echo '<th>' . _AM_EXTCAL_START_DATE . '</th>';
175
-        echo '<th>' . _AM_EXTCAL_ACTION . '</th>';
172
+        echo '<th>'._AM_EXTCAL_CATEGORY.'</th>';
173
+        echo '<th>'._AM_EXTCAL_TITLE.'</th>';
174
+        echo '<th>'._AM_EXTCAL_START_DATE.'</th>';
175
+        echo '<th>'._AM_EXTCAL_ACTION.'</th>';
176 176
         echo '</tr>';
177 177
 
178 178
         if (count($pendingEvent) > 0) {
179 179
             $i = 0;
180 180
             foreach ($pendingEvent as $event) {
181 181
                 $class = (0 == ++$i % 2) ? 'even' : 'odd';
182
-                echo '<tr style="text-align:center;" class="' . $class . '">';
183
-                echo '<td>' . $event['Category']['cat_name'] . '</td>';
184
-                echo '<td>' . $event['event_title'] . '</td>';
185
-                echo '<td>' . $event['formated_event_start'] . '</td>';
182
+                echo '<tr style="text-align:center;" class="'.$class.'">';
183
+                echo '<td>'.$event['Category']['cat_name'].'</td>';
184
+                echo '<td>'.$event['event_title'].'</td>';
185
+                echo '<td>'.$event['formated_event_start'].'</td>';
186 186
                 echo '<td style="width:10%; text-align:center;">';
187
-                echo '<a href="event.php?op=modify&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/edit.png></a>&nbsp;&nbsp;';
188
-                echo '<a href="event.php?op=delete&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/delete.png></a>';
187
+                echo '<a href="event.php?op=modify&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/edit.png></a>&nbsp;&nbsp;';
188
+                echo '<a href="event.php?op=delete&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/delete.png></a>';
189 189
                 echo '</td>';
190 190
                 echo '</tr>';
191 191
             }
192 192
         } else {
193
-            echo '<tr><td colspan="4">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>';
193
+            echo '<tr><td colspan="4">'._AM_EXTCAL_NO_PENDING_EVENT.'</td></tr>';
194 194
         }
195 195
 
196 196
         echo '</table></fieldset><br>';
197 197
 
198
-        require_once __DIR__ . '/admin_footer.php';
198
+        require_once __DIR__.'/admin_footer.php';
199 199
 
200 200
         break;
201 201
 }
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@  discard block
 block discarded – undo
19 19
 
20 20
 use XoopsModules\Extcal;
21 21
 
22
-require_once  dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
22
+require_once  dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
23 23
 require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php');
24
-require_once  dirname(__DIR__) . '/include/constantes.php';
24
+require_once  dirname(__DIR__).'/include/constantes.php';
25 25
 
26
-require_once dirname(__DIR__) . '/preloads/autoloader.php';
26
+require_once dirname(__DIR__).'/preloads/autoloader.php';
27 27
 
28 28
 $moduleDirName = basename(dirname(__DIR__));
29 29
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 $utility     = new Extcal\Utility();
35 35
 
36 36
 // require_once  dirname(__DIR__) . '/class/Utility.php';
37
-require_once  dirname(__DIR__) . '/include/common.php';
37
+require_once  dirname(__DIR__).'/include/common.php';
38 38
 
39 39
 $adminObject = \Xmf\Module\Admin::getInstance();
40 40
 
Please login to merge, or discard this patch.
admin/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 use XoopsModules\Extcal;
21 21
 use XoopsModules\Extcal\Common;
22 22
 
23
-require_once __DIR__ . '/admin_header.php';
23
+require_once __DIR__.'/admin_header.php';
24 24
 // Display Admin header
25 25
 xoops_cp_header();
26 26
 /** @var Extcal\Utility $utility */
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
 
40 40
 if ($helper->getConfig('displaySampleButton')) {
41 41
     xoops_loadLanguage('admin/modulesadmin', 'system');
42
-    require_once  dirname(__DIR__) . '/testdata/index.php';
42
+    require_once  dirname(__DIR__).'/testdata/index.php';
43 43
 
44
-    $adminObject->addItemButton(constant('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=load', 'add');
44
+    $adminObject->addItemButton(constant('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=load', 'add');
45 45
 
46
-    $adminObject->addItemButton(constant('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=save', 'add');
46
+    $adminObject->addItemButton(constant('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA'), '__DIR__ . /../../testdata/index.php?op=save', 'add');
47 47
 
48 48
     //    $adminObject->addItemButton(constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA'), '__DIR__ . /../../testdata/index.php?op=exportschema', 'add');
49 49
 
@@ -57,4 +57,4 @@  discard block
 block discarded – undo
57 57
 echo $utility::getServerStats();
58 58
 
59 59
 //codeDump(__FILE__);
60
-require_once __DIR__ . '/admin_footer.php';
60
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/menu.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
22 22
 // require_once  dirname(__DIR__) . '/class/Helper.php';
23 23
 //require_once  dirname(__DIR__) . '/include/common.php';
24 24
 
25
-require_once dirname(__DIR__) . '/preloads/autoloader.php';
25
+require_once dirname(__DIR__).'/preloads/autoloader.php';
26 26
 
27 27
 $helper = Extcal\Helper::getInstance();
28 28
 
29
-$pathIcon32    = \Xmf\Module\Admin::menuIconPath('');
29
+$pathIcon32 = \Xmf\Module\Admin::menuIconPath('');
30 30
 if (is_object($helper->getModule())) {
31 31
     $pathModIcon32 = $helper->getModule()->getInfo('modicons32');
32 32
 }
@@ -34,33 +34,33 @@  discard block
 block discarded – undo
34 34
 $adminmenu[] = [
35 35
     'title' => _MI_EXTCAL_INDEX,
36 36
     'link'  => 'admin/index.php',
37
-    'icon'  => $pathIcon32 . '/home.png'
37
+    'icon'  => $pathIcon32.'/home.png'
38 38
 ];
39 39
 
40 40
 $adminmenu[] = [
41 41
     'title' => _MI_EXTCAL_CATEGORY,
42 42
     'link'  => 'admin/cat.php',
43
-    'icon'  => $pathIcon32 . '/category.png'
43
+    'icon'  => $pathIcon32.'/category.png'
44 44
 ];
45 45
 
46 46
 $adminmenu[] = [
47 47
     'title' => _MI_EXTCAL_EVENT,
48 48
     'link'  => 'admin/event.php',
49
-    'icon'  => $pathIcon32 . '/event.png'
49
+    'icon'  => $pathIcon32.'/event.png'
50 50
 ];
51 51
 $adminmenu[] = [
52 52
     'title' => _MI_EXTCAL_LOCATIONS,
53 53
     'link'  => 'admin/location.php',
54
-    'icon'  => $pathModIcon32 . '/location.png'
54
+    'icon'  => $pathModIcon32.'/location.png'
55 55
 ];
56 56
 $adminmenu[] = [
57 57
     'title' => _MI_EXTCAL_PERMISSIONS,
58 58
     'link'  => 'admin/permissions.php',
59
-    'icon'  => $pathIcon32 . '/permissions.png'
59
+    'icon'  => $pathIcon32.'/permissions.png'
60 60
 ];
61 61
 
62 62
 $adminmenu[] = [
63 63
     'title' => _MI_EXTCAL_ABOUT,
64 64
     'link'  => 'admin/about.php',
65
-    'icon'  => $pathIcon32 . '/about.png'
65
+    'icon'  => $pathIcon32.'/about.png'
66 66
 ];
Please login to merge, or discard this patch.