Passed
Pull Request — master (#145)
by Goffy
04:27
created
admin/settings.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 // Define main template
26 26
 $templateMain = 'tdmcreate_settings.tpl';
27 27
 
28
-include __DIR__ . '/header.php';
28
+include __DIR__.'/header.php';
29 29
 
30 30
 // Recovered value of argument op in the URL $
31 31
 $op    = \Xmf\Request::getString('op', 'list');
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left'));
44 44
         $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL);
45 45
         $GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL);
46
-        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16);
46
+        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16);
47 47
         $GLOBALS['xoopsTpl']->assign('sysPathIcon32', $sysPathIcon32);
48 48
         $settingsCount = $helper->getHandler('Settings')->getCountSettings();
49 49
         $settingsAll   = $helper->getHandler('Settings')->getAllSettings($start, $limit);
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
                 unset($setting);
56 56
             }
57 57
             if ($settingsCount > $limit) {
58
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
59
-                $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
58
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
59
+                $pagenav = new \XoopsPageNav($settingsCount, $limit, $start, 'start', 'op=list&limit='.$limit);
60 60
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
61 61
             }
62 62
         } else {
@@ -181,4 +181,4 @@  discard block
 block discarded – undo
181 181
         }
182 182
         break;
183 183
 }
184
-include __DIR__ . '/footer.php';
184
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/building.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@  discard block
 block discarded – undo
25 25
 
26 26
 $templateMain = 'tdmcreate_building.tpl';
27 27
 
28
-include __DIR__ . '/header.php';
28
+include __DIR__.'/header.php';
29 29
 $op          = \Xmf\Request::getString('op', 'default');
30 30
 $mid         = \Xmf\Request::getInt('mod_id');
31 31
 $inroot_copy = \Xmf\Request::getInt('inroot_copy');
32 32
 $moduleObj   = $helper->getHandler('Modules')->get($mid);
33
-$cachePath   = XOOPS_VAR_PATH . '/caches/tdmcreate_cache';
33
+$cachePath   = XOOPS_VAR_PATH.'/caches/tdmcreate_cache';
34 34
 if (!is_dir($cachePath)) {
35 35
     if (!mkdir($cachePath, 0777) && !is_dir($cachePath)) {
36 36
         throw new \RuntimeException(sprintf('Directory "%s" was not created', $cachePath));
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
     chmod($cachePath, 0777);
39 39
 }
40 40
 // Clear cache
41
-if (file_exists($cache = $cachePath . '/classpaths.cache')) {
41
+if (file_exists($cache = $cachePath.'/classpaths.cache')) {
42 42
     unlink($cache);
43 43
 }
44
-if (!file_exists($indexFile = $cachePath . '/index.html')) {
44
+if (!file_exists($indexFile = $cachePath.'/index.html')) {
45 45
     copy('index.html', $indexFile);
46 46
 }
47 47
 // Switch option
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
         // Get var module dirname
52 52
         $moduleDirname = $moduleObj->getVar('mod_dirname');
53 53
         // Directories for copy from to
54
-        $fromDir = TDMC_UPLOAD_REPOSITORY_PATH . '/' . mb_strtolower($moduleDirname);
55
-        $toDir   = XOOPS_ROOT_PATH . '/modules/' . mb_strtolower($moduleDirname);
54
+        $fromDir = TDMC_UPLOAD_REPOSITORY_PATH.'/'.mb_strtolower($moduleDirname);
55
+        $toDir   = XOOPS_ROOT_PATH.'/modules/'.mb_strtolower($moduleDirname);
56 56
         // include_once TDMC_CLASS_PATH . '/building.php';
57 57
         if (isset($moduleDirname)) {
58 58
             // Clear this module if it's in repository
@@ -116,4 +116,4 @@  discard block
 block discarded – undo
116 116
         $GLOBALS['xoopsTpl']->assign('form', $form->render());
117 117
         break;
118 118
 }
119
-include __DIR__ . '/footer.php';
119
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/morefiles.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 // Define main template
26 26
 $templateMain = 'tdmcreate_morefiles.tpl';
27 27
 
28
-include __DIR__ . '/header.php';
28
+include __DIR__.'/header.php';
29 29
 // Recovered value of argument op in the URL $
30 30
 $op = \Xmf\Request::getString('op', 'list');
31 31
 
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
                 unset($files);
61 61
             }
62 62
             if ($morefilesCount > $limit) {
63
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
64
-                $pagenav = new \XoopsPageNav($morefilesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
63
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
64
+                $pagenav = new \XoopsPageNav($morefilesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
65 65
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
66 66
             }
67 67
         } else {
@@ -139,4 +139,4 @@  discard block
 block discarded – undo
139 139
         break;
140 140
 }
141 141
 
142
-include __DIR__ . '/footer.php';
142
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/tables.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 // Define main template
26 26
 $templateMain = 'tdmcreate_tables.tpl';
27 27
 
28
-include __DIR__ . '/header.php';
28
+include __DIR__.'/header.php';
29 29
 // Recovered value of arguments op in the URL $
30 30
 $op = \Xmf\Request::getString('op', 'list');
31 31
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $adminObject->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
51 51
         $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left'));
52 52
         $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL);
53
-        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16);
53
+        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16);
54 54
         // Get the list of modules
55 55
         $modulesCount = $helper->getHandler('Modules')->getCountModules();
56 56
         // Redirect if there aren't modules
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
                 unset($module);
90 90
             }
91 91
             if ($modulesCount > $limit) {
92
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
93
-                $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
92
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
93
+                $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
94 94
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
95 95
             }
96 96
         } else {
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         if ($tableMid > 0) {
107 107
             $tablesObj->setVar('table_mid', $tableMid);
108 108
         }
109
-        $form      = $tablesObj->getFormTables();
109
+        $form = $tablesObj->getFormTables();
110 110
         $GLOBALS['xoopsTpl']->assign('form', $form->render());
111 111
         break;
112 112
     case 'save':
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             ]
146 146
         );
147 147
         //Form table_image
148
-        include_once XOOPS_ROOT_PATH . '/class/uploader.php';
148
+        include_once XOOPS_ROOT_PATH.'/class/uploader.php';
149 149
         $uploaddir = is_dir(XOOPS_ICONS32_PATH) ? XOOPS_ICONS32_PATH : TDMC_UPLOAD_IMGTAB_PATH;
