Completed
Push — master ( c5b9c9...4f0041 )
by Goffy
14s queued 12s
created
class/smarty/xoops_plugins/block.xoBlkTpl.php 1 patch
Doc Comments   -17 removed lines patch added patch discarded remove patch
@@ -9,23 +9,6 @@
 block discarded – undo
9 9
  * how to use
10 10
  * The following code inserted in the template
11 11
  *  
12
- * @param string $module module dirname
13
- * @param string $file  block function file
14
- * @param string $show_func show block function
15
- * @param string $options show block function's option
16
- * @param int $cachetime cachetime Unit for seconds
17
- * @param mixed $user Generate cache solution
18
-
19
-<{xoBlkTpl module="ilog" file="ilog_block_tag.php" show_func="ilog_tag_block_cloud_show" options="100|0|100|80" cachetime=5 userid=$xoops_userid}>
20
-    <link rel="stylesheet" href="<{$xoops_url}>/modules/tag/templates/style.css" />
21
-    <div class="tag-cloud" style="line-height: 150%; padding: 5px;">
22
-    <{foreach item=tag from=$block.tags}>
23
-    	<span class="tag-level-<{$tag.level}>" style="font-size: <{$tag.font}>%; display: inline; padding-right: 5px;">
24
-    		<a href="<{$xoops_url}>/modules/<{$block.tag_dirname}>/view.tag.php<{$smarty.const.URL_DELIMITER}><{$tag.id}>/" title="<{$tag.term}>"><{$tag.term}></a>
25
-    	</span>
26
-    <{/foreach}>
27
-    </div>
28
-<{/xoBlkTpl}>
29 12
 */
