Passed
Push — master ( 834a16...1c3825 )
by Goffy
09:06 queued 04:27
created
class/Building.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $form->addElement(new \XoopsFormRadioYN(_AM_TDMCREATE_MODULE_INROOT_COPY, 'inroot_copy', $helper->getConfig('inroot_copy')));
74 74
         
75 75
         $form->addElement(new \XoopsFormHidden('op', 'build'));
76
-        $form->addElement(new \XoopsFormButton(_REQUIRED . ' <sup class="red bold">*</sup>', 'submit', _SUBMIT, 'submit'));
76
+        $form->addElement(new \XoopsFormButton(_REQUIRED.' <sup class="red bold">*</sup>', 'submit', _SUBMIT, 'submit'));
77 77
 
78 78
         return $form;
79 79
     }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     public function clearDir($dir, $pattern = '*')
86 86
     {
87 87
         // Find all files and folders matching pattern
88
-        $files = glob($dir . "/$pattern");
88
+        $files = glob($dir."/$pattern");
89 89
         // Interate thorugh the files and folders
90 90
         foreach ($files as $file) {
91 91
             // if it's a directory then re-call clearDir function to delete files inside this directory
@@ -112,12 +112,12 @@  discard block
 block discarded – undo
112 112
         }
113 113
         while (false !== ($file = readdir($dir))) {
114 114
             if (('.' !== $file) && ('..' !== $file)) {
115
-                if (is_dir($src . '/' . $file)) {
115
+                if (is_dir($src.'/'.$file)) {
116 116
                     // Copy the directory itself
117
-                    $this->copyDir($src . '/' . $file, $dst . '/' . $file);
117
+                    $this->copyDir($src.'/'.$file, $dst.'/'.$file);
118 118
                 } else {
119 119
                     // Make sure you copy the current script
120
-                    copy($src . '/' . $file, $dst . '/' . $file);
120
+                    copy($src.'/'.$file, $dst.'/'.$file);
121 121
                 }
122 122
             }
123 123
         }
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 $modversion['release_info']        = 'README';
41 41
 $modversion['release_file']        = 'https://github.com/txmodxoops/tdmcreate-1.91/releases';
42 42
 $modversion['manual']              = 'MANUAL';
43
-$modversion['manual_file']         = XOOPS_URL . "/modules/{$moduleDirName}/docs/manual.txt";
43
+$modversion['manual_file']         = XOOPS_URL."/modules/{$moduleDirName}/docs/manual.txt";
44 44
 $modversion['image']               = "assets/images/logoModule.png";
45 45
 $modversion['dirname']             = $moduleDirName;
46 46
 // Frameworks icons
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 // Module icons
51 51
 $modversion['modicons16']          = 'assets/images/icons/16';
52 52
 $modversion['modicons32']          = 'assets/images/icons/32';
53
-$modversion['targetdir']           = XOOPS_UPLOAD_PATH . "/{$moduleDirName}/repository/";
53
+$modversion['targetdir']           = XOOPS_UPLOAD_PATH."/{$moduleDirName}/repository/";
54 54
 $modversion['module_website_url']  = 'https://github.com/txmodxoops/tdmcreate-1.91';
55 55
 $modversion['module_website_name'] = 'GitHub Txmodx Xoops';
56 56
 $modversion['min_php']             = '7.0';
@@ -86,17 +86,17 @@  discard block
 block discarded – undo
86 86
 $modversion['sqlfile']['mysql'] = 'sql/mysql.sql';
87 87
 // Tables created by sql file (without prefix!)
88 88
 $modversion['tables'] = [
89
-    $moduleDirName . '_' . 'settings',
90
-    $moduleDirName . '_' . 'modules',
91
-    $moduleDirName . '_' . 'tables',
92
-    $moduleDirName . '_' . 'fields',
93
-    $moduleDirName . '_' . 'languages',
94
-    $moduleDirName . '_' . 'fieldtype',
95
-    $moduleDirName . '_' . 'fieldattributes',
96
-    $moduleDirName . '_' . 'fieldnull',
97
-    $moduleDirName . '_' . 'fieldkey',
98
-    $moduleDirName . '_' . 'fieldelements',
99
-    $moduleDirName . '_' . 'morefiles',
89
+    $moduleDirName.'_'.'settings',
90
+    $moduleDirName.'_'.'modules',
91
+    $moduleDirName.'_'.'tables',
92
+    $moduleDirName.'_'.'fields',
93
+    $moduleDirName.'_'.'languages',
94
+    $moduleDirName.'_'.'fieldtype',
95
+    $moduleDirName.'_'.'fieldattributes',
96
+    $moduleDirName.'_'.'fieldnull',
97
+    $moduleDirName.'_'.'fieldkey',
98
+    $moduleDirName.'_'.'fieldelements',
99
+    $moduleDirName.'_'.'morefiles',
100 100
 ];
101 101
 // Scripts to run upon installation or update
102 102
 $modversion['onInstall'] = 'include/install.php';
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 $c = 1;
108 108
 
109 109
 $modversion['config'][] = [
110
-    'name'        => 'break' . $c,
110
+    'name'        => 'break'.$c,
111 111
     'title'       => '_MI_TDMCREATE_CONFIG_BREAK_GENERAL',
112 112
     'description' => '_MI_TDMCREATE_CONFIG_',
113 113
     'formtype'    => 'line_break',
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 
196 196
 ++$c;
197 197
 $modversion['config'][] = [
198
-    'name'        => 'break' . $c,
198
+    'name'        => 'break'.$c,
199 199
     'title'       => '_MI_TDMCREATE_CONFIG_BREAK_REQUIRED',
200 200
     'description' => '_MI_TDMCREATE_CONFIG_',
201 201
     'formtype'    => 'line_break',
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 
377 377
 ++$c;
378 378
 $modversion['config'][] = [
379
-    'name'        => 'break' . $c,
379
+    'name'        => 'break'.$c,
380 380
     'title'       => '_MI_TDMCREATE_CONFIG_BREAK_OPTIONAL',
381 381
     'description' => '_MI_TDMCREATE_CONFIG_',
382 382
     'formtype'    => 'line_break',
@@ -580,8 +580,8 @@  discard block
 block discarded – undo
580 580
  */
581 581
 $modversion['config'][] = [
582 582
     'name'        => 'displaySampleButton',
583
-    'title'       => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON',
584
-    'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC',
583
+    'title'       => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON',
584
+    'description' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON_DESC',
585 585
     'formtype'    => 'yesno',
586 586
     'valuetype'   => 'int',
587 587
     'default'     => 1,
@@ -592,8 +592,8 @@  discard block
 block discarded – undo
592 592
  */
593 593
 $modversion['config'][] = [
594 594
     'name'        => 'displayDeveloperTools',
595
-    'title'       => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS',
596
-    'description' => 'CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC',
595
+    'title'       => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS',
596
+    'description' => 'CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS_DESC',
597 597
     'formtype'    => 'yesno',
598 598
     'valuetype'   => 'int',
599 599
     'default'     => 0,
Please login to merge, or discard this patch.
admin/moremymodule.php 1 patch
Spacing   +6 added lines, -6 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_moremymodule.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($mymodule);
61 61
             }
62 62
             if ($moremymoduleCount > $limit) {
63
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
64
-                $pagenav = new \XoopsPageNav($moremymoduleCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
63
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
64
+                $pagenav = new \XoopsPageNav($moremymoduleCount, $limit, $start, 'start', 'op=list&limit='.$limit);
65 65
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
66 66
             }
67 67
         } else {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left'));
76 76
 
77 77
         $moremymoduleObj = $helper->getHandler('Moremymodule')->create();
78
-        $form         = $moremymoduleObj->getFormMoreMymodule();
78
+        $form = $moremymoduleObj->getFormMoreMymodule();
79 79
         $GLOBALS['xoopsTpl']->assign('form', $form->render());
80 80
         break;
81 81
     case 'save':
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left'));
120 120
 
121 121
         $moremymoduleObj = $helper->getHandler('Moremymodule')->get($fileId);
122
-        $form         = $moremymoduleObj->getFormMoreMymodule();
122
+        $form = $moremymoduleObj->getFormMoreMymodule();
123 123
         $GLOBALS['xoopsTpl']->assign('form', $form->render());
124 124
         break;
125 125
     case 'delete':
@@ -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/addmymodule.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
  */
24 24
 $GLOBALS['xoopsOption']['template_main'] = 'tdmcreate_addmymodule.tpl';
25 25
 
26
-include __DIR__ . '/header.php';
26
+include __DIR__.'/header.php';
27 27
 // Recovered value of argument op in the URL $
28 28
 $op = \Xmf\Request::getString('op', 'list');
29 29
 
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
                 unset($mymodule);
61 61
             }
62 62
             if ($addmymoduleCount > $limit) {
63
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
64
-                $pagenav = new \XoopsPageNav($addmymoduleCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
63
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
64
+                $pagenav = new \XoopsPageNav($addmymoduleCount, $limit, $start, 'start', 'op=list&limit='.$limit);
65 65
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
66 66
             }
67 67
         } else {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left'));
78 78
 
79 79
         $addmymoduleObj = $helper->getHandler('Addmymodule')->create();
80
-        $form        = $addmymoduleObj->getFormAddMymodule();
80
+        $form = $addmymoduleObj->getFormAddMymodule();
81 81
         $GLOBALS['xoopsTpl']->assign('form', $form->render());
82 82
         break;
83 83
     case 'save':
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left'));
122 122
 
123 123
         $addmymoduleObj = $helper->getHandler('Addmymodule')->get($fileId);
124
-        $form        = $addmymoduleObj->getFormAddMymodule();
124
+        $form = $addmymoduleObj->getFormAddMymodule();
125 125
         $GLOBALS['xoopsTpl']->assign('form', $form->render());
126 126
         break;
127 127
     case 'delete':
@@ -141,4 +141,4 @@  discard block
 block discarded – undo
141 141
         break;
142 142
 }
143 143
 
144
-include __DIR__ . '/footer.php';
144
+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_image'), $helper->getConfig('maxsize_image'), 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.
admin/modules.php 1 patch
Spacing   +9 added lines, -9 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_modules.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
 $modId = \Xmf\Request::getInt('mod_id');
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left'));
43 43
         $GLOBALS['xoopsTpl']->assign('tdmc_url', TDMC_URL);
44 44
         $GLOBALS['xoopsTpl']->assign('tdmc_upload_imgmod_url', TDMC_UPLOAD_IMGMOD_URL);
45
-        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16);
45
+        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16);
46 46
         $modulesCount = $helper->getHandler('Modules')->getCountModules();
47 47
         $modulesAll   = $helper->getHandler('Modules')->getAllModules($start, $limit);
48 48
         // Redirect if there aren't modules
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
                 unset($module);
58 58
             }
59 59
             if ($modulesCount > $limit) {
60
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
61
-                $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
60
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
61
+                $pagenav = new \XoopsPageNav($modulesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
62 62
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
63 63
             }
64 64
         } else {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
             ]
112 112
         );
113 113
         //Form mod_image
114
-        include_once XOOPS_ROOT_PATH . '/class/uploader.php';
114
+        include_once XOOPS_ROOT_PATH.'/class/uploader.php';
115 115
         $uploader = new \XoopsMediaUploader(
116 116
             TDMC_UPLOAD_IMGMOD_PATH, $helper->getConfig('mimetypes_image'), $helper->getConfig('maxsize_image'), null, null
117 117
         );
@@ -196,9 +196,9 @@  discard block
 block discarded – undo
196 196
         if ($id > 0) {
197 197
             $modulesObj = $helper->getHandler('Modules')->get($id);
198 198
             foreach ($modFieldArray as $moduleField) {
199
-                if (isset($_POST['mod_' . $moduleField])) {
200
-                    $modField = $modulesObj->getVar('mod_' . $moduleField);
201
-                    $modulesObj->setVar('mod_' . $moduleField, !$modField);
199
+                if (isset($_POST['mod_'.$moduleField])) {
200
+                    $modField = $modulesObj->getVar('mod_'.$moduleField);
201
+                    $modulesObj->setVar('mod_'.$moduleField, !$modField);
202 202
                 }
203 203
             }
204 204
             if ($helper->getHandler('Modules')->insert($modulesObj)) {
@@ -209,5 +209,5 @@  discard block
 block discarded – undo
209 209
         break;
210 210
 }
211 211
 
212
-include __DIR__ . '/footer.php';
212
+include __DIR__.'/footer.php';
213 213
 
Please login to merge, or discard this patch.
commonfiles/preloads/core.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,6 +27,6 @@
 block discarded – undo
27 27
      */
28 28
     public static function eventCoreIncludeCommonEnd($args)
29 29
     {
30
-        include __DIR__ . '/autoloader.php';
30
+        include __DIR__.'/autoloader.php';
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
commonfiles/preloads/autoloader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@  discard block
 block discarded – undo
4 4
  * @see http://www.php-fig.org/psr/psr-4/examples/
5 5
  */
6 6
 spl_autoload_register(
7
-    static function ($class) {
7
+    static function($class) {
8 8
         // project-specific namespace prefix
9
-        $prefix = 'XoopsModules\\' . ucfirst(basename(dirname(__DIR__)));
9
+        $prefix = 'XoopsModules\\'.ucfirst(basename(dirname(__DIR__)));
10 10
 
11 11
         // base directory for the namespace prefix
12
-        $baseDir = __DIR__ . '/../class/';
12
+        $baseDir = __DIR__.'/../class/';
13 13
 
14 14
         // does the class use the namespace prefix?
15 15
         $len = mb_strlen($prefix);
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         // replace the namespace prefix with the base directory, replace namespace
25 25
         // separators with directory separators in the relative class name, append
26 26
         // with .php
27
-        $file = $baseDir . str_replace('\\', '/', $relativeClass) . '.php';
27
+        $file = $baseDir.str_replace('\\', '/', $relativeClass).'.php';
28 28
 
29 29
         // if the file exists, require it
30 30
         if (file_exists($file)) {
Please login to merge, or discard this patch.
commonfiles/admin/feedback.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 use Xmf\Request;
23 23
 
24
-include __DIR__ . '/header.php';
24
+include __DIR__.'/header.php';
25 25
 
26 26
 $adminObject = \Xmf\Module\Admin::getInstance();
27 27
 
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
         $fb_content = Request::getText('fb_content', '');
61 61
         $fb_content = str_replace(["\r\n", "\n", "\r"], '<br>', $fb_content); //clean line break from dhtmltextarea
62 62
 
63
-        $title       = constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_FOR') . $GLOBALS['xoopsModule']->getVar('dirname');
64
-        $body        = constant('CO_' . $moduleDirNameUpper . '_' . 'FB_NAME') . ': ' . $your_name . '<br>';
65
-        $body        .= constant('CO_' . $moduleDirNameUpper . '_' . 'FB_MAIL') . ': ' . $your_mail . '<br>';
66
-        $body        .= constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SITE') . ': ' . $your_site . '<br>';
67
-        $body        .= constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE') . ': ' . $fb_type . '<br><br>';
68
-        $body        .= constant('CO_' . $moduleDirNameUpper . '_' . 'FB_TYPE_CONTENT') . ':<br>';
63
+        $title       = constant('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_FOR').$GLOBALS['xoopsModule']->getVar('dirname');
64
+        $body        = constant('CO_'.$moduleDirNameUpper.'_'.'FB_NAME').': '.$your_name.'<br>';
65
+        $body        .= constant('CO_'.$moduleDirNameUpper.'_'.'FB_MAIL').': '.$your_mail.'<br>';
66
+        $body        .= constant('CO_'.$moduleDirNameUpper.'_'.'FB_SITE').': '.$your_site.'<br>';
67
+        $body        .= constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE').': '.$fb_type.'<br><br>';
68
+        $body        .= constant('CO_'.$moduleDirNameUpper.'_'.'FB_TYPE_CONTENT').':<br>';
69 69
         $body        .= $fb_content;
70 70
         $xoopsMailer = xoops_getMailer();
71 71
         $xoopsMailer->useMail();
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $xoopsMailer->setBody($body);
78 78
         $ret = $xoopsMailer->send();
79 79
         if ($ret) {
80
-            redirect_header('index.php', 3, constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_SUCCESS'));
80
+            redirect_header('index.php', 3, constant('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_SUCCESS'));
81 81
         }
82 82
 
83 83
         // show form with content again
@@ -87,11 +87,11 @@  discard block
 block discarded – undo
87 87
         $feedback->type    = $fb_type;
88 88
         $feedback->content = $fb_content;
89 89
         echo '<div style="text-align:center;width: 80%; padding: 10px; border: 2px solid #ff0000; color: #ff0000; margin-right:auto;margin-left:auto;">
90
-            <h3>' . constant('CO_' . $moduleDirNameUpper . '_' . 'FB_SEND_ERROR') . '</h3>
90
+            <h3>' . constant('CO_'.$moduleDirNameUpper.'_'.'FB_SEND_ERROR').'</h3>
91 91
             </div>';
92 92
         $form = $feedback->getFormFeedback();
93 93
         $form->display();
94 94
 
95 95
         break;
96 96
 }
97
-require __DIR__ . '/footer.php';
97
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.