150 150
         $uploader  = new \XoopsMediaUploader(
151 151
             $uploaddir, $helper->getConfig('mimetypes'), $helper->getConfig('maxsize'), null, null
@@ -187,18 +187,18 @@  discard block
 block discarded – undo
187 187
         if ($tables->insert($tablesObj)) {
188 188
             if ($tablesObj->isNew()) {
189 189
                 $tableTid    = $GLOBALS['xoopsDB']->getInsertId();
190
-                $tableAction = '&field_mid=' . $tableMid . '&field_tid=' . $tableTid . '&field_numb=' . $tableNumbFields . '&field_name=' . $tableFieldname;
190
+                $tableAction = '&field_mid='.$tableMid.'&field_tid='.$tableTid.'&field_numb='.$tableNumbFields.'&field_name='.$tableFieldname;
191 191
                 // Fields Elements Handler
192 192
                 $fieldelementObj = $helper->getHandler('Fieldelements')->create();
193 193
                 $fieldelementObj->setVar('fieldelement_mid', $tableMid);
194 194
                 $fieldelementObj->setVar('fieldelement_tid', $tableTid);
195
-                $fieldelementObj->setVar('fieldelement_name', 'Table : ' . ucfirst(\Xmf\Request::getString('table_name', '', 'POST')));
196
-                $fieldelementObj->setVar('fieldelement_value', 'XoopsFormTables-' . ucfirst(\Xmf\Request::getString('table_name', '', 'POST')));
195
+                $fieldelementObj->setVar('fieldelement_name', 'Table : '.ucfirst(\Xmf\Request::getString('table_name', '', 'POST')));
196
+                $fieldelementObj->setVar('fieldelement_value', 'XoopsFormTables-'.ucfirst(\Xmf\Request::getString('table_name', '', 'POST')));
197 197
                 // Insert new field element id for table name
198 198
                 if (!$helper->getHandler('Fieldelements')->insert($fieldelementObj)) {
199
-                    $GLOBALS['xoopsTpl']->assign('error', $fieldelementObj->getHtmlErrors() . ' Field element');
199
+                    $GLOBALS['xoopsTpl']->assign('error', $fieldelementObj->getHtmlErrors().' Field element');
200 200
                 }
201
-                redirect_header('fields.php?op=new' . $tableAction, 5, sprintf(_AM_TDMCREATE_TABLE_FORM_CREATED_OK, \Xmf\Request::getString('table_name', '', 'POST')));
201
+                redirect_header('fields.php?op=new'.$tableAction, 5, sprintf(_AM_TDMCREATE_TABLE_FORM_CREATED_OK, \Xmf\Request::getString('table_name', '', 'POST')));
202 202
             } else {
203 203
                 redirect_header('tables.php', 5, sprintf(_AM_TDMCREATE_TABLE_FORM_UPDATED_OK, \Xmf\Request::getString('table_name', '', 'POST')));
204 204
             }
@@ -268,9 +268,9 @@  discard block
 block discarded – undo
268 268
         if ($mid > 0) {
269 269
             $modulesObj = $helper->getHandler('Modules')->get($mid);
270 270
             foreach ($modArray as $modField) {
271
-                if (isset($_POST['mod_' . $modField])) {
272
-                    $mField = $modulesObj->getVar('mod_' . $modField);
273
-                    $modulesObj->setVar('mod_' . $modField, !$mField);
271
+                if (isset($_POST['mod_'.$modField])) {
272
+                    $mField = $modulesObj->getVar('mod_'.$modField);
273
+                    $modulesObj->setVar('mod_'.$modField, !$mField);
274 274
                 }
275 275
             }
276 276
             if ($helper->getHandler('Modules')->insert($modulesObj)) {
@@ -283,9 +283,9 @@  discard block
 block discarded – undo
283 283
         if ($tid > 0) {
284 284
             $tablesObj = $helper->getHandler('Tables')->get($tid);
285 285
             foreach ($tableArray as $tableField) {
286
-                if (isset($_POST['table_' . $tableField])) {
287
-                    $tblField = $tablesObj->getVar('table_' . $tableField);
288
-                    $tablesObj->setVar('table_' . $tableField, !$tblField);
286
+                if (isset($_POST['table_'.$tableField])) {
287
+                    $tblField = $tablesObj->getVar('table_'.$tableField);
288
+                    $tablesObj->setVar('table_'.$tableField, !$tblField);
289 289
                 }
290 290
             }
291 291
             if ($helper->getHandler('Tables')->insert($tablesObj)) {
@@ -295,4 +295,4 @@  discard block
 block discarded – undo
295 295
         }
296 296
         break;
297 297
 }
298
-include __DIR__ . '/footer.php';
298
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
testdata/index.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 use XoopsModules\Tdmcreate\Common;
19 19
 use XoopsModules\Tdmcreate\Utility;
20 20
 
21
-require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
22
-require dirname(__DIR__) . '/preloads/autoloader.php';
21
+require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
22
+require dirname(__DIR__).'/preloads/autoloader.php';
23 23
 
24 24
 $op = \Xmf\Request::getCmd('op', '');
25 25
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             loadSampleData();
40 40
         } else {
41 41
             xoops_cp_header();
42
-            xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', sprintf(constant('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA_OK')), constant('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM'), true);
42
+            xoops_confirm(['ok' => 1, 'op' => 'load'], 'index.php', sprintf(constant('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA_OK')), constant('CO_'.$moduleDirNameUpper.'_'.'CONFIRM'), true);
43 43
             xoops_cp_footer();
44 44
         }
45 45
         break;
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
     $tables = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getInfo('tables');
64 64
 
65 65
     $language = 'english/';
66
-    if (is_dir(__DIR__ . '/' . $xoopsConfig['language'])) {
67
-        $language = $xoopsConfig['language'] . '/';
66
+    if (is_dir(__DIR__.'/'.$xoopsConfig['language'])) {
67
+        $language = $xoopsConfig['language'].'/';
68 68
     }
69 69
 
70 70
     foreach ($tables as $table) {
71
-        $tabledata = \Xmf\Yaml::readWrapped($language . $table . '.yml');
71
+        $tabledata = \Xmf\Yaml::readWrapped($language.$table.'.yml');
72 72
         \Xmf\Database\TableLoad::truncateTable($table);
73 73
         \Xmf\Database\TableLoad::loadTableFromArray($table, $tabledata);
74 74
     }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             $utility::rcopy($src, $dest);
83 83
         }
84 84
     }
85
-    redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS'));
85
+    redirect_header('../admin/index.php', 1, constant('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS'));
86 86
 }
87 87
 
88 88
 function saveSampleData()
@@ -96,15 +96,15 @@  discard block
 block discarded – undo
96 96
 
97 97
     $tables = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getInfo('tables');
98 98
 
99
-    $languageFolder = __DIR__ . '/' . $xoopsConfig['language'];
100
-    if (!file_exists($languageFolder . '/')) {
101
-       Utility::createFolder($languageFolder . '/');
99
+    $languageFolder = __DIR__.'/'.$xoopsConfig['language'];
100
+    if (!file_exists($languageFolder.'/')) {
101
+       Utility::createFolder($languageFolder.'/');
102 102
     }
103
-    $exportFolder = $languageFolder . '/Exports-' . date('Y-m-d-H-i-s') . '/';
103
+    $exportFolder = $languageFolder.'/Exports-'.date('Y-m-d-H-i-s').'/';
104 104
     Utility::createFolder($exportFolder);
105 105
 
106 106
     foreach ($tables as $table) {
107
-        \Xmf\Database\TableLoad::saveTableToYamlFile($table, $exportFolder . $table . '.yml');
107
+        \Xmf\Database\TableLoad::saveTableToYamlFile($table, $exportFolder.$table.'.yml');
108 108
     }
109 109
     
110 110
     //  ---  COPY test folder files ---------------
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             Utility::rcopy($src, $dest);
116 116
         }
117 117
     }
118
-    redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS'));
118
+    redirect_header('../admin/index.php', 1, constant('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS'));
119 119
 }
120 120
 
121 121
 function exportSchema()
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         //        redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS'));
132 132
     }
133 133
     catch (\Exception $e) {
134
-        exit(constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR'));
134
+        exit(constant('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR'));
135 135
     }
136 136
 
137 137
 }
Please login to merge, or discard this patch.
config/config.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -21,30 +21,30 @@  discard block
 block discarded – undo
21 21
 xoops_loadLanguage('common', $moduleDirName);
22 22
 
23 23
 return (object)[
24
-    'name'           => mb_strtoupper($moduleDirName) . ' ModuleConfigurator',
24
+    'name'           => mb_strtoupper($moduleDirName).' ModuleConfigurator',
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 . '/screenshots',
34
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
35
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots',
36 36
         //XOOPS_UPLOAD_PATH . '/flags'
37 37
     ],
38 38
     'copyBlankFiles' => [
39
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
40
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
39
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
40
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots',
41 41
         //XOOPS_UPLOAD_PATH . '/flags'
42 42
     ],
43 43
 