30 13
 function smarty_block_xoBlkTpl ($params, $content, $smarty, &$repeat) {
31 14
     static $old_block;
Please login to merge, or discard this patch.
class/smarty/xoops_plugins/function.xoBlk.php 2 patches
Doc Comments   -16 removed lines patch added patch discarded remove patch
@@ -9,22 +9,6 @@
 block discarded – undo
9 9
  * how to use
10 10
  * The following code inserted in the template
11 11
  *  
12
- * @param string $module module dirname
13
- * @param string $file  block function file
14
- * @param string $show_func show block function
15
- * @param string $options show block function's option
16
- * @param int $cachetime cachetime Unit for seconds
17
- * @param mixed $user Generate cache solution
18
-
19
-<{xoBlk 
20
-    module="ilog" 
21
-    file="ilog_block_tag.php" 
22
-    show_func="ilog_tag_block_cloud_show" 
23
-    options="100|0|150|80" 
24
-    template="ilog_tag_block_cloud.html" 
25
-    cachetime=10 
26
-    user=admin
27
-}>
28 12
 */
29 13
 function smarty_function_xoBlk( $params, $smarty )
30 14
 {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,19 +26,19 @@
 block discarded – undo
26 26
     user=admin
27 27
 }>
28 28
 */
29
-function smarty_function_xoBlk( $params, $smarty )
29
+function smarty_function_xoBlk($params, $smarty)
30 30
 {
31 31
     /** @var Smarty $smarty */
32 32
     $old_caching = $smarty->caching;
33 33
     $old_cache_lifetime = $smarty->cache_lifetime;
34 34
     if (isset($params['cachetime'])) {
35 35
         $smarty->caching = 2;
36
-        $smarty->cache_lifetime = (int)$params['cachetime'];
36
+        $smarty->cache_lifetime = (int) $params['cachetime'];
37 37
     } else {
38 38
         $smarty->caching = 0;
39 39
     }
40
-    $tplName = 'db:' . $params['template'];
41
-    $params['cacheid'] = $params['cacheid'] ?? ('xoBlk_' . md5(var_export($params, true)));
40
+    $tplName = 'db:'.$params['template'];
41
+    $params['cacheid'] = $params['cacheid'] ?? ('xoBlk_'.md5(var_export($params, true)));
42 42
     if (!isset($params['cachetime']) || !$smarty->is_cached($tplName, $params['cacheid'])) {
43 43
         $myBlock = [
44 44
             'dirname' => $params['module'],
Please login to merge, or discard this patch.
modules/tools/class/Common/SysUtility.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,6 @@
 block discarded – undo
30 30
 use MyTextSanitizer;
31 31
 use XoopsFormDhtmlTextArea;
32 32
 use XoopsFormEditor;
33
-use XoopsFormTextArea;
34 33
 use XoopsModules\Tools\{
35 34
     Helper
36 35
 };
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
     /**
52 52
      * Access the only instance of this class
53
- *
53
+     *
54 54
      * @return SysUtility
55 55
 *
56 56
      */
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         //$pathModIcon16 = XOOPS_URL . '/modules/' . $moduleDirName . '/' . $helper->getConfig('modicons16');
81 81
         $pathModIcon16 = $helper->url($helper->getModule()->getInfo('modicons16'));
82 82
 
83
-        $select_view = '<form name="form_switch" id="form_switch" action="' . Request::getString('REQUEST_URI', '', 'SERVER') . '" method="post"><span style="font-weight: bold;">' . $text . '</span>';
83
+        $select_view = '<form name="form_switch" id="form_switch" action="'.Request::getString('REQUEST_URI', '', 'SERVER').'" method="post"><span style="font-weight: bold;">'.$text.'</span>';
84 84
         //$sorts =  $sort ==  'asc' ? 'desc' : 'asc';
85 85
         if ($form_sort == $sort) {
86 86
             $sel1 = 'asc' === $order ? 'selasc.png' : 'asc.png';
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
             $sel1 = 'asc.png';
90 90
             $sel2 = 'desc.png';
91 91
         }
92
-        $select_view .= '  <a href="' . Request::getString('SCRIPT_NAME', '', 'SERVER') . '?start=' . $start . '&sort=' . $form_sort . '&order=asc"><img src="' . $pathModIcon16 . '/' . $sel1 . '" title="ASC" alt="ASC"></a>';
93
-        $select_view .= '<a href="' . Request::getString('SCRIPT_NAME', '', 'SERVER') . '?start=' . $start . '&sort=' . $form_sort . '&order=desc"><img src="' . $pathModIcon16 . '/' . $sel2 . '" title="DESC" alt="DESC"></a>';
92
+        $select_view .= '  <a href="'.Request::getString('SCRIPT_NAME', '', 'SERVER').'?start='.$start.'&sort='.$form_sort.'&order=asc"><img src="'.$pathModIcon16.'/'.$sel1.'" title="ASC" alt="ASC"></a>';
93
+        $select_view .= '<a href="'.Request::getString('SCRIPT_NAME', '', 'SERVER').'?start='.$start.'&sort='.$form_sort.'&order=desc"><img src="'.$pathModIcon16.'/'.$sel2.'" title="DESC" alt="DESC"></a>';
94 94
         $select_view .= '</form>';
95 95
 
96 96
         return $select_view;
@@ -105,10 +105,10 @@  discard block
 block discarded – undo
105 105
     {
106 106
         $cat_sql = '';
107 107
         if (\is_array($cats) && !empty($cats)) {
108
-            $cat_sql = '(' . \current($cats);
108
+            $cat_sql = '('.\current($cats);
109 109
             \array_shift($cats);
110 110
             foreach ($cats as $cat) {
111
-                $cat_sql .= ',' . $cat;
111
+                $cat_sql .= ','.$cat;
112 112
             }
113 113
             $cat_sql .= ')';
114 114
         }
@@ -160,11 +160,11 @@  discard block
 block discarded – undo
160 160
         //        WHERE TABLE_NAME = '" . $table . "' AND COLUMN_NAME = '" . $columnName . "'")
161 161
         //    || exit ($GLOBALS['xoopsDB']->error());
162 162
 
163
-        $sql    = 'SELECT COLUMN_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = "' . $table . '" AND COLUMN_NAME = "' . $columnName . '"';
163
+        $sql    = 'SELECT COLUMN_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = "'.$table.'" AND COLUMN_NAME = "'.$columnName.'"';
164 164
         $result = $GLOBALS['xoopsDB']->query($sql);
165 165
         if (!$result) {
166 166
 //            exit($GLOBALS['xoopsDB']->error());
167
-            $logger     = \XoopsLogger::getInstance();
167
+            $logger = \XoopsLogger::getInstance();
168 168
             $logger->handleError(\E_USER_WARNING, $sql, __FILE__, __LINE__);
169 169
             return false;
170 170
         }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     public static function cloneRecord($tableName, int $id_field, int $id)
186 186
     {
187 187
         $new_id = false;
188
-        $logger     = \XoopsLogger::getInstance();
188
+        $logger = \XoopsLogger::getInstance();
189 189
         $table  = $GLOBALS['xoopsDB']->prefix($tableName);
190 190
         // copy content of the record you wish to clone
191 191
         $sql       = "SELECT * FROM $table WHERE $id_field='$id' ";
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         // set the auto-incremented id's value to blank.
199 199
         unset($tempTable[$id_field]);
200 200
         // insert cloned copy of the original  record
201
-        $sql    = "INSERT INTO $table (" . \implode(', ', \array_keys($tempTable)) . ") VALUES ('" . \implode("', '", \array_values($tempTable)) . "')";
201
+        $sql    = "INSERT INTO $table (".\implode(', ', \array_keys($tempTable)).") VALUES ('".\implode("', '", \array_values($tempTable))."')";
202 202
         $result = $GLOBALS['xoopsDB']->queryF($sql);
203 203
         if (!$result) {
204 204
 //            exit($GLOBALS['xoopsDB']->error());
@@ -229,11 +229,11 @@  discard block
 block discarded – undo
229 229
         $openTags = [];
230 230
         if ($considerHtml) {
231 231
             // if the plain text is shorter than the maximum length, return the whole text
232
-            if (\mb_strlen(\preg_replace('/<.*?' . '>/', '', $text)) <= $length) {
232
+            if (\mb_strlen(\preg_replace('/<.*?'.'>/', '', $text)) <= $length) {
233 233
                 return $text;
234 234
             }
235 235
             // splits all html-tags to scanable lines
236
-            \preg_match_all('/(<.+?' . '>)?([^<>]*)/s', $text, $lines, \PREG_SET_ORDER);
236
+            \preg_match_all('/(<.+?'.'>)?([^<>]*)/s', $text, $lines, \PREG_SET_ORDER);
237 237
             $total_length = \mb_strlen($ending);
238 238
             //$openTags    = [];
239 239
             $truncate     = '';
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
                             unset($openTags[$pos]);
252 252
                         }
253 253
                         // if tag is an opening tag
254
-                    } elseif (\preg_match('/^<\s*([^\s>!]+).*?' . '>$/s', $line_matchings[1], $tag_matchings)) {
254
+                    } elseif (\preg_match('/^<\s*([^\s>!]+).*?'.'>$/s', $line_matchings[1], $tag_matchings)) {
255 255
                         // add tag to the beginning of $openTags list
256 256
                         \array_unshift($openTags, \mb_strtolower($tag_matchings[1]));
257 257
                     }
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
         if ($considerHtml) {
310 310
             // close all unclosed html-tags
311 311
             foreach ($openTags as $tag) {
312
-                $truncate .= '</' . $tag . '>';
312
+                $truncate .= '</'.$tag.'>';
313 313
             }
314 314
         }
315 315
 
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
             if (!@\mkdir($folder) && !\is_dir($folder)) {
381 381
                 throw new \RuntimeException(\sprintf('Unable to create the %s directory', $folder));
382 382
             }
383
-            file_put_contents($folder . '/index.html', '<script>history.go(-1);</script>');
383
+            file_put_contents($folder.'/index.html', '<script>history.go(-1);</script>');
384 384
         } catch (\Exception $e) {
385 385
             echo 'Caught exception: ', $e->getMessage(), "\n", '<br>';
386 386
         }
@@ -394,9 +394,9 @@  discard block
 block discarded – undo
394 394
     public static function tableExists(string $tablename): bool
395 395
     {
396 396
         $trace = \debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS, 1);
397
-        \trigger_error(__FUNCTION__ . " is deprecated, called from {$trace[0]['file']} line {$trace[0]['line']}");
397
+        \trigger_error(__FUNCTION__." is deprecated, called from {$trace[0]['file']} line {$trace[0]['line']}");
398 398
         $GLOBALS['xoopsLogger']->addDeprecated(
399
-            \basename(\dirname(__DIR__, 2)) . ' Module: ' . __FUNCTION__ . ' function is deprecated, please use Xmf\Database\Tables method(s) instead.' . " Called from {$trace[0]['file']}line {$trace[0]['line']}"
399
+            \basename(\dirname(__DIR__, 2)).' Module: '.__FUNCTION__.' function is deprecated, please use Xmf\Database\Tables method(s) instead.'." Called from {$trace[0]['file']}line {$trace[0]['line']}"
400 400
         );
401 401
         $result = $GLOBALS['xoopsDB']->queryF("SHOW TABLES LIKE '$tablename'");
402 402
 
@@ -413,6 +413,6 @@  discard block
 block discarded – undo
413 413
     public static function addField($field, $table)
414 414
     {
415 415
         global $xoopsDB;
416
-        return $xoopsDB->queryF('ALTER TABLE ' . $table . " ADD $field;");
416
+        return $xoopsDB->queryF('ALTER TABLE '.$table." ADD $field;");
417 417
     }
418 418
 }
Please login to merge, or discard this patch.
modules/tools/admin/main.php 2 patches
Switch Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -29,30 +29,30 @@  discard block
 block discarded – undo
29 29
 
30 30
 $op = $_REQUEST['op'] ?? 'main';
31 31
 switch ($op) {
32
-    default:
33
-    case 'main':
34
-        require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
35
-        $form = new \XoopsThemeForm(_AM_TOOLS_INDEX, 'updatecache', 'main.php', 'post', true);
36
-        $form->addElement(new \XoopsFormLabel(_AM_TOOLS_TIP, _AM_TOOLS_TIPS));
37
-        $checkbox_options = [
38
-            'updatexoopscache'    => _AM_TOOLS_UPDATEXOOPSCACHE,
39
-            'updatesmartycache'   => _AM_TOOLS_UPDATESMARTYCACHE,
40
-            'updatesmartycompile' => _AM_TOOLS_UPDATESMARTYCOMPILE,
41
-        ];
42
-        $checkbox         = new \XoopsFormCheckBox(_AM_TOOLS_OPTIONS, 'options', array_keys($checkbox_options));
43
-        $checkbox->addOptionArray($checkbox_options);
44
-        $form->addElement($checkbox);
45
-        $form->addElement(new \XoopsFormHidden('op', 'updatecache'));
46
-        $form->addElement(new \XoopsFormHidden('step', '1'));
47
-        $form->addElement(new \XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
48
-        $form->display();
49
-        break;
50
-    case 'updatecache':
51
-        if (1 == $_REQUEST['step']) {
52
-            $options  = implode('_', $_REQUEST['options']);
53
-            $url      = XOOPS_URL . "/modules/tools/admin/main.php?op=updatecache&step=2&options={$options}";
54
-            $updating = _AM_TOOLS_UPDATING;
55
-            $msg      = <<<EOF
32
+default:
33
+case 'main':
34
+    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
35
+    $form = new \XoopsThemeForm(_AM_TOOLS_INDEX, 'updatecache', 'main.php', 'post', true);
36
+    $form->addElement(new \XoopsFormLabel(_AM_TOOLS_TIP, _AM_TOOLS_TIPS));
37
+    $checkbox_options = [
38
+        'updatexoopscache'    => _AM_TOOLS_UPDATEXOOPSCACHE,
39
+        'updatesmartycache'   => _AM_TOOLS_UPDATESMARTYCACHE,
40
+        'updatesmartycompile' => _AM_TOOLS_UPDATESMARTYCOMPILE,
41
+    ];
42
+    $checkbox         = new \XoopsFormCheckBox(_AM_TOOLS_OPTIONS, 'options', array_keys($checkbox_options));
43
+    $checkbox->addOptionArray($checkbox_options);
44
+    $form->addElement($checkbox);
45
+    $form->addElement(new \XoopsFormHidden('op', 'updatecache'));
46
+    $form->addElement(new \XoopsFormHidden('step', '1'));
47
+    $form->addElement(new \XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
48
+    $form->display();
49
+    break;
50
+case 'updatecache':
51
+    if (1 == $_REQUEST['step']) {
52
+        $options  = implode('_', $_REQUEST['options']);
53
+        $url      = XOOPS_URL . "/modules/tools/admin/main.php?op=updatecache&step=2&options={$options}";
54
+        $updating = _AM_TOOLS_UPDATING;
55
+        $msg      = <<<EOF
56 56
     <div class="loading" style="text-align:center">
57 57
     <img src="../assets/images/loader.gif">
58 58
     <p>{$updating}</P>
@@ -66,31 +66,31 @@  discard block
 block discarded – undo
66 66
     <script type="text/JavaScript">setTimeout("redirect('{$url}');", 2000);</script>
67 67
 EOF;
68 68
 
69
-            echo $msg;
70
-        } elseif (2 == $_REQUEST['step']) {
71
-            $options = explode('_', $_REQUEST['options']);
72
-            foreach ($options as $k) {
73
-                if ('updatexoopscache' === $k) {
74
-                    $d = XOOPS_VAR_PATH . '/caches/xoops_cache';
75
-                    updatecache($d, 'php');
76
-                    updatecache($d, 'html');
77
-                    updatecache($d, 'tmp');
78
-                }
79
-                if ('updatesmartycache' === $k) {
80
-                    $d = XOOPS_VAR_PATH . '/caches/smarty_cache';
81
-                    updatecache($d, 'html');
82
-                    updatecache($d, 'tmp');
83
-                }
84
-                if ('updatesmartycompile' === $k) {
85
-                    $d = XOOPS_VAR_PATH . '/caches/smarty_compile';
86
-                    updatecache($d, 'php');
87
-                }
69
+        echo $msg;
70
+    } elseif (2 == $_REQUEST['step']) {
71
+        $options = explode('_', $_REQUEST['options']);
72
+        foreach ($options as $k) {
73
+            if ('updatexoopscache' === $k) {
74
+                $d = XOOPS_VAR_PATH . '/caches/xoops_cache';
75
+                updatecache($d, 'php');
76
+                updatecache($d, 'html');
77
+                updatecache($d, 'tmp');
78
+            }
79
+            if ('updatesmartycache' === $k) {
80
+                $d = XOOPS_VAR_PATH . '/caches/smarty_cache';
81
+                updatecache($d, 'html');
82
+                updatecache($d, 'tmp');
83
+            }
84
+            if ('updatesmartycompile' === $k) {
85
+                $d = XOOPS_VAR_PATH . '/caches/smarty_compile';
86
+                updatecache($d, 'php');
88 87
             }
89
-
90
-            redirect_header('main.php', 3, _AM_TOOLS_UPDATECACHESUCCESS);
91 88
         }
92 89
 
93
-        break;
90
+        redirect_header('main.php', 3, _AM_TOOLS_UPDATECACHESUCCESS);
91
+    }
92
+
93
+    break;
94 94
 }
95 95
 
96 96
 /**
Please login to merge, or discard this 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 Xmf\Module\Admin;
21 21
 
22
-require_once __DIR__ . '/admin_header.php';
22
+require_once __DIR__.'/admin_header.php';
23 23
 xoops_cp_header();
24 24
 
25 25
 //loadModuleAdminMenu(1, '');
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 switch ($op) {
32 32
     default:
33 33
     case 'main':
34
-        require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
34
+        require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
35 35
         $form = new \XoopsThemeForm(_AM_TOOLS_INDEX, 'updatecache', 'main.php', 'post', true);
36 36
         $form->addElement(new \XoopsFormLabel(_AM_TOOLS_TIP, _AM_TOOLS_TIPS));
37 37
         $checkbox_options = [
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             'updatesmartycache'   => _AM_TOOLS_UPDATESMARTYCACHE,
40 40
             'updatesmartycompile' => _AM_TOOLS_UPDATESMARTYCOMPILE,
41 41
         ];
42
-        $checkbox         = new \XoopsFormCheckBox(_AM_TOOLS_OPTIONS, 'options', array_keys($checkbox_options));
42
+        $checkbox = new \XoopsFormCheckBox(_AM_TOOLS_OPTIONS, 'options', array_keys($checkbox_options));
43 43
         $checkbox->addOptionArray($checkbox_options);
44 44
         $form->addElement($checkbox);
45 45
         $form->addElement(new \XoopsFormHidden('op', 'updatecache'));
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     case 'updatecache':
51 51
         if (1 == $_REQUEST['step']) {
52 52
             $options  = implode('_', $_REQUEST['options']);
53
-            $url      = XOOPS_URL . "/modules/tools/admin/main.php?op=updatecache&step=2&options={$options}";
53
+            $url      = XOOPS_URL."/modules/tools/admin/main.php?op=updatecache&step=2&options={$options}";
54 54
             $updating = _AM_TOOLS_UPDATING;
55 55
             $msg      = <<<EOF
56 56
     <div class="loading" style="text-align:center">
@@ -71,18 +71,18 @@  discard block
 block discarded – undo
71 71
             $options = explode('_', $_REQUEST['options']);
72 72
             foreach ($options as $k) {
73 73
                 if ('updatexoopscache' === $k) {
74
-                    $d = XOOPS_VAR_PATH . '/caches/xoops_cache';
74
+                    $d = XOOPS_VAR_PATH.'/caches/xoops_cache';
75 75
                     updatecache($d, 'php');
76 76
                     updatecache($d, 'html');
77 77
                     updatecache($d, 'tmp');
78 78
                 }
79 79
                 if ('updatesmartycache' === $k) {
80
-                    $d = XOOPS_VAR_PATH . '/caches/smarty_cache';
80
+                    $d = XOOPS_VAR_PATH.'/caches/smarty_cache';
81 81
                     updatecache($d, 'html');
82 82
                     updatecache($d, 'tmp');
83 83
                 }
84 84
                 if ('updatesmartycompile' === $k) {
85
-                    $d = XOOPS_VAR_PATH . '/caches/smarty_compile';
85
+                    $d = XOOPS_VAR_PATH.'/caches/smarty_compile';
86 86
                     updatecache($d, 'php');
87 87
                 }
88 88
             }
@@ -102,10 +102,10 @@  discard block
 block discarded – undo
102 102
     $d = dir($cacheDir);
103 103
     while (false !== ($entry = $d->read())) {
104 104
         if (preg_match("/.*\.{$type}$/", $entry)) {
105
-            unlink($cacheDir . '/' . $entry);
105
+            unlink($cacheDir.'/'.$entry);
106 106
         }
107 107
     }
108 108
     $d->close();
109 109
 }
110 110
 
111
-require_once __DIR__ . '/admin_footer.php';
111
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
modules/tools/testdata/index.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
 /** @var Utility $utility */
26 26
 /** @var Configurator $configurator */
27 27
 
28
-require dirname(__DIR__, 3) . '/include/cp_header.php';
29
-require dirname(__DIR__) . '/preloads/autoloader.php';
28
+require dirname(__DIR__, 3).'/include/cp_header.php';
29
+require dirname(__DIR__).'/preloads/autoloader.php';
30 30
 
31 31
 $op = Request::getCmd('op', '');
32 32
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             loadSampleData();
47 47
         } else {
48 48
             xoops_cp_header();
49
-            xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', sprintf(constant('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA_CONFIRM')), constant('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM'), true);
49
+            xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', sprintf(constant('CO_'.$moduleDirNameUpper.'_'.'LOAD_SAMPLEDATA_CONFIRM')), constant('CO_'.$moduleDirNameUpper.'_'.'CONFIRM'), true);
50 50
             xoops_cp_footer();
51 51
         }
52 52
         break;
@@ -75,20 +75,20 @@  discard block
 block discarded – undo
75 75
     $tables = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getInfo('tables');
76 76
 
77 77
     $language = 'english/';
78
-    if (is_dir(__DIR__ . '/' . $xoopsConfig['language'])) {
79
-        $language = $xoopsConfig['language'] . '/';
78
+    if (is_dir(__DIR__.'/'.$xoopsConfig['language'])) {
79
+        $language = $xoopsConfig['language'].'/';
80 80
     }
81 81
 
82 82
     // load module tables
83 83
     foreach ($tables as $table) {
84
-        $tabledata = Yaml::readWrapped($language . $table . '.yml');
84
+        $tabledata = Yaml::readWrapped($language.$table.'.yml');
85 85
         TableLoad::truncateTable($table);
86 86
         TableLoad::loadTableFromArray($table, $tabledata);
87 87
     }
88 88
 
89 89
     // load permissions
90 90
     $table     = 'group_permission';
91
-    $tabledata = Yaml::readWrapped($language . $table . '.yml');
91
+    $tabledata = Yaml::readWrapped($language.$table.'.yml');
92 92
     $mid       = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getVar('mid');
93 93
     loadTableFromArrayWithReplace($table, $tabledata, 'gperm_modid', $mid);
94 94
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $utility::rcopy($src, $dest);
102 102
         }
103 103
     }
104
-    \redirect_header('../admin/index.php', 1, \constant('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA_SUCCESS'));
104
+    \redirect_header('../admin/index.php', 1, \constant('CO_'.$moduleDirNameUpper.'_'.'LOAD_SAMPLEDATA_SUCCESS'));
105 105
 }
106 106
 
107 107
 /**
@@ -115,26 +115,26 @@  discard block
 block discarded – undo
115 115
     $helper             = Helper::getInstance();
116 116
     $tables             = $helper->getModule()->getInfo('tables');
117 117
 
118
-    $languageFolder = __DIR__ . '/' . $xoopsConfig['language'];
119
-    if (!file_exists($languageFolder . '/')) {
120
-        Utility::createFolder($languageFolder . '/');
118
+    $languageFolder = __DIR__.'/'.$xoopsConfig['language'];
119
+    if (!file_exists($languageFolder.'/')) {
120
+        Utility::createFolder($languageFolder.'/');
121 121
     }
122
-    $exportFolder = $languageFolder . '/Exports-' . date('Y-m-d-H-i-s') . '/';
122
+    $exportFolder = $languageFolder.'/Exports-'.date('Y-m-d-H-i-s').'/';
123 123
     Utility::createFolder($exportFolder);
124 124
 
125 125
     // save module tables
126 126
     foreach ($tables as $table) {
127
-        TableLoad::saveTableToYamlFile($table, $exportFolder . $table . '.yml');
127
+        TableLoad::saveTableToYamlFile($table, $exportFolder.$table.'.yml');
128 128
     }
129 129
 
130 130
     // save permissions
131 131
     $criteria = new \CriteriaCompo();
132 132
     $criteria->add(new \Criteria('gperm_modid', $helper->getModule()->getVar('mid')));
133 133
     $skipColumns[] = 'gperm_id';
134
-    TableLoad::saveTableToYamlFile('group_permission', $exportFolder . 'group_permission.yml', $criteria, $skipColumns);
134
+    TableLoad::saveTableToYamlFile('group_permission', $exportFolder.'group_permission.yml', $criteria, $skipColumns);
135 135
     unset($criteria);
136 136
 
137
-    \redirect_header('../admin/index.php', 1, \constant('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA_SUCCESS'));
137
+    \redirect_header('../admin/index.php', 1, \constant('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA_SUCCESS'));
138 138
 }
139 139
 
140 140
 /**
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         //
153 153
         //        redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS'));
154 154
     } catch (\Throwable $e) {
155
-        exit(constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR'));
155
+        exit(constant('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR'));
156 156
     }
157 157
 }
158 158
 
@@ -176,12 +176,12 @@  discard block
 block discarded – undo
176 176
     $prefixedTable = $db->prefix($table);
177 177
     $count         = 0;
178 178
 
179
-    $sql = 'DELETE FROM ' . $prefixedTable . ' WHERE `' . $search . '`=' . $db->quote($replace);
179
+    $sql = 'DELETE FROM '.$prefixedTable.' WHERE `'.$search.'`='.$db->quote($replace);
180 180
 
181 181
     $result = $db->queryF($sql);
182 182
 
183 183
     foreach ($data as $row) {
184
-        $insertInto  = 'INSERT INTO ' . $prefixedTable . ' (';
184
+        $insertInto  = 'INSERT INTO '.$prefixedTable.' (';
185 185
         $valueClause = ' VALUES (';
186 186
         $first       = true;
187 187
         foreach ($row as $column => $value) {
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             }
201 201
         }
202 202
 
203
-        $sql = $insertInto . ') ' . $valueClause . ')';
203
+        $sql = $insertInto.') '.$valueClause.')';
204 204
 
205 205
         $result = $db->queryF($sql);
206 206
         if (false !== $result) {
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 /**
215 215
  *
216 216
  */
217
-function clearSampleData(){
217
+function clearSampleData() {
218 218
     $moduleDirName      = \basename(\dirname(__DIR__));
219 219
     $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
220 220
     $helper             = Helper::getInstance();
@@ -225,5 +225,5 @@  discard block
 block discarded – undo
225 225
     foreach ($tables as $table) {
226 226
         \Xmf\Database\TableLoad::truncateTable($table);
227 227
     }
228
-    redirect_header($helper->url('admin/index.php'), 1, constant('CO_' . $moduleDirNameUpper . '_' . 'CLEAR_SAMPLEDATA_OK'));
228
+    redirect_header($helper->url('admin/index.php'), 1, constant('CO_'.$moduleDirNameUpper.'_'.'CLEAR_SAMPLEDATA_OK'));
229 229
 }
Please login to merge, or discard this patch.
modules/tools/include/config.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -20,26 +20,26 @@  discard block
 block discarded – undo
20 20
 $moduleDirName      = \basename(\dirname(__DIR__));
21 21
 $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
22 22
 
23
-return (object)[
24
-    'name'           => $moduleDirNameUpper . ' Module Configurator',
23
+return (object) [
24
+    'name'           => $moduleDirNameUpper.' Module Configurator',
25 25
     'paths'          => [
26 26
         'dirname'    => $moduleDirName,
27
-        'admin'      => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
28
-        'modPath'    => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
29
-        'modUrl'     => XOOPS_URL . '/modules/' . $moduleDirName,
30
-        'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
31
-        'uploadUrl'  => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
27
+        'admin'      => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin',
28
+        'modPath'    => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName,
29
+        'modUrl'     => XOOPS_URL.'/modules/'.$moduleDirName,
30
+        'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
31
+        'uploadUrl'  => XOOPS_UPLOAD_URL.'/'.$moduleDirName,
32 32
     ],
33 33
     'uploadFolders'  => [
34
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
35
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category',
36
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
34
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
35
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category',
36
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots',
37 37
         //XOOPS_UPLOAD_PATH . '/flags'
38 38
     ],
39 39
     'copyBlankFiles' => [
40
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
41
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category',
42
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
40
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
41
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category',
42
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots',
43 43
         //XOOPS_UPLOAD_PATH . '/flags'
44 44
     ],
45 45
 
@@ -79,5 +79,5 @@  discard block
 block discarded – undo
79 79
         //            'totalsubmitted'  => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]),
80 80
     ],
81 81
     'modCopyright'    => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'>
82
-                     <img src='" . Admin::iconUrl('xoopsmicrobutton.gif') . "' alt='XOOPS Project'></a>",
82
+                     <img src='" . Admin::iconUrl('xoopsmicrobutton.gif')."' alt='XOOPS Project'></a>",
83 83
 ];
Please login to merge, or discard this patch.
modules/tools/include/common.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 use Xmf\Module\Admin;
19 19
 use XoopsModules\Tools;
20 20
 
21
-require_once dirname(__DIR__) . '/preloads/autoloader.php';
21
+require_once dirname(__DIR__).'/preloads/autoloader.php';
22 22
 
23 23
 $moduleDirName      = \basename(\dirname(__DIR__));
24 24
 $moduleDirNameUpper = \mb_strtoupper($moduleDirName); //$capsDirName
@@ -37,20 +37,20 @@  discard block
 block discarded – undo
37 37
 //$categoryHandler     = new Tools\CategoryHandler($db);
38 38
 //$downloadHandler     = new Tools\DownloadHandler($db);
39 39
 
40
-if (!defined($moduleDirNameUpper . '_CONSTANTS_DEFINED')) {
41
-    define($moduleDirNameUpper . '_DIRNAME', basename(dirname(__DIR__)));
42
-    define($moduleDirNameUpper . '_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/');
43
-    define($moduleDirNameUpper . '_PATH', XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/');
44
-    define($moduleDirNameUpper . '_URL', XOOPS_URL . '/modules/' . $moduleDirName . '/');
45
-    define($moduleDirNameUpper . '_IMAGE_URL', constant($moduleDirNameUpper . '_URL') . '/assets/images/');
46
-    define($moduleDirNameUpper . '_IMAGE_PATH', constant($moduleDirNameUpper . '_ROOT_PATH') . '/assets/images');
47
-    define($moduleDirNameUpper . '_ADMIN_URL', constant($moduleDirNameUpper . '_URL') . '/admin/');
48
-    define($moduleDirNameUpper . '_ADMIN_PATH', constant($moduleDirNameUpper . '_ROOT_PATH') . '/admin/');
49
-    define($moduleDirNameUpper . '_ADMIN', constant($moduleDirNameUpper . '_URL') . '/admin/index.php');
50
-    define($moduleDirNameUpper . '_AUTHOR_LOGOIMG', constant($moduleDirNameUpper . '_URL') . '/assets/images/logoModule.png');
51
-    define($moduleDirNameUpper . '_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . $moduleDirName); // WITHOUT Trailing slash
52
-    define($moduleDirNameUpper . '_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . $moduleDirName); // WITHOUT Trailing slash
53
-    define($moduleDirNameUpper . '_CONSTANTS_DEFINED', 1);
40
+if (!defined($moduleDirNameUpper.'_CONSTANTS_DEFINED')) {
41
+    define($moduleDirNameUpper.'_DIRNAME', basename(dirname(__DIR__)));
42
+    define($moduleDirNameUpper.'_ROOT_PATH', XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/');
43
+    define($moduleDirNameUpper.'_PATH', XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/');
44
+    define($moduleDirNameUpper.'_URL', XOOPS_URL.'/modules/'.$moduleDirName.'/');
45
+    define($moduleDirNameUpper.'_IMAGE_URL', constant($moduleDirNameUpper.'_URL').'/assets/images/');
46
+    define($moduleDirNameUpper.'_IMAGE_PATH', constant($moduleDirNameUpper.'_ROOT_PATH').'/assets/images');
47
+    define($moduleDirNameUpper.'_ADMIN_URL', constant($moduleDirNameUpper.'_URL').'/admin/');
48
+    define($moduleDirNameUpper.'_ADMIN_PATH', constant($moduleDirNameUpper.'_ROOT_PATH').'/admin/');
49
+    define($moduleDirNameUpper.'_ADMIN', constant($moduleDirNameUpper.'_URL').'/admin/index.php');
50
+    define($moduleDirNameUpper.'_AUTHOR_LOGOIMG', constant($moduleDirNameUpper.'_URL').'/assets/images/logoModule.png');
51
+    define($moduleDirNameUpper.'_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.$moduleDirName); // WITHOUT Trailing slash
52
+    define($moduleDirNameUpper.'_UPLOAD_PATH', XOOPS_UPLOAD_PATH.'/'.$moduleDirName); // WITHOUT Trailing slash
53
+    define($moduleDirNameUpper.'_CONSTANTS_DEFINED', 1);
54 54
 }
55 55
 
56 56
 $pathIcon16 = Admin::iconUrl('', 16);
@@ -59,15 +59,15 @@  discard block
 block discarded – undo
59 59
 //$pathModIcon32 = $helper->getModule()->getInfo('modicons32');
60 60
 
61 61
 $icons = [
62
-    'edit'    => "<img src='" . $pathIcon16 . "/edit.png'  alt=" . _EDIT . "' align='middle'>",
63
-    'delete'  => "<img src='" . $pathIcon16 . "/delete.png' alt='" . _DELETE . "' align='middle'>",
64
-    'clone'   => "<img src='" . $pathIcon16 . "/editcopy.png' alt='" . _CLONE . "' align='middle'>",
65
-    'preview' => "<img src='" . $pathIcon16 . "/view.png' alt='" . _PREVIEW . "' align='middle'>",
66
-    'print'   => "<img src='" . $pathIcon16 . "/printer.png' alt='" . _CLONE . "' align='middle'>",
67
-    'pdf'     => "<img src='" . $pathIcon16 . "/pdf.png' alt='" . _CLONE . "' align='middle'>",
68
-    'add'     => "<img src='" . $pathIcon16 . "/add.png' alt='" . _ADD . "' align='middle'>",
69
-    '0'       => "<img src='" . $pathIcon16 . "/0.png' alt='" . 0 . "' align='middle'>",
70
-    '1'       => "<img src='" . $pathIcon16 . "/1.png' alt='" . 1 . "' align='middle'>",
62
+    'edit'    => "<img src='".$pathIcon16."/edit.png'  alt="._EDIT."' align='middle'>",
63
+    'delete'  => "<img src='".$pathIcon16."/delete.png' alt='"._DELETE."' align='middle'>",
64
+    'clone'   => "<img src='".$pathIcon16."/editcopy.png' alt='"._CLONE."' align='middle'>",
65
+    'preview' => "<img src='".$pathIcon16."/view.png' alt='"._PREVIEW."' align='middle'>",
66
+    'print'   => "<img src='".$pathIcon16."/printer.png' alt='"._CLONE."' align='middle'>",
67
+    'pdf'     => "<img src='".$pathIcon16."/pdf.png' alt='"._CLONE."' align='middle'>",
68
+    'add'     => "<img src='".$pathIcon16."/add.png' alt='"._ADD."' align='middle'>",
69
+    '0'       => "<img src='".$pathIcon16."/0.png' alt='".0."' align='middle'>",
70
+    '1'       => "<img src='".$pathIcon16."/1.png' alt='".1."' align='middle'>",
71 71
 ];
72 72
 
73 73
 $debug = false;
@@ -80,12 +80,12 @@  discard block
 block discarded – undo
80 80
     $GLOBALS['xoopsTpl'] = new \XoopsTpl();
81 81
 }
82 82
 
83
-$GLOBALS['xoopsTpl']->assign('mod_url', XOOPS_URL . '/modules/' . $moduleDirName);
83
+$GLOBALS['xoopsTpl']->assign('mod_url', XOOPS_URL.'/modules/'.$moduleDirName);
84 84
 // Local icons path
85 85
 if (is_object($helper->getModule())) {
86 86
     $pathModIcon16 = $helper->getModule()->getInfo('modicons16');
87 87
     $pathModIcon32 = $helper->getModule()->getInfo('modicons32');
88 88
 
89
-    $GLOBALS['xoopsTpl']->assign('pathModIcon16', XOOPS_URL . '/modules/' . $moduleDirName . '/' . $pathModIcon16);
89
+    $GLOBALS['xoopsTpl']->assign('pathModIcon16', XOOPS_URL.'/modules/'.$moduleDirName.'/'.$pathModIcon16);
90 90
     $GLOBALS['xoopsTpl']->assign('pathModIcon32', $pathModIcon32);
91 91
 }
Please login to merge, or discard this patch.
modules/tools/config/icons.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -5,17 +5,17 @@
 block discarded – undo
5 5
 $pathIcon16    = Admin::iconUrl('', 16);
6 6
 $moduleDirName = \basename(\dirname(__DIR__));
7 7
 
8
-return (object)[
9
-    'name'  => \mb_strtoupper($moduleDirName) . ' IconConfigurator',
8
+return (object) [
9
+    'name'  => \mb_strtoupper($moduleDirName).' IconConfigurator',
10 10
     'icons' => [
11
-        'edit'    => "<img src='" . $pathIcon16 . "/edit.png'  alt=" . _EDIT . "' align='middle'>",
12
-        'delete'  => "<img src='" . $pathIcon16 . "/delete.png' alt='" . _DELETE . "' align='middle'>",
13
-        'clone'   => "<img src='" . $pathIcon16 . "/editcopy.png' alt='" . _CLONE . "' align='middle'>",
14
-        'preview' => "<img src='" . $pathIcon16 . "/view.png' alt='" . _PREVIEW . "' align='middle'>",
15
-        'print'   => "<img src='" . $pathIcon16 . "/printer.png' alt='" . _CLONE . "' align='middle'>",
16
-        'pdf'     => "<img src='" . $pathIcon16 . "/pdf.png' alt='" . _CLONE . "' align='middle'>",
17
-        'add'     => "<img src='" . $pathIcon16 . "/add.png' alt='" . _ADD . "' align='middle'>",
18
-        '0'       => "<img src='" . $pathIcon16 . "/0.png' alt='" . 0 . "' align='middle'>",
19
-        '1'       => "<img src='" . $pathIcon16 . "/1.png' alt='" . 1 . "' align='middle'>",
11
+        'edit'    => "<img src='".$pathIcon16."/edit.png'  alt="._EDIT."' align='middle'>",
12
+        'delete'  => "<img src='".$pathIcon16."/delete.png' alt='"._DELETE."' align='middle'>",
13
+        'clone'   => "<img src='".$pathIcon16."/editcopy.png' alt='"._CLONE."' align='middle'>",
14
+        'preview' => "<img src='".$pathIcon16."/view.png' alt='"._PREVIEW."' align='middle'>",
15
+        'print'   => "<img src='".$pathIcon16."/printer.png' alt='"._CLONE."' align='middle'>",
16
+        'pdf'     => "<img src='".$pathIcon16."/pdf.png' alt='"._CLONE."' align='middle'>",
17
+        'add'     => "<img src='".$pathIcon16."/add.png' alt='"._ADD."' align='middle'>",
18
+        '0'       => "<img src='".$pathIcon16."/0.png' alt='".0."' align='middle'>",
19
+        '1'       => "<img src='".$pathIcon16."/1.png' alt='".1."' align='middle'>",
20 20
     ],
21 21
 ];
Please login to merge, or discard this patch.
modules/tools/config/config.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -20,33 +20,33 @@  discard block
 block discarded – undo
20 20
 $moduleDirName      = \basename(\dirname(__DIR__));
21 21
 $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
22 22
 
23
-return (object)[
24
-    'name'           => $moduleDirNameUpper . ' Module Configurator',
23
+return (object) [
24
+    'name'           => $moduleDirNameUpper.' Module Configurator',
25 25
     'paths'          => [
26 26
         'dirname'    => $moduleDirName,
27
-        'admin'      => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
28
-        'modPath'    => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
29
-        'modUrl'     => XOOPS_URL . '/modules/' . $moduleDirName,
30
-        'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
31
-        'uploadUrl'  => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
27
+        'admin'      => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin',
28
+        'modPath'    => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName,
29
+        'modUrl'     => XOOPS_URL.'/modules/'.$moduleDirName,
30
+        'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
31
+        'uploadUrl'  => XOOPS_UPLOAD_URL.'/'.$moduleDirName,
32 32
     ],
33 33
     'uploadFolders'  => [
34
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
35
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category',
36
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
34
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
35
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category',
36
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots',
37 37
         //XOOPS_UPLOAD_PATH . '/flags'
38 38
     ],
39 39
     'copyBlankFiles' => [
40
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
41
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category',
42
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
40
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
41
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category',
42
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots',
43 43
         //XOOPS_UPLOAD_PATH . '/flags'
44 44
     ],
45 45
 
46 46
     'copyTestFolders' => [
47 47
         [
48
-            XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/uploads',
49
-            XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
48
+            XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/uploads',
49
+            XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
50 50
         ],
51 51
         //            [
52 52
         //                XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs',
@@ -83,6 +83,6 @@  discard block
 block discarded – undo
83 83
         //            'totalsubmitted'  => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]),
84 84
     ],
85 85
     'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'>
86
-                     <img src='" . Admin::iconUrl('xoopsmicrobutton.gif') . "' alt='XOOPS Project'></a>",
86
+                     <img src='" . Admin::iconUrl('xoopsmicrobutton.gif')."' alt='XOOPS Project'></a>",
87 87
 ];
88 88
 
Please login to merge, or discard this patch.