44 44
     'copyTestFolders' => [
45 45
         [
46
-            XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/images',
47
-            XOOPS_UPLOAD_PATH . '/' . $moduleDirName  . '/images',
46
+            XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/images',
47
+            XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images',
48 48
         ],
49 49
         //            [
50 50
         //                XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs',
@@ -81,5 +81,5 @@  discard block
 block discarded – undo
81 81
         //            'totalsubmitted'  => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]),
82 82
     ],
83 83
     'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'>
84
-                     <img src='" . XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/assets/images/logo/logoModule.png' . "' alt='XOOPS Project'></a>",
84
+                     <img src='" . XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/assets/images/logo/logoModule.png'."' alt='XOOPS Project'></a>",
85 85
 ];
Please login to merge, or discard this patch.
class/Files/admin/AdminXoopsCode.php 1 patch
Spacing   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -72,11 +72,11 @@  discard block
 block discarded – undo
72 72
     public function getAdminItemButton($language, $tableName, $stuTableSoleName, $op = '?op=new', $type = 'add', $t = '')
73 73
     {
74 74
         $stuType = mb_strtoupper($type);
75
-        $aM      = $t . '$adminObject->addItemButton(';
75
+        $aM      = $t.'$adminObject->addItemButton(';
76 76
         if ('add' === $type) {
77
-            $ret = $aM . "{$language}ADD_{$stuTableSoleName}, '{$tableName}.php{$op}', '{$type}');\n";
77
+            $ret = $aM."{$language}ADD_{$stuTableSoleName}, '{$tableName}.php{$op}', '{$type}');\n";
78 78
         } else {
79
-            $ret = $aM . "{$language}{$stuTableSoleName}_{$stuType}, '{$tableName}.php{$op}', '{$type}');\n";
79
+            $ret = $aM."{$language}{$stuTableSoleName}_{$stuType}, '{$tableName}.php{$op}', '{$type}');\n";
80 80
         }
81 81
 
82 82
         return $ret;
@@ -118,11 +118,11 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function getAxcAddInfoBoxLine($language, $label = '', $var = '', $t = '')
120 120
     {
121
-        $aMenu = $t . '$adminObject->addInfoBoxLine(sprintf(';
121
+        $aMenu = $t.'$adminObject->addInfoBoxLine(sprintf(';
122 122
         if ('' != $var) {
123
-            $ret = $aMenu . " '<label>'.{$label}.'</label>', {$var}));\n";
123
+            $ret = $aMenu." '<label>'.{$label}.'</label>', {$var}));\n";
124 124
         } else {
125
-            $ret = $aMenu . " '<label>'.{$label}.'</label>'));\n";
125
+            $ret = $aMenu." '<label>'.{$label}.'</label>'));\n";
126 126
         }
127 127
 
128 128
         return $ret;
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
      */
140 140
     public function getAxcAddConfigBoxLine($language, $label = '', $var = '', $t = '')
141 141
     {
142
-        $aMenu = $t . '$adminObject->addConfigBoxLine(';
142
+        $aMenu = $t.'$adminObject->addConfigBoxLine(';
143 143
         if ('' != $var) {
144
-            $ret = $aMenu . "{$language}, '{$label}', {$var});\n";
144
+            $ret = $aMenu."{$language}, '{$label}', {$var});\n";
145 145
         } else {
146
-            $ret = $aMenu . "{$language}, '{$label}');\n";
146
+            $ret = $aMenu."{$language}, '{$label}');\n";
147 147
         }
148 148
 
149 149
         return $ret;
@@ -167,15 +167,15 @@  discard block
 block discarded – undo
167 167
         $ret            .= $pCodeImageList->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/uploader', true, false, '', $t);
168 168
         $xRootPath      = "XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32'";
169 169
         $ret            .= $xCodeImageList->getXcMediaUploader('uploader', $xRootPath, $moduleDirname, $t);
170
-        $post           = $pCodeImageList->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST') . '[' . $countUploader . ']';
170
+        $post           = $pCodeImageList->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST').'['.$countUploader.']';
171 171
         $fetchMedia     = $this->getAxcFetchMedia('uploader', $post);
172
-        $ifelse         = $t . "\t//" . $this->getAxcSetPrefix('uploader', "{$fieldName}_") . ";\n";
173
-        $ifelse         .= $t . "\t//{$fetchMedia};\n";
174
-        $contentElseInt = $xCodeImageList->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t . "\t\t");
175
-        $contentIf      = $xCodeImageList->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t . "\t\t");
176
-        $contentIf      .= $xCodeImageList->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t . "\t\t");
177
-        $ifelse         .= $pCodeImageList->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t . "\t");
178
-        $contentElseExt = $xCodeImageList->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t . "\t");
172
+        $ifelse         = $t."\t//".$this->getAxcSetPrefix('uploader', "{$fieldName}_").";\n";
173
+        $ifelse         .= $t."\t//{$fetchMedia};\n";
174
+        $contentElseInt = $xCodeImageList->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t."\t\t");
175
+        $contentIf      = $xCodeImageList->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t."\t\t");
176
+        $contentIf      .= $xCodeImageList->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t."\t\t");
177
+        $ifelse         .= $pCodeImageList->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t."\t");
178
+        $contentElseExt = $xCodeImageList->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t."\t");
179 179
 
180 180
         $ret .= $pCodeImageList->getPhpCodeConditions($fetchMedia, '', '', $ifelse, $contentElseExt, $t);
181 181
 
@@ -200,21 +200,21 @@  discard block
 block discarded – undo
200 200
         $ret              = $pCodeUploadImage->getPhpCodeCommentLine('Set Var', $fieldName, $t);
201 201
         $ret              .= $pCodeUploadImage->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/uploader', true, false, '', $t);
202 202
         $xUploadImage     = "{$stuModuleDirname}_UPLOAD_IMAGE_PATH";
203
-        $ret              .= $xCodeUploadImage->getXcMediaUploader('uploader', $xUploadImage . " . '/{$tableName}/'", $moduleDirname, $t);
204
-        $post             = $pCodeUploadImage->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST') . '[' . $countUploader . ']';
203
+        $ret              .= $xCodeUploadImage->getXcMediaUploader('uploader', $xUploadImage." . '/{$tableName}/'", $moduleDirname, $t);
204
+        $post             = $pCodeUploadImage->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST').'['.$countUploader.']';
205 205
         $fetchMedia       = $this->getAxcFetchMedia('uploader', $post);
206
-        $file             = $pCodeUploadImage->getPhpCodeGlobalsVariables('attachedfile', 'FILES') . "['name']";
206
+        $file             = $pCodeUploadImage->getPhpCodeGlobalsVariables('attachedfile', 'FILES')."['name']";
207 207
         $expr             = '/^.+\.([^.]+)$/sU';
208
-        $ifelse           = $pCodeUploadImage->getPhpCodePregFunzions('extension', $expr, '', $file, 'replace', false, $t . "\t");
208
+        $ifelse           = $pCodeUploadImage->getPhpCodePregFunzions('extension', $expr, '', $file, 'replace', false, $t."\t");
209 209
 
210
-        $ifelse         .= $t . "\t\$imgName = str_replace(' ', '', \$_POST['{$fieldMain}']) . '.' . \$extension;\n";
211
-        $ifelse         .= $this->getAxcSetPrefix('uploader', '$imgName', $t . "\t") . ";\n";
212
-        $ifelse         .= $t . "\t{$fetchMedia};\n";
213
-        $contentElseInt = $xCodeUploadImage->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t . "\t\t");
214
-        $contentIf      = $xCodeUploadImage->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t . "\t\t");
215
-        $contentIf      .= $xCodeUploadImage->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t . "\t\t");
216
-        $ifelse         .= $pCodeUploadImage->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t . "\t");
217
-        $contentElseExt = $xCodeUploadImage->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t . "\t");
210
+        $ifelse         .= $t."\t\$imgName = str_replace(' ', '', \$_POST['{$fieldMain}']) . '.' . \$extension;\n";
211
+        $ifelse         .= $this->getAxcSetPrefix('uploader', '$imgName', $t."\t").";\n";
212
+        $ifelse         .= $t."\t{$fetchMedia};\n";
213
+        $contentElseInt = $xCodeUploadImage->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t."\t\t");
214
+        $contentIf      = $xCodeUploadImage->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t."\t\t");
215
+        $contentIf      .= $xCodeUploadImage->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t."\t\t");
216
+        $ifelse         .= $pCodeUploadImage->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t."\t");
217
+        $contentElseExt = $xCodeUploadImage->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t."\t");
218 218
 
219 219
         $ret .= $pCodeUploadImage->getPhpCodeConditions($fetchMedia, '', '', $ifelse, $contentElseExt, $t);
220 220
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     public function getAxcUploadFileSetVar($moduleDirname, $tableName, $fieldName, $formatUrl = false, $t = '', $countUploader, $fieldMain)
236 236
     {
237 237
         $stuModuleDirname = mb_strtoupper($moduleDirname);
238
-        $ret              = $this->getAxcImageFileSetVar($moduleDirname, $stuModuleDirname . '_UPLOAD_FILES_PATH', $tableName, $fieldName, $formatUrl, $t, $countUploader, $fieldMain);
238
+        $ret              = $this->getAxcImageFileSetVar($moduleDirname, $stuModuleDirname.'_UPLOAD_FILES_PATH', $tableName, $fieldName, $formatUrl, $t, $countUploader, $fieldMain);
239 239
 
240 240
         return $ret;
241 241
     }
@@ -262,25 +262,25 @@  discard block
 block discarded – undo
262 262
         $contentIf       = '';
263 263
 
264 264
         if ($formatUrl) {
265
-            $ret    .= $xCodeFileSetVar->getXcSetVar($tableName, $fieldName, "formatUrl(\$_REQUEST['{$fieldName}'])", $t);
265
+            $ret .= $xCodeFileSetVar->getXcSetVar($tableName, $fieldName, "formatUrl(\$_REQUEST['{$fieldName}'])", $t);
266 266
         }
267 267
         $ret            .= $pCodeFileSetVar->getPhpCodeCommentLine('Set Var', $fieldName, $t);
268 268
         $ret            .= $pCodeFileSetVar->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/uploader', true, false, '', $t);
269
-        $ret            .= $xCodeFileSetVar->getXcMediaUploader('uploader', $dirname . " . '/{$tableName}{$files}/'", $moduleDirname, $t);
270
-        $post           = $pCodeFileSetVar->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST') . '[' . $countUploader . ']';
269
+        $ret            .= $xCodeFileSetVar->getXcMediaUploader('uploader', $dirname." . '/{$tableName}{$files}/'", $moduleDirname, $t);
270
+        $post           = $pCodeFileSetVar->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST').'['.$countUploader.']';
271 271
         $fetchMedia     = $this->getAxcFetchMedia('uploader', $post);
272
-        $file           = $pCodeFileSetVar->getPhpCodeGlobalsVariables($fieldName, 'FILES') . "['name']";
272
+        $file           = $pCodeFileSetVar->getPhpCodeGlobalsVariables($fieldName, 'FILES')."['name']";
273 273
         $expr           = '/^.+\.([^.]+)$/sU';
274
-        $ifelse         .= $pCodeFileSetVar->getPhpCodePregFunzions('extension', $expr, '', $file, 'replace', false, $t . "\t");
274
+        $ifelse         .= $pCodeFileSetVar->getPhpCodePregFunzions('extension', $expr, '', $file, 'replace', false, $t."\t");
275 275
 
276
-        $ifelse         .= $t . "\t\$imgName = str_replace(' ', '', \$_POST['{$fieldMain}']) . '.' . \$extension;\n";
277
-        $ifelse         .= $this->getAxcSetPrefix('uploader', '$imgName', $t . "\t") . ";\n";
278
-        $ifelse         .= $t . "\t{$fetchMedia};\n";
279
-        $contentElseInt = $xCodeFileSetVar->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t . "\t\t");
280
-        $contentIf      .= $xCodeFileSetVar->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t . "\t\t");
281
-        $contentIf      .= $xCodeFileSetVar->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t . "\t\t");
282
-        $ifelse         .= $pCodeFileSetVar->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t . "\t");
283
-        $contentElseExt = $xCodeFileSetVar->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t . "\t");
276
+        $ifelse         .= $t."\t\$imgName = str_replace(' ', '', \$_POST['{$fieldMain}']) . '.' . \$extension;\n";
277
+        $ifelse         .= $this->getAxcSetPrefix('uploader', '$imgName', $t."\t").";\n";
278
+        $ifelse         .= $t."\t{$fetchMedia};\n";
279
+        $contentElseInt = $xCodeFileSetVar->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t."\t\t");
280
+        $contentIf      .= $xCodeFileSetVar->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t."\t\t");
281
+        $contentIf      .= $xCodeFileSetVar->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t."\t\t");
282
+        $ifelse         .= $pCodeFileSetVar->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t."\t");
283
+        $contentElseExt = $xCodeFileSetVar->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t."\t");
284 284
 
285 285
         $ret .= $pCodeFileSetVar->getPhpCodeConditions($fetchMedia, '', '', $ifelse, $contentElseExt, $t);
286 286
 
@@ -397,25 +397,25 @@  discard block
 block discarded – undo
397 397
         $phpCodeCaseDelete = Tdmcreate\Files\CreatePhpCode::getInstance();
398 398
         $xCodeCaseDelete   = Tdmcreate\Files\CreateXoopsCode::getInstance();
399 399
         $ccFieldId         = Tdmcreate\Files\CreateFile::getInstance()->getCamelCase($fieldId, false, true);
400
-        $ret               = $xCodeCaseDelete->getXcGet($tableName, $ccFieldId, 'Obj', $tableName . 'Handler');
400
+        $ret               = $xCodeCaseDelete->getXcGet($tableName, $ccFieldId, 'Obj', $tableName.'Handler');
401 401
 
402 402
         $reqOk                = "_REQUEST['ok']";
403 403
         $isset                = $phpCodeCaseDelete->getPhpCodeIsset($reqOk);
404 404
         $xoopsSecurityCheck   = $xCodeCaseDelete->getXcSecurityCheck();
405 405
         $xoopsSecurityErrors  = $xCodeCaseDelete->getXcSecurityErrors();
406 406
         $implode              = $phpCodeCaseDelete->getPhpCodeImplode(', ', $xoopsSecurityErrors);
407
-        $redirectHeaderErrors = $xCodeCaseDelete->getXcRedirectHeader($tableName, '', '3', $implode, true, $t . "\t\t");
407
+        $redirectHeaderErrors = $xCodeCaseDelete->getXcRedirectHeader($tableName, '', '3', $implode, true, $t."\t\t");
408 408
 
409 409
         $delete    = $xCodeCaseDelete->getXcDelete($tableName, $tableName, 'Obj', 'Handler');
410
-        $condition = $phpCodeCaseDelete->getPhpCodeConditions('!' . $xoopsSecurityCheck, '', '', $redirectHeaderErrors, false, $t . "\t");
410
+        $condition = $phpCodeCaseDelete->getPhpCodeConditions('!'.$xoopsSecurityCheck, '', '', $redirectHeaderErrors, false, $t."\t");
411 411
 
412
-        $redirectHeaderLanguage = $xCodeCaseDelete->getXcRedirectHeader($tableName, '', '3', "{$language}FORM_DELETE_OK", true, $t . "\t\t");
412
+        $redirectHeaderLanguage = $xCodeCaseDelete->getXcRedirectHeader($tableName, '', '3', "{$language}FORM_DELETE_OK", true, $t."\t\t");
413 413
         $htmlErrors             = $xCodeCaseDelete->getXcHtmlErrors($tableName, true);
414
-        $internalElse           = $xCodeCaseDelete->getXcTplAssign('error', $htmlErrors, true, $t . "\t\t");
415
-        $condition              .= $phpCodeCaseDelete->getPhpCodeConditions($delete, '', '', $redirectHeaderLanguage, $internalElse, $t . "\t");
414
+        $internalElse           = $xCodeCaseDelete->getXcTplAssign('error', $htmlErrors, true, $t."\t\t");
415
+        $condition .= $phpCodeCaseDelete->getPhpCodeConditions($delete, '', '', $redirectHeaderLanguage, $internalElse, $t."\t");
416 416
 
417
-        $mainElse = $xCodeCaseDelete->getXcXoopsConfirm($tableName, $language, $fieldId, $fieldMain, 'delete', $t . "\t");
418
-        $ret      .= $phpCodeCaseDelete->getPhpCodeConditions($isset, ' && ', "1 == \${$reqOk}", $condition, $mainElse, $t);
417
+        $mainElse = $xCodeCaseDelete->getXcXoopsConfirm($tableName, $language, $fieldId, $fieldMain, 'delete', $t."\t");
418
+        $ret .= $phpCodeCaseDelete->getPhpCodeConditions($isset, ' && ', "1 == \${$reqOk}", $condition, $mainElse, $t);
419 419
 
420 420
         return $ret;
421 421
     }
Please login to merge, or discard this patch.
class/Files/admin/AdminPages.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -150,11 +150,11 @@  discard block
 block discarded – undo
150 150
 
151 151
         $ret            .= $pc->getPhpCodeCommentLine('Table view', $tableName, $t);
152 152
         $contentForeach = $xc->getXcGetValues($tableName, $tableSoleName, 'i', false, "\t");
153
-        $contentForeach .= $xc->getXcXoopsTplAppend("{$tableName}_list", "\${$tableSoleName}", $t . "\t\t");
154
-        $contentForeach .= $pc->getPhpCodeUnset($tableSoleName, $t . "\t\t");
155
-        $condIf         = $pc->getPhpCodeForeach("{$tableName}All", true, false, 'i', $contentForeach, $t . "\t");
156
-        $condIf         .= $xc->getXcPageNav($tableName, $t . "\t");
157
-        $condElse       = $xc->getXcTplAssign('error', "{$language}THEREARENT_{$stuTableName}", true, $t . "\t");
153
+        $contentForeach .= $xc->getXcXoopsTplAppend("{$tableName}_list", "\${$tableSoleName}", $t."\t\t");
154
+        $contentForeach .= $pc->getPhpCodeUnset($tableSoleName, $t."\t\t");
155
+        $condIf         = $pc->getPhpCodeForeach("{$tableName}All", true, false, 'i', $contentForeach, $t."\t");
156
+        $condIf         .= $xc->getXcPageNav($tableName, $t."\t");
157
+        $condElse       = $xc->getXcTplAssign('error', "{$language}THEREARENT_{$stuTableName}", true, $t."\t");
158 158
         $ret            .= $pc->getPhpCodeConditions("\${$tableName}Count", ' > ', '0', $condIf, $condElse, $t);
159 159
 
160 160
         return $ret;
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         $stuTableName = mb_strtoupper($tableName);
179 179
         $ret          = $axc->getAdminTemplateMain($moduleDirname, $tableName);
180 180
         $navigation   = $axc->getAdminDisplayNavigation($tableName);
181
-        $ret          .= $xc->getXcTplAssign('navigation', $navigation, true, $t);
181
+        $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t);
182 182
 
183 183
         if (in_array(1, $fieldInForm)) {
184 184
             $ret .= $axc->getAdminItemButton($language, $tableName, $stuTableName, '', 'list', $t);
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
         $ret     = $pc->getPhpCodeCommentLine('Permission to', $perm, "\t\t\t");
211 211
         $content = $xc->getXcAddRight('gpermHandler', "{$moduleDirname}_{$perm}", '$permId', '$onegroupId', "\$GLOBALS['xoopsModule']->getVar('mid')", false, "\t");
212 212
         $foreach = $pc->getPhpCodeForeach("_POST['groups_{$perm}']", false, false, 'onegroupId', $content, "\t\t\t\t");
213
-        $ret     .= $pc->getPhpCodeConditions("isset(\$_POST['groups_{$perm}'])", null, null, $foreach, false, "\t\t\t");
213
+        $ret .= $pc->getPhpCodeConditions("isset(\$_POST['groups_{$perm}'])", null, null, $foreach, false, "\t\t\t");
214 214
 
215 215
         return $ret;
216 216
     }
@@ -239,11 +239,11 @@  discard block
 block discarded – undo
239 239
         $xoopsSecurityCheck = $xc->getXcSecurityCheck('!');
240 240
         $securityError      = $xc->getXcSecurityErrors();
241 241
         $implode            = $pc->getPhpCodeImplode(',', $securityError);
242
-        $redirectError      = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t . "\t");
243
-        $ret                .= $pc->getPhpCodeConditions($xoopsSecurityCheck, '', '', $redirectError, false, $t);
242
+        $redirectError      = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t."\t");
243
+        $ret .= $pc->getPhpCodeConditions($xoopsSecurityCheck, '', '', $redirectError, false, $t);
244 244
 
245 245
         $isset       = $pc->getPhpCodeIsset($ccFieldId);
246
-        $contentIf   = $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName . 'Handler', false, $t . "\t");
246
+        $contentIf   = $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName.'Handler', false, $t."\t");
247 247
         $contentElse = $xc->getXcObjHandlerCreate($tableName, "\t\t\t");
248 248
         $ret         .= $pc->getPhpCodeConditions($isset, '', '', $contentIf, $contentElse, $t);
249 249
         $ret         .= $pc->getPhpCodeCommentLine('Set Vars', null, "\t\t");
@@ -290,21 +290,21 @@  discard block
 block discarded – undo
290 290
                 }
291 291
             }
292 292
         }
293
-        $ret           .= $pc->getPhpCodeCommentLine('Insert Data', null, "\t\t");
293
+        $ret .= $pc->getPhpCodeCommentLine('Insert Data', null, "\t\t");
294 294
         $insert        = $xc->getXcInsert($tableName, $tableName, 'Obj');
295 295
         $contentInsert = '';
296 296
         //if (1 == $tableCategory) {
297 297
         if (1 == $tablePerms) {
298 298
             $ucfTableName  = ucfirst($tableName);
299
-            $contentInsert = $xc->getXcEqualsOperator('$newCatId', "\${$tableName}Obj->getNewInsertedId{$ucfTableName}()", null, false, $t . "\t");
299
+            $contentInsert = $xc->getXcEqualsOperator('$newCatId', "\${$tableName}Obj->getNewInsertedId{$ucfTableName}()", null, false, $t."\t");
300 300
             $ucfFieldId    = $this->getCamelCase($fieldId, true);
301
-            $contentInsert .= $pc->getPhpCodeTernaryOperator('permId', "isset(\$_REQUEST['{$fieldId}'])", "\${$ccFieldId}", "\$new{$ucfFieldId}", $t . "\t");
302
-            $contentInsert .= $xc->getXcEqualsOperator('$gpermHandler', "xoops_getHandler('groupperm')", null, false, $t . "\t");
303
-            $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId);
304
-            $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId, 'submit');
305
-            $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId, 'approve');
301
+            $contentInsert .= $pc->getPhpCodeTernaryOperator('permId', "isset(\$_REQUEST['{$fieldId}'])", "\${$ccFieldId}", "\$new{$ucfFieldId}", $t."\t");
302
+            $contentInsert .= $xc->getXcEqualsOperator('$gpermHandler', "xoops_getHandler('groupperm')", null, false, $t."\t");
303
+            $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId);
304
+            $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId, 'submit');
305
+            $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId, 'approve');
306 306
         }
307
-        $contentInsert .= $xc->getXcRedirectHeader($tableName . '', '?op=list', '2', "{$language}FORM_OK", true, $t . "\t");
307
+        $contentInsert .= $xc->getXcRedirectHeader($tableName.'', '?op=list', '2', "{$language}FORM_OK", true, $t."\t");
308 308
         $ret           .= $pc->getPhpCodeConditions($insert, '', '', $contentInsert, false, $t);
309 309
         $ret           .= $pc->getPhpCodeCommentLine('Get Form', null, "\t\t");
310 310
         $ret           .= $xc->getXcTplAssign('error', "\${$tableName}Obj->getHtmlErrors()", true, $t);
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
 
342 342
         $ret        = $axc->getAdminTemplateMain($moduleDirname, $tableName);
343 343
         $navigation = $axc->getAdminDisplayNavigation($tableName);
344
-        $ret        .= $xc->getXcTplAssign('navigation', $navigation, true, $t);
344
+        $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t);
345 345
 
346 346
         if (in_array(1, $fieldInForm)) {
347 347
             $ret .= $axc->getAdminItemButton($language, $tableName, $stuTableSoleName, '?op=new', 'add', $t);
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
             $ret .= $xc->getXcTplAssign('buttons', '$adminObject->displayButton(\'left\')', true, $t);
350 350
         }
351 351
         $ret .= $pc->getPhpCodeCommentLine('Get Form', null, "\t\t");
352
-        $ret .= $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName . 'Handler', false, $t);
352
+        $ret .= $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName.'Handler', false, $t);
353 353
         $ret .= $xc->getXcGetForm('form', $tableName, 'Obj', $t);
354 354
         $ret .= $xc->getXcTplAssign('form', '$form->render()', true, $t);
355 355
 
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
         }
415 415
         $delete = $this->getAdminPagesDelete($tableName, $language, $fieldId, $fieldMain, "\t\t");
416 416
 
417
-        $cases   = [
417
+        $cases = [
418 418
             'list'   => [$list],
419 419
             'new'    => [$new],
420 420
             'save'   => [$save],
Please login to merge, or discard this patch.
class/Files/User/UserXoopsVersion.php 1 patch
Spacing   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
         $ret            .= $uCodeVComments->getUserModVersion(2, "'com_id'", 'comments', "'itemName'");
231 231
         $ret            .= Tdmcreate\Files\CreatePhpCode::getInstance()->getPhpCodeCommentLine('Comment callback functions');
232 232
         $ret            .= $uCodeVComments->getUserModVersion(2, "'include/comment_functions.php'", 'comments', "'callbackFile'");
233
-        $descriptions   = ['approve' => "'{$moduleDirname}CommentsApprove'", 'update' => "'{$moduleDirname}CommentsUpdate'"];
233
+        $descriptions = ['approve' => "'{$moduleDirname}CommentsApprove'", 'update' => "'{$moduleDirname}CommentsUpdate'"];
234 234
         $ret            .= $uCodeVComments->getUserModVersion(3, $descriptions, 'comments', "'callback'");
235 235
 
236 236
         return $ret;
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
         foreach (array_keys($tables) as $t) {
256 256
             $tableName          = $tables[$t]->getVar('table_name');
257 257
             $tablePermissions[] = $tables[$t]->getVar('table_permissions');
258
-            $ret                .= $this->getXoopsVersionTemplatesLine($moduleDirname, $tableName, '', true);
258
+            $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, $tableName, '', true);
259 259
         }
260 260
         if (in_array(1, $tablePermissions)) {
261 261
             $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, 'permissions', '', true);
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
     private function getXoopsVersionBlocks($moduleDirname, $tables, $language)
399 399
     {
400 400
         $ret           = $this->getDashComment('Blocks');
401
-        $ret           .= $this->getSimpleString('$b = 1;');
401
+        $ret .= $this->getSimpleString('$b = 1;');
402 402
         $tableCategory = [];
403 403
         foreach (array_keys($tables) as $i) {
404 404
             $tableName        = $tables[$i]->getVar('table_name');
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
         $uCodeVTBlocks   = UserXoopsCode::getInstance();
438 438
         $stuTableName    = mb_strtoupper($tableName);
439 439
         $ucfTableName    = ucfirst($tableName);
440
-        $ret             = $phpCodeVTBlocks->getPhpCodeCommentLine($ucfTableName . ' ' . $type);
440
+        $ret             = $phpCodeVTBlocks->getPhpCodeCommentLine($ucfTableName.' '.$type);
441 441
         $blocks          = [
442 442
             'file'        => "'{$tableName}.php'",
443 443
             'name'        => "{$language}{$stuTableName}_BLOCK_{$stuTableSoleName}",
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
         $uCodeVConfig   = UserXoopsCode::getInstance();
469 469
         $moduleDirname  = $module->getVar('mod_dirname');
470 470
         $ret            = $this->getDashComment('Config');
471
-        $ret            .= $this->getSimpleString('$c = 1;');
471
+        $ret .= $this->getSimpleString('$c = 1;');
472 472
 
473 473
         $table_permissions = 0;
474 474
         $table_admin       = 0;
@@ -490,15 +490,15 @@  discard block
 block discarded – undo
490 490
                         $stuFieldName = mb_strtoupper($rpFieldName);
491 491
                         $ret          .= $phpCodeVConfig->getPhpCodeCommentLine('Editor', $rpFieldName);
492 492
                         $ret          .= $xCodeVConfig->getXcLoad('xoopseditorhandler');
493
-                        $ret          .= $xCodeVConfig->getXcEqualsOperator('$editorHandler' . $ucfFieldName, 'XoopsEditorHandler::getInstance()');
494
-                        $editor       = [
493
+                        $ret          .= $xCodeVConfig->getXcEqualsOperator('$editorHandler'.$ucfFieldName, 'XoopsEditorHandler::getInstance()');
494
+                        $editor = [
495 495
                             'name'        => "'editor_{$rpFieldName}'",
496 496
                             'title'       => "'{$language}EDITOR_{$stuFieldName}'",
497 497
                             'description' => "'{$language}EDITOR_{$stuFieldName}_DESC'",
498 498
                             'formtype'    => "'select'",
499 499
                             'valuetype'   => "'text'",
500 500
                             'default'     => "'dhtml'",
501
-                            'options'     => 'array_flip($editorHandler' . $ucfFieldName . '->getList())',
501
+                            'options'     => 'array_flip($editorHandler'.$ucfFieldName.'->getList())',
502 502
                         ];
503 503
                         $ret          .= $uCodeVConfig->getUserModVersion(3, $editor, 'config', '$c');
504 504
                         $ret          .= $this->getSimpleString('++$c;');
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
             $ret         .= $this->getSimpleString('++$c;');
572 572
         }
573 573
         $keyword      = implode(', ', $this->getKeywords());
574
-        $ret          .= $phpCodeVConfig->getPhpCodeCommentLine('Keywords');
574
+        $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Keywords');
575 575
         $arrayKeyword = [
576 576
             'name'        => "'keywords'",
577 577
             'title'       => "'{$language}KEYWORDS'",
@@ -585,8 +585,8 @@  discard block
 block discarded – undo
585 585
         unset($this->keywords);
586 586
 
587 587
         if (1 === $field_images) {
588
-            $ret       .= $phpCodeVConfig->getPhpCodeCommentLine('Uploads : maxsize of image');
589
-            $maxsize   = [
588
+            $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Uploads : maxsize of image');
589
+            $maxsize = [
590 590
                 'name'        => "'maxsize'",
591 591
                 'title'       => "'{$language}MAXSIZE'",
592 592
                 'description' => "'{$language}MAXSIZE_DESC'",
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
             $ret       .= $this->getSimpleString('++$c;');
611 611
         }
612 612
         if (1 === $table_admin) {
613
-            $ret        .= $phpCodeVConfig->getPhpCodeCommentLine('Admin pager');
613
+            $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Admin pager');
614 614
             $adminPager = [
615 615
                 'name'        => "'adminpager'",
616 616
                 'title'       => "'{$language}ADMIN_PAGER'",
@@ -623,7 +623,7 @@  discard block
 block discarded – undo
623 623
             $ret        .= $this->getSimpleString('++$c;');
624 624
         }
625 625
         if (1 === $table_user) {
626
-            $ret       .= $phpCodeVConfig->getPhpCodeCommentLine('User pager');
626
+            $ret .= $phpCodeVConfig->getPhpCodeCommentLine('User pager');
627 627
             $userPager = [
628 628
                 'name'        => "'userpager'",
629 629
                 'title'       => "'{$language}USER_PAGER'",
@@ -636,7 +636,7 @@  discard block
 block discarded – undo
636 636
             $ret       .= $this->getSimpleString('++$c;');
637 637
         }
638 638
         if (1 === $table_tag) {
639
-            $ret    .= $phpCodeVConfig->getPhpCodeCommentLine('Use tag');
639
+            $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Use tag');
640 640
             $useTag = [
641 641
                 'name'        => "'usetag'",
642 642
                 'title'       => "'{$language}USE_TAG'",
@@ -648,8 +648,8 @@  discard block
 block discarded – undo
648 648
             $ret    .= $uCodeVConfig->getUserModVersion(3, $useTag, 'config', '$c');
649 649
             $ret    .= $this->getSimpleString('++$c;');
650 650
         }
651
-        $ret              .= $phpCodeVConfig->getPhpCodeCommentLine('Number column');
652
-        $numbCol          = [
651
+        $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Number column');
652
+        $numbCol = [
653 653
             'name'        => "'numb_col'",
654 654
             'title'       => "'{$language}NUMB_COL'",
655 655
             'description' => "'{$language}NUMB_COL_DESC'",
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
         $ret              .= $uCodeVConfig->getUserModVersion(3, $numbCol, 'config', '$c');
662 662
         $ret              .= $this->getSimpleString('++$c;');
663 663
         $ret              .= $phpCodeVConfig->getPhpCodeCommentLine('Divide by');
664
-        $divideby         = [
664
+        $divideby = [
665 665
             'name'        => "'divideby'",
666 666
             'title'       => "'{$language}DIVIDEBY'",
667 667
             'description' => "'{$language}DIVIDEBY_DESC'",
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
         $ret              .= $uCodeVConfig->getUserModVersion(3, $divideby, 'config', '$c');
674 674
         $ret              .= $this->getSimpleString('++$c;');
675 675
         $ret              .= $phpCodeVConfig->getPhpCodeCommentLine('Table type');
676
-        $tableType        = [
676
+        $tableType = [
677 677
             'name'        => "'table_type'",
678 678
             'title'       => "'{$language}TABLE_TYPE'",
679 679
             'description' => "'{$language}DIVIDEBY_DESC'",
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
         $ret              .= $uCodeVConfig->getUserModVersion(3, $tableType, 'config', '$c');
686 686
         $ret              .= $this->getSimpleString('++$c;');
687 687
         $ret              .= $phpCodeVConfig->getPhpCodeCommentLine('Panel by');
688
-        $panelType        = [
688
+        $panelType = [
689 689
             'name'        => "'panel_type'",
690 690
             'title'       => "'{$language}PANEL_TYPE'",
691 691
             'description' => "'{$language}PANEL_TYPE_DESC'",
@@ -697,7 +697,7 @@  discard block
 block discarded – undo
697 697
         $ret              .= $uCodeVConfig->getUserModVersion(3, $panelType, 'config', '$c');
698 698
         $ret              .= $this->getSimpleString('++$c;');
699 699
         $ret              .= $phpCodeVConfig->getPhpCodeCommentLine('Advertise');
700
-        $advertise        = [
700
+        $advertise = [
701 701
             'name'        => "'advertise'",
702 702
             'title'       => "'{$language}ADVERTISE'",
703 703
             'description' => "'{$language}ADVERTISE_DESC'",
@@ -708,7 +708,7 @@  discard block
 block discarded – undo
708 708
         $ret              .= $uCodeVConfig->getUserModVersion(3, $advertise, 'config', '$c');
709 709
         $ret              .= $this->getSimpleString('++$c;');
710 710
         $ret              .= $phpCodeVConfig->getPhpCodeCommentLine('Bookmarks');
711
-        $bookmarks        = [
711
+        $bookmarks = [
712 712
             'name'        => "'bookmarks'",
713 713
             'title'       => "'{$language}BOOKMARKS'",
714 714
             'description' => "'{$language}BOOKMARKS_DESC'",
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
         $ret              .= $uCodeVConfig->getUserModVersion(3, $facebookComments, 'config', '$c');
731 731
         $ret              .= $this->getSimpleString('++$c;');
732 732
         $ret              .= $phpCodeVConfig->getPhpCodeCommentLine('Disqus Comments');
733
-        $disqusComments   = [
733
+        $disqusComments = [
734 734
             'name'        => "'disqus_comments'",
735 735
             'title'       => "'{$language}DISQUS_COMMENTS'",
736 736
             'description' => "'{$language}DISQUS_COMMENTS_DESC'",
@@ -741,7 +741,7 @@  discard block
 block discarded – undo
741 741
         $ret              .= $uCodeVConfig->getUserModVersion(3, $disqusComments, 'config', '$c');
742 742
         $ret              .= $this->getSimpleString('++$c;');
743 743
         $ret              .= $phpCodeVConfig->getPhpCodeCommentLine('Maintained by');
744
-        $maintainedby     = [
744
+        $maintainedby = [
745 745
             'name'        => "'maintainedby'",
746 746
             'title'       => "'{$language}MAINTAINEDBY'",
747 747
             'description' => "'{$language}MAINTAINEDBY_DESC'",
@@ -777,7 +777,7 @@  discard block
 block discarded – undo
777 777
         $ret             = '';
778 778
         switch ($type) {
779 779
             case 'category':
780
-                $ret      .= $phpCodeNType->getPhpCodeCommentLine('Category Notify');
780
+                $ret .= $phpCodeNType->getPhpCodeCommentLine('Category Notify');
781 781
                 $category = [
782 782
                     'name'             => "'category'",
783 783
                     'title'            => "'{$language}{$stuTableName}_NOTIFY'",
@@ -786,10 +786,10 @@  discard block
 block discarded – undo
786 786
                     'item_name'        => "'{$item}'",
787 787
                     "'allow_bookmark'" => '1',
788 788
                 ];
789
-                $ret      .= $uCodeNType->getUserModVersion(3, $category, 'notification', "'{$type}'");
789
+                $ret .= $uCodeNType->getUserModVersion(3, $category, 'notification', "'{$type}'");
790 790
                 break;
791 791
             case 'event':
792
-                $ret   .= $phpCodeNType->getPhpCodeCommentLine('Event Notify');
792
+                $ret .= $phpCodeNType->getPhpCodeCommentLine('Event Notify');
793 793
                 $event = [
794 794
                     'name'          => "'{$typeOfNotify}'",
795 795
                     'category'      => "'{$tableName}'",
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
                     'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'",
801 801
                     'mail_subject'  => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'",
802 802
                 ];
803
-                $ret   .= $uCodeNType->getUserModVersion(3, $event, 'notification', "'{$type}'");
803
+                $ret .= $uCodeNType->getUserModVersion(3, $event, 'notification', "'{$type}'");
804 804
                 break;
805 805
         }
806 806
 
@@ -873,25 +873,25 @@  discard block
 block discarded – undo
873 873
             $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'new_category', 'global', 0, 'global_new_category', $tableSoleName, 'global_newcategory_notify', $num);
874 874
             ++$num;
875 875
         }
876
-        $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'modify', 'global', 1, 'global_modify', $tableSoleName, 'global_' . 'modify_notify', $num);
876
+        $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'modify', 'global', 1, 'global_modify', $tableSoleName, 'global_'.'modify_notify', $num);
877 877
         if (in_array(1, $tableBroken)) {
878 878
             ++$num;
879
-            $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'broken', 'global', 1, 'global_broken', $tableSoleName, 'global_' . 'broken_notify', $num);
879
+            $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'broken', 'global', 1, 'global_broken', $tableSoleName, 'global_'.'broken_notify', $num);
880 880
         }
881 881
         if (in_array(1, $tableSubmit)) {
882 882
             ++$num;
883
-            $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'submit', 'global', 1, 'global_submit', $tableSoleName, 'global_' . 'submit_notify', $num);
883
+            $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'submit', 'global', 1, 'global_submit', $tableSoleName, 'global_'.'submit_notify', $num);
884 884
         }
885 885
         ++$num;
886
-        $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'new_' . $tableSoleName, 'global', 0, 'global_new', $tableSoleName, 'global_new' . $tableSoleName . '_notify', $num);
886
+        $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'new_'.$tableSoleName, 'global', 0, 'global_new', $tableSoleName, 'global_new'.$tableSoleName.'_notify', $num);
887 887
         if (in_array(1, $tableCategory)) {
888 888
             ++$num;
889
-            $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'submit', 'category', 1, 'category_submit', $tableSoleName, 'category_' . $tableSoleName . 'submit_notify', $num);
889
+            $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'submit', 'category', 1, 'category_submit', $tableSoleName, 'category_'.$tableSoleName.'submit_notify', $num);
890 890
             ++$num;
891
-            $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'new_category', 'category', 0, 'category', $tableSoleName, 'category_new' . $tableSoleName . '_notify', $num);
891
+            $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'new_category', 'category', 0, 'category', $tableSoleName, 'category_new'.$tableSoleName.'_notify', $num);
892 892
         }
893 893
         ++$num;
894
-        $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'approve', $tableSoleName, 1, $tableSoleName, $tableSoleName, $tableSoleName . '_approve_notify', $num);
894
+        $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'approve', $tableSoleName, 1, $tableSoleName, $tableSoleName, $tableSoleName.'_approve_notify', $num);
895 895
         unset($num);
896 896
 
897 897
         return $ret;
@@ -921,7 +921,7 @@  discard block
 block discarded – undo
921 921
             'description'    => "{$language}{$title}_NOTIFY_DESC",
922 922
             'subscribe_from' => "array('index.php', '{$implodeFrom}.php')",
923 923
         ];
924
-        $ret         .= $uCodeVNG->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
924
+        $ret .= $uCodeVNG->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
925 925
 
926 926
         return $ret;
927 927
     }
@@ -953,7 +953,7 @@  discard block
 block discarded – undo
953 953
             'item_name'      => "'{$item}'",
954 954
             'allow_bookmark' => (string)$allow,
955 955
         ];
956
-        $ret        .= $uCodeVNC->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
956
+        $ret .= $uCodeVNC->getUserModVersion(4, $global, 'notification', "'{$type}'", $num);
957 957
 
958 958
         return $ret;
959 959
     }
@@ -977,7 +977,7 @@  discard block
 block discarded – undo
977 977
         $uCodeVNTN   = UserXoopsCode::getInstance();
978 978
         $stuTitle    = mb_strtoupper($title);
979 979
         $ucfTitle    = ucfirst($title);
980
-        $ret         = $phpCodeVNTN->getPhpCodeCommentLine($ucfTitle . ' Notify');
980
+        $ret         = $phpCodeVNTN->getPhpCodeCommentLine($ucfTitle.' Notify');
981 981
         $table       = [
982 982
             'name'           => "'{$name}'",
983 983
             'title'          => "{$language}{$stuTitle}_NOTIFY",
@@ -986,7 +986,7 @@  discard block
 block discarded – undo
986 986
             'item_name'      => "'{$item}'",
987 987
             'allow_bookmark' => (string)$allow,
988 988
         ];
989
-        $ret         .= $uCodeVNTN->getUserModVersion(4, $table, 'notification', "'{$type}'", $num);
989
+        $ret .= $uCodeVNTN->getUserModVersion(4, $table, 'notification', "'{$type}'", $num);
990 990
 
991 991
         return $ret;
992 992
     }
@@ -1012,7 +1012,7 @@  discard block
 block discarded – undo
1012 1012
         $title       = mb_strtoupper($title);
1013 1013
         $table       = mb_strtoupper($table);
1014 1014
         $ucfTitle    = ucfirst($title);
1015
-        $ret         = $phpCodeVNCC->getPhpCodeCommentLine($ucfTitle . ' Notify');
1015
+        $ret         = $phpCodeVNCC->getPhpCodeCommentLine($ucfTitle.' Notify');
1016 1016
         $event       = [
1017 1017
             'name'          => "'{$name}'",
1018 1018
             'category'      => "'{$category}'",
@@ -1023,7 +1023,7 @@  discard block
 block discarded – undo
1023 1023
             'mail_template' => "'{$mail}'",
1024 1024
             'mail_subject'  => "{$language}{$title}_NOTIFY_SUBJECT",
1025 1025
         ];
1026
-        $ret         .= $uCodeVNCC->getUserModVersion(4, $event, 'notification', "'{$type}'", $num);
1026
+        $ret .= $uCodeVNCC->getUserModVersion(4, $event, 'notification', "'{$type}'", $num);
1027 1027
 
1028 1028
         return $ret;
1029 1029
     }
@@ -1042,14 +1042,14 @@  discard block
 block discarded – undo
1042 1042
         $moduleDirname = $module->getVar('mod_dirname');
1043 1043
         $language      = $this->getLanguage($moduleDirname, 'MI');
1044 1044
         $content       = $this->getHeaderFilesComments($module, $filename);
1045
-        $content       .= $this->getXoopsVersionHeader($module, $language);
1045
+        $content .= $this->getXoopsVersionHeader($module, $language);
1046 1046
         if (1 == $module->getVar('mod_admin')) {
1047 1047
             $content .= $this->getXoopsVersionTemplatesAdmin($moduleDirname, $tables);
1048 1048
         }
1049 1049
         if (1 == $module->getVar('mod_user')) {
1050 1050
             $content .= $this->getXoopsVersionTemplatesUser($moduleDirname, $tables);
1051 1051
         }
1052
-        $content            .= $this->getXoopsVersionMySQL($moduleDirname, $table, $tables);
1052
+        $content .= $this->getXoopsVersionMySQL($moduleDirname, $table, $tables);
1053 1053
         $tableSearch        = [];
1054 1054
         $tableComments      = [];
1055 1055
         $tableSubmenu       = [];
Please login to merge, or discard this patch.