Passed
Push — master ( 834a16...1c3825 )
by Goffy
09:06 queued 04:27
created
testdata/index.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,8 +119,7 @@
 block discarded – undo
119 119
         //        $migrate->saveCurrentSchema();
120 120
         //
121 121
         //        redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS'));
122
-    }
123
-    catch (\Exception $e) {
122
+    } catch (\Exception $e) {
124 123
         exit(constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR'));
125 124
     }
126 125
 
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
 
105 105
     $languageFolder = __DIR__ . '/' . $language;
106 106
     if (!file_exists($languageFolder . '/')) {
107
-       Utility::createFolder($languageFolder . '/');
107
+        Utility::createFolder($languageFolder . '/');
108 108
     }
109 109
     $exportFolder = $languageFolder . '/Exports-' . date('Y-m-d-H-i-s') . '/';
110 110
     Utility::createFolder($exportFolder);
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 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
         if (is_array($tabledata)) {
73 73
         \Xmf\Database\TableLoad::truncateTable($table);
74 74
         \Xmf\Database\TableLoad::loadTableFromArray($table, $tabledata);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             $utility::rcopy($src, $dest);
84 84
         }
85 85
     }
86
-    redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS'));
86
+    redirect_header('../admin/index.php', 1, constant('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS'));
87 87
 }
88 88
 
89 89
 function saveSampleData()
@@ -98,19 +98,19 @@  discard block
 block discarded – undo
98 98
     $tables = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getInfo('tables');
99 99
 
100 100
     $language = 'english/';
101
-    if (is_dir(__DIR__ . '/' . $xoopsConfig['language'])) {
102
-        $language = $xoopsConfig['language'] . '/';
101
+    if (is_dir(__DIR__.'/'.$xoopsConfig['language'])) {
102
+        $language = $xoopsConfig['language'].'/';
103 103
     }
104 104
 
105
-    $languageFolder = __DIR__ . '/' . $language;
106
-    if (!file_exists($languageFolder . '/')) {
107
-       Utility::createFolder($languageFolder . '/');
105
+    $languageFolder = __DIR__.'/'.$language;
106
+    if (!file_exists($languageFolder.'/')) {
107
+       Utility::createFolder($languageFolder.'/');
108 108
     }
109
-    $exportFolder = $languageFolder . '/Exports-' . date('Y-m-d-H-i-s') . '/';
109
+    $exportFolder = $languageFolder.'/Exports-'.date('Y-m-d-H-i-s').'/';
110 110
     Utility::createFolder($exportFolder);
111 111
 
112 112
     foreach ($tables as $table) {
113
-        \Xmf\Database\TableLoad::saveTableToYamlFile($table, $exportFolder . $table . '.yml');
113
+        \Xmf\Database\TableLoad::saveTableToYamlFile($table, $exportFolder.$table.'.yml');
114 114
     }
115 115
     
116 116
     //  ---  COPY test folder files ---------------
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             Utility::rcopy($src, $dest);
122 122
         }
123 123
     }
124
-    redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS'));
124
+    redirect_header('../admin/index.php', 1, constant('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS'));
125 125
 }
126 126
 
127 127
 function exportSchema()
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         //        redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS'));
138 138
     }
139 139
     catch (\Exception $e) {
140
-        exit(constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR'));
140
+        exit(constant('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR'));
141 141
     }
142 142
 
143 143
 }
Please login to merge, or discard this patch.
admin/migrate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 use Xmf\Request;
33 33
 use XoopsModules\Tdmcreate;
34 34
 
35
-require_once __DIR__ . '/header.php';
35
+require_once __DIR__.'/header.php';
36 36
 //xoops_cp_header();
37 37
 
38 38
 $adminObject->displayNavigation(basename(__FILE__));
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         if (!empty($queue)) {
76 76
             echo "<pre>\n";
77 77
             foreach ($queue as $line) {
78
-                echo $line . ";\n";
78
+                echo $line.";\n";
79 79
             }
80 80
             echo "</pre>\n";
81 81
         }
@@ -97,4 +97,4 @@  discard block
 block discarded – undo
97 97
 
98 98
 echo "<div>$message</div>";
99 99
 
100
-require_once __DIR__ . '/footer.php';
100
+require_once __DIR__.'/footer.php';
Please login to merge, or discard this patch.
include/common.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
  */
23 23
 
24 24
 use XoopsModules\Tdmcreate;
25
-include dirname(__DIR__) . '/preloads/autoloader.php';
25
+include dirname(__DIR__).'/preloads/autoloader.php';
26 26
 
27 27
 $moduleDirName = basename(dirname(__DIR__));
28 28
 $moduleDirNameUpper = mb_strtoupper($moduleDirName); //$capsDirName
@@ -31,37 +31,37 @@  discard block
 block discarded – undo
31 31
 $dirname = $GLOBALS['xoopsModule']->getVar('dirname');
32 32
 // Root Frameworks icons 32x32 directory
33 33
 if (!defined('XOOPS_ICONS32_PATH')) {
34
-    define('XOOPS_ICONS32_PATH', XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32');
34
+    define('XOOPS_ICONS32_PATH', XOOPS_ROOT_PATH.'/Frameworks/moduleclasses/icons/32');
35 35
 }
36 36
 if (!defined('XOOPS_ICONS32_URL')) {
37
-    define('XOOPS_ICONS32_URL', XOOPS_URL . '/Frameworks/moduleclasses/icons/32');
37
+    define('XOOPS_ICONS32_URL', XOOPS_URL.'/Frameworks/moduleclasses/icons/32');
38 38
 }
39 39
 // Local Directories
40
-define('TDMC_PATH', XOOPS_ROOT_PATH . '/modules/' . $dirname);
41
-define('TDMC_URL', XOOPS_URL . '/modules/' . $dirname);
42
-define('TDMC_CLASS_PATH', TDMC_PATH . '/class');
43
-define('TDMC_CLASS_URL', TDMC_URL . '/class');
44
-define('TDMC_DOCS_PATH', TDMC_PATH . '/docs');
45
-define('TDMC_DOCS_URL', TDMC_URL . '/docs');
46
-define('TDMC_FONTS_PATH', TDMC_PATH . '/assets/fonts');
47
-define('TDMC_FONTS_URL', TDMC_URL . '/assets/fonts');
48
-define('TDMC_IMAGE_PATH', TDMC_PATH . '/assets/images');
49
-define('TDMC_IMAGE_URL', TDMC_URL . '/assets/images');
50
-define('TDMC_IMAGES_LOGOS_PATH', TDMC_PATH . '/assets/images/logos');
51
-define('TDMC_IMAGES_LOGOS_URL', TDMC_URL . '/assets/images/logos');
52
-define('TDMC_ICONS_PATH', TDMC_PATH . '/assets/icons');
53
-define('TDMC_ICONS_URL', TDMC_URL . '/assets/icons');
54
-define($moduleDirNameUpper . '_AUTHOR_LOGOIMG', TDMC_URL . '/assets/images/logoModule.png');
40
+define('TDMC_PATH', XOOPS_ROOT_PATH.'/modules/'.$dirname);
41
+define('TDMC_URL', XOOPS_URL.'/modules/'.$dirname);
42
+define('TDMC_CLASS_PATH', TDMC_PATH.'/class');
43
+define('TDMC_CLASS_URL', TDMC_URL.'/class');
44
+define('TDMC_DOCS_PATH', TDMC_PATH.'/docs');
45
+define('TDMC_DOCS_URL', TDMC_URL.'/docs');
46
+define('TDMC_FONTS_PATH', TDMC_PATH.'/assets/fonts');
47
+define('TDMC_FONTS_URL', TDMC_URL.'/assets/fonts');
48
+define('TDMC_IMAGE_PATH', TDMC_PATH.'/assets/images');
49
+define('TDMC_IMAGE_URL', TDMC_URL.'/assets/images');
50
+define('TDMC_IMAGES_LOGOS_PATH', TDMC_PATH.'/assets/images/logos');
51
+define('TDMC_IMAGES_LOGOS_URL', TDMC_URL.'/assets/images/logos');
52
+define('TDMC_ICONS_PATH', TDMC_PATH.'/assets/icons');
53
+define('TDMC_ICONS_URL', TDMC_URL.'/assets/icons');
54
+define($moduleDirNameUpper.'_AUTHOR_LOGOIMG', TDMC_URL.'/assets/images/logoModule.png');
55 55
 // Uploads Directories
56
-define('TDMC_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . $dirname);
57
-define('TDMC_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . $dirname);
58
-define('TDMC_UPLOAD_REPOSITORY_PATH', TDMC_UPLOAD_PATH . '/repository');
59
-define('TDMC_UPLOAD_REPOSITORY_URL', TDMC_UPLOAD_URL . '/repository');
60
-define('TDMC_UPLOAD_IMGMOD_PATH', TDMC_UPLOAD_PATH . '/images/modules');
61
-define('TDMC_UPLOAD_IMGMOD_URL', TDMC_UPLOAD_URL . '/images/modules');
62
-define('TDMC_UPLOAD_IMGTAB_PATH', TDMC_UPLOAD_PATH . '/images/tables');
63
-define('TDMC_UPLOAD_IMGTAB_URL', TDMC_UPLOAD_URL . '/images/tables');
56
+define('TDMC_UPLOAD_PATH', XOOPS_UPLOAD_PATH.'/'.$dirname);
57
+define('TDMC_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.$dirname);
58
+define('TDMC_UPLOAD_REPOSITORY_PATH', TDMC_UPLOAD_PATH.'/repository');
59
+define('TDMC_UPLOAD_REPOSITORY_URL', TDMC_UPLOAD_URL.'/repository');
60
+define('TDMC_UPLOAD_IMGMOD_PATH', TDMC_UPLOAD_PATH.'/images/modules');
61
+define('TDMC_UPLOAD_IMGMOD_URL', TDMC_UPLOAD_URL.'/images/modules');
62
+define('TDMC_UPLOAD_IMGTAB_PATH', TDMC_UPLOAD_PATH.'/images/tables');
63
+define('TDMC_UPLOAD_IMGTAB_URL', TDMC_UPLOAD_URL.'/images/tables');
64 64
 // Xoops Request
65
-include_once XOOPS_ROOT_PATH . '/class/xoopsrequest.php';
66
-include_once TDMC_PATH . '/include/functions.php';
67
-include_once TDMC_PATH . '/class/helper.php';
65
+include_once XOOPS_ROOT_PATH.'/class/xoopsrequest.php';
66
+include_once TDMC_PATH.'/include/functions.php';
67
+include_once TDMC_PATH.'/class/helper.php';
Please login to merge, or discard this patch.
class/Common/Migrate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
                 $this->synchronizeTable($tableName);
92 92
                 $updateTable = $GLOBALS['xoopsDB']->prefix($tableName);
93 93
                 $joinTable   = $GLOBALS['xoopsDB']->prefix($srcTableName);
94
-                $sql         = "UPDATE `$updateTable` t1 INNER JOIN `$joinTable` t2 ON t1.post_id = t2.post_id \n" . "SET t1.dohtml = t2.dohtml,  t1.dosmiley = t2.dosmiley, t1.doxcode = t2.doxcode\n" . '  , t1.doimage = t2.doimage, t1.dobr = t2.dobr';
94
+                $sql         = "UPDATE `$updateTable` t1 INNER JOIN `$joinTable` t2 ON t1.post_id = t2.post_id \n"."SET t1.dohtml = t2.dohtml,  t1.dosmiley = t2.dosmiley, t1.doxcode = t2.doxcode\n".'  , t1.doimage = t2.doimage, t1.dobr = t2.dobr';
95 95
                 $this->tableHandler->addToQueue($sql);
96 96
             }
97 97
         }
Please login to merge, or discard this patch.
class/Common/Configurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         //        require dirname(dirname(__DIR__)) . '/config/config.php';
52 52
         //        $config = getConfig();
53 53
 
54
-        $config = include dirname(dirname(__DIR__)) . '/config/config.php';
54
+        $config = include dirname(dirname(__DIR__)).'/config/config.php';
55 55
 
56 56
         $this->name            = $config->name;
57 57
         $this->paths           = $config->paths;
Please login to merge, or discard this patch.
language/english/common.php 1 patch
Spacing   +118 added lines, -118 removed lines patch added patch discarded remove patch
@@ -21,129 +21,129 @@  discard block
 block discarded – undo
21 21
 $moduleDirName      = basename(dirname(dirname(__DIR__)));
22 22
 $moduleDirNameUpper = mb_strtoupper($moduleDirName);
23 23
 
24
-define('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS', 'GD library support: ');
25
-define('CO_' . $moduleDirNameUpper . '_GDLIBVERSION', 'GD Library version: ');
26
-define('CO_' . $moduleDirNameUpper . '_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)");
27
-define('CO_' . $moduleDirNameUpper . '_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)");
28
-define('CO_' . $moduleDirNameUpper . '_IMAGEINFO', 'Server status');
29
-define('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): ');
30
-define('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): ');
31
-define('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): ');
32
-define('CO_' . $moduleDirNameUpper . '_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> ");
33
-define('CO_' . $moduleDirNameUpper . '_OFF', "<span style='font-weight: bold;'>OFF</span>");
34
-define('CO_' . $moduleDirNameUpper . '_ON', "<span style='font-weight: bold;'>ON</span>");
35
-define('CO_' . $moduleDirNameUpper . '_SERVERPATH', 'Server path to XOOPS root: ');
36
-define('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS', 'Server uploads status: ');
37
-define('CO_' . $moduleDirNameUpper . '_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>");
38
-define('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.');
39
-
40
-define('CO_' . $moduleDirNameUpper . '_PRINT', "<span style='font-weight: bold;'>Print</span>");
41
-define('CO_' . $moduleDirNameUpper . '_PDF', "<span style='font-weight: bold;'>Create PDF</span>");
42
-
43
-define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'");
44
-define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED1', "Update failed - couldn't add new fields");
45
-define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'");
46
-define('CO_' . $moduleDirNameUpper . '_ERROR_COLUMN', 'Could not create column in database : %s');
47
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)');
48
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)');
49
-define('CO_' . $moduleDirNameUpper . '_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module');
50
-
51
-define('CO_' . $moduleDirNameUpper . '_FOLDERS_DELETED_OK', 'Upload Folders have been deleted');
24
+define('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS', 'GD library support: ');
25
+define('CO_'.$moduleDirNameUpper.'_GDLIBVERSION', 'GD Library version: ');
26
+define('CO_'.$moduleDirNameUpper.'_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)");
27
+define('CO_'.$moduleDirNameUpper.'_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)");
28
+define('CO_'.$moduleDirNameUpper.'_IMAGEINFO', 'Server status');
29
+define('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): ');
30
+define('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): ');
31
+define('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): ');
32
+define('CO_'.$moduleDirNameUpper.'_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> ");
33
+define('CO_'.$moduleDirNameUpper.'_OFF', "<span style='font-weight: bold;'>OFF</span>");
34
+define('CO_'.$moduleDirNameUpper.'_ON', "<span style='font-weight: bold;'>ON</span>");
35
+define('CO_'.$moduleDirNameUpper.'_SERVERPATH', 'Server path to XOOPS root: ');
36
+define('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS', 'Server uploads status: ');
37
+define('CO_'.$moduleDirNameUpper.'_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>");
38
+define('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.');
39
+
40
+define('CO_'.$moduleDirNameUpper.'_PRINT', "<span style='font-weight: bold;'>Print</span>");
41
+define('CO_'.$moduleDirNameUpper.'_PDF', "<span style='font-weight: bold;'>Create PDF</span>");
42
+
43
+define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'");
44
+define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED1', "Update failed - couldn't add new fields");
45
+define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'");
46
+define('CO_'.$moduleDirNameUpper.'_ERROR_COLUMN', 'Could not create column in database : %s');
47
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)');
48
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)');
49
+define('CO_'.$moduleDirNameUpper.'_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module');
50
+
51
+define('CO_'.$moduleDirNameUpper.'_FOLDERS_DELETED_OK', 'Upload Folders have been deleted');
52 52
 
53 53
 // Error Msgs
54
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH', 'Could not delete %s directory');
55
-define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_REMOVE', 'Could not delete %s');
56
-define('CO_' . $moduleDirNameUpper . '_ERROR_NO_PLUGIN', 'Could not load plugin');
54
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH', 'Could not delete %s directory');
55
+define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_REMOVE', 'Could not delete %s');
56
+define('CO_'.$moduleDirNameUpper.'_ERROR_NO_PLUGIN', 'Could not load plugin');
57 57
 
58 58
 //Help
59
-define('CO_' . $moduleDirNameUpper . '_DIRNAME', basename(dirname(dirname(__DIR__))));
60
-define('CO_' . $moduleDirNameUpper . '_HELP_HEADER', __DIR__ . '/help/helpheader.tpl');
61
-define('CO_' . $moduleDirNameUpper . '_BACK_2_ADMIN', 'Back to Administration of ');
62
-define('CO_' . $moduleDirNameUpper . '_OVERVIEW', 'Overview');
59
+define('CO_'.$moduleDirNameUpper.'_DIRNAME', basename(dirname(dirname(__DIR__))));
60
+define('CO_'.$moduleDirNameUpper.'_HELP_HEADER', __DIR__.'/help/helpheader.tpl');
61
+define('CO_'.$moduleDirNameUpper.'_BACK_2_ADMIN', 'Back to Administration of ');
62
+define('CO_'.$moduleDirNameUpper.'_OVERVIEW', 'Overview');
63 63
 
64 64
 //define('CO_' . $moduleDirNameUpper . '_HELP_DIR', __DIR__);
65 65
 
66 66
 //help multi-page
67
-define('CO_' . $moduleDirNameUpper . '_DISCLAIMER', 'Disclaimer');
68
-define('CO_' . $moduleDirNameUpper . '_LICENSE', 'License');
69
-define('CO_' . $moduleDirNameUpper . '_SUPPORT', 'Support');
67
+define('CO_'.$moduleDirNameUpper.'_DISCLAIMER', 'Disclaimer');
68
+define('CO_'.$moduleDirNameUpper.'_LICENSE', 'License');
69
+define('CO_'.$moduleDirNameUpper.'_SUPPORT', 'Support');
70 70
 
71 71
 //Sample Data
72
-define('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)');
73
-define('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS', 'Sample Date uploaded successfully');
74
-define('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA', 'Export Tables to YAML');
75
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON', 'Show Sample Button?');
76
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON_DESC', 'If yes, the "Add Sample Data" button will be visible to the Admin. It is Yes as a default for first installation.');
77
-define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA', 'Export DB Schema to YAML');
78
-define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success');
79
-define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed');
80
-define('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA_OK', 'Are you sure to Import Sample Data? (It will delete ALL current data)');
81
-define('CO_' . $moduleDirNameUpper . '_' . 'HIDE_SAMPLEDATA_BUTTONS', 'Hide the Import buttons');
82
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLEDATA_BUTTONS', 'Show the Import buttons');
83
-define('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM', 'Confirm');
72
+define('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)');
73
+define('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS', 'Sample Date uploaded successfully');
74
+define('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA', 'Export Tables to YAML');
75
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON', 'Show Sample Button?');
76
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON_DESC', 'If yes, the "Add Sample Data" button will be visible to the Admin. It is Yes as a default for first installation.');
77
+define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA', 'Export DB Schema to YAML');
78
+define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success');
79
+define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed');
80
+define('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA_OK', 'Are you sure to Import Sample Data? (It will delete ALL current data)');
81
+define('CO_'.$moduleDirNameUpper.'_'.'HIDE_SAMPLEDATA_BUTTONS', 'Hide the Import buttons');
82
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLEDATA_BUTTONS', 'Show the Import buttons');
83
+define('CO_'.$moduleDirNameUpper.'_'.'CONFIRM', 'Confirm');
84 84
 
85 85
 //letter choice
86
-define('CO_' . $moduleDirNameUpper . '_' . 'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>");
87
-define('CO_' . $moduleDirNameUpper . '_' . 'OTHER', 'Other');
88
-define('CO_' . $moduleDirNameUpper . '_' . 'ALL', 'All');
86
+define('CO_'.$moduleDirNameUpper.'_'.'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>");
87
+define('CO_'.$moduleDirNameUpper.'_'.'OTHER', 'Other');
88
+define('CO_'.$moduleDirNameUpper.'_'.'ALL', 'All');
89 89
 
90 90
 // block defines
91
-define('CO_' . $moduleDirNameUpper . '_' . 'ACCESSRIGHTS', 'Access Rights');
92
-define('CO_' . $moduleDirNameUpper . '_' . 'ACTION', 'Action');
93
-define('CO_' . $moduleDirNameUpper . '_' . 'ACTIVERIGHTS', 'Active Rights');
94
-define('CO_' . $moduleDirNameUpper . '_' . 'BADMIN', 'Block Administration');
95
-define('CO_' . $moduleDirNameUpper . '_' . 'BLKDESC', 'Description');
96
-define('CO_' . $moduleDirNameUpper . '_' . 'CBCENTER', 'Center Middle');
97
-define('CO_' . $moduleDirNameUpper . '_' . 'CBLEFT', 'Center Left');
98
-define('CO_' . $moduleDirNameUpper . '_' . 'CBRIGHT', 'Center Right');
99
-define('CO_' . $moduleDirNameUpper . '_' . 'SBLEFT', 'Left');
100
-define('CO_' . $moduleDirNameUpper . '_' . 'SBRIGHT', 'Right');
101
-define('CO_' . $moduleDirNameUpper . '_' . 'SIDE', 'Alignment');
102
-define('CO_' . $moduleDirNameUpper . '_' . 'TITLE', 'Title');
103
-define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE', 'Visible');
104
-define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLEIN', 'Visible In');
105
-define('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT', 'Weight');
106
-
107
-define('CO_' . $moduleDirNameUpper . '_' . 'PERMISSIONS', 'Permissions');
108
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS', 'Blocks Admin');
109
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_DESC', 'Blocks/Group Admin');
110
-
111
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_MANAGMENT', 'Manage');
112
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_ADDBLOCK', 'Add a new block');
113
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_EDITBLOCK', 'Edit a block');
114
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_CLONEBLOCK', 'Clone a block');
91
+define('CO_'.$moduleDirNameUpper.'_'.'ACCESSRIGHTS', 'Access Rights');
92
+define('CO_'.$moduleDirNameUpper.'_'.'ACTION', 'Action');
93
+define('CO_'.$moduleDirNameUpper.'_'.'ACTIVERIGHTS', 'Active Rights');
94
+define('CO_'.$moduleDirNameUpper.'_'.'BADMIN', 'Block Administration');
95
+define('CO_'.$moduleDirNameUpper.'_'.'BLKDESC', 'Description');
96
+define('CO_'.$moduleDirNameUpper.'_'.'CBCENTER', 'Center Middle');
97
+define('CO_'.$moduleDirNameUpper.'_'.'CBLEFT', 'Center Left');
98
+define('CO_'.$moduleDirNameUpper.'_'.'CBRIGHT', 'Center Right');
99
+define('CO_'.$moduleDirNameUpper.'_'.'SBLEFT', 'Left');
100
+define('CO_'.$moduleDirNameUpper.'_'.'SBRIGHT', 'Right');
101
+define('CO_'.$moduleDirNameUpper.'_'.'SIDE', 'Alignment');
102
+define('CO_'.$moduleDirNameUpper.'_'.'TITLE', 'Title');
103
+define('CO_'.$moduleDirNameUpper.'_'.'VISIBLE', 'Visible');
104
+define('CO_'.$moduleDirNameUpper.'_'.'VISIBLEIN', 'Visible In');
105
+define('CO_'.$moduleDirNameUpper.'_'.'WEIGHT', 'Weight');
106
+
107
+define('CO_'.$moduleDirNameUpper.'_'.'PERMISSIONS', 'Permissions');
108
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS', 'Blocks Admin');
109
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_DESC', 'Blocks/Group Admin');
110
+
111
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_MANAGMENT', 'Manage');
112
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADDBLOCK', 'Add a new block');
113
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_EDITBLOCK', 'Edit a block');
114
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_CLONEBLOCK', 'Clone a block');
115 115
 
116 116
 //myblocksadmin
117
-define('CO_' . $moduleDirNameUpper . '_' . 'AGDS', 'Admin Groups');
118
-define('CO_' . $moduleDirNameUpper . '_' . 'BCACHETIME', 'Cache Time');
119
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_ADMIN', 'Blocks Admin');
117
+define('CO_'.$moduleDirNameUpper.'_'.'AGDS', 'Admin Groups');
118
+define('CO_'.$moduleDirNameUpper.'_'.'BCACHETIME', 'Cache Time');
119
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADMIN', 'Blocks Admin');
120 120
 
121 121
 //Template Admin
122
-define('CO_' . $moduleDirNameUpper . '_' . 'TPLSETS', 'Template Management');
123
-define('CO_' . $moduleDirNameUpper . '_' . 'GENERATE', 'Generate');
124
-define('CO_' . $moduleDirNameUpper . '_' . 'FILENAME', 'File Name');
122
+define('CO_'.$moduleDirNameUpper.'_'.'TPLSETS', 'Template Management');
123
+define('CO_'.$moduleDirNameUpper.'_'.'GENERATE', 'Generate');
124
+define('CO_'.$moduleDirNameUpper.'_'.'FILENAME', 'File Name');
125 125
 
126 126
 //Menu
127
-define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_MIGRATE', 'Migrate');
128
-define('CO_' . $moduleDirNameUpper . '_' . 'FOLDER_YES', 'Folder "%s" exist');
129
-define('CO_' . $moduleDirNameUpper . '_' . 'FOLDER_NO', 'Folder "%s" does not exist. Create the specified folder with CHMOD 777.');
130
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS', 'Show Development Tools Button?');
131
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC', 'If yes, the "Migrate" Tab and other Development tools will be visible to the Admin.');
132
-define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_FEEDBACK', 'Feedback');
127
+define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_MIGRATE', 'Migrate');
128
+define('CO_'.$moduleDirNameUpper.'_'.'FOLDER_YES', 'Folder "%s" exist');
129
+define('CO_'.$moduleDirNameUpper.'_'.'FOLDER_NO', 'Folder "%s" does not exist. Create the specified folder with CHMOD 777.');
130
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS', 'Show Development Tools Button?');
131
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS_DESC', 'If yes, the "Migrate" Tab and other Development tools will be visible to the Admin.');
132
+define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_FEEDBACK', 'Feedback');
133 133
 
134 134
 //Latest Version Check
135
-define('CO_' . $moduleDirNameUpper . '_' . 'NEW_VERSION', 'New Version: ');
135
+define('CO_'.$moduleDirNameUpper.'_'.'NEW_VERSION', 'New Version: ');
136 136
 
137 137
 //DirectoryChecker
138
-define('CO_' . $moduleDirNameUpper . '_' . 'AVAILABLE', "<span style='color: green;'>Available</span>");
139
-define('CO_' . $moduleDirNameUpper . '_' . 'NOTAVAILABLE', "<span style='color: red;'>Not available</span>");
140
-define('CO_' . $moduleDirNameUpper . '_' . 'NOTWRITABLE', "<span style='color: red;'>Should have permission ( %d ), but it has ( %d )</span>");
141
-define('CO_' . $moduleDirNameUpper . '_' . 'CREATETHEDIR', 'Create it');
142
-define('CO_' . $moduleDirNameUpper . '_' . 'SETMPERM', 'Set the permission');
143
-define('CO_' . $moduleDirNameUpper . '_' . 'DIRCREATED', 'The directory has been created');
144
-define('CO_' . $moduleDirNameUpper . '_' . 'DIRNOTCREATED', 'The directory cannot be created');
145
-define('CO_' . $moduleDirNameUpper . '_' . 'PERMSET', 'The permission has been set');
146
-define('CO_' . $moduleDirNameUpper . '_' . 'PERMNOTSET', 'The permission cannot be set');
138
+define('CO_'.$moduleDirNameUpper.'_'.'AVAILABLE', "<span style='color: green;'>Available</span>");
139
+define('CO_'.$moduleDirNameUpper.'_'.'NOTAVAILABLE', "<span style='color: red;'>Not available</span>");
140
+define('CO_'.$moduleDirNameUpper.'_'.'NOTWRITABLE', "<span style='color: red;'>Should have permission ( %d ), but it has ( %d )</span>");
141
+define('CO_'.$moduleDirNameUpper.'_'.'CREATETHEDIR', 'Create it');
142
+define('CO_'.$moduleDirNameUpper.'_'.'SETMPERM', 'Set the permission');
143
+define('CO_'.$moduleDirNameUpper.'_'.'DIRCREATED', 'The directory has been created');
144
+define('CO_'.$moduleDirNameUpper.'_'.'DIRNOTCREATED', 'The directory cannot be created');
145
+define('CO_'.$moduleDirNameUpper.'_'.'PERMSET', 'The permission has been set');
146
+define('CO_'.$moduleDirNameUpper.'_'.'PERMNOTSET', 'The permission cannot be set');
147 147
 
148 148
 //FileChecker
149 149
 //define('CO_' . $moduleDirNameUpper . '_' . 'AVAILABLE', "<span style='color: green;'>Available</span>");
@@ -153,31 +153,31 @@  discard block
 block discarded – undo
153 153
 //define('CO_' . $moduleDirNameUpper . '_' . 'CREATETHEFILE', 'Create it');
154 154
 //define('CO_' . $moduleDirNameUpper . '_' . 'SETMPERM', 'Set the permission');
155 155
 
156
-define('CO_' . $moduleDirNameUpper . '_' . 'FILECOPIED', 'The file has been copied');
157
-define('CO_' . $moduleDirNameUpper . '_' . 'FILENOTCOPIED', 'The file cannot be copied');
156
+define('CO_'.$moduleDirNameUpper.'_'.'FILECOPIED', 'The file has been copied');
157
+define('CO_'.$moduleDirNameUpper.'_'.'FILENOTCOPIED', 'The file cannot be copied');
158 158
 
159 159
 //define('CO_' . $moduleDirNameUpper . '_' . 'PERMSET', 'The permission has been set');
160 160
 //define('CO_' . $moduleDirNameUpper . '_' . 'PERMNOTSET', 'The permission cannot be set');
161 161
 
162 162
 //image config
163
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH', 'Image Display Width');
164
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH_DSC', 'Display width for image');
165
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT', 'Image Display Height');
166
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT_DSC', 'Display height for image');
167
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG', '<span style="color: #FF0000; font-size: Small;  font-weight: bold;">--- EXTERNAL Image configuration ---</span> ');
168
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG_DSC', '');
169
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH', 'Image Upload path');
170
-define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images');
163
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH', 'Image Display Width');
164
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH_DSC', 'Display width for image');
165
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT', 'Image Display Height');
166
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT_DSC', 'Display height for image');
167
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG', '<span style="color: #FF0000; font-size: Small;  font-weight: bold;">--- EXTERNAL Image configuration ---</span> ');
168
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG_DSC', '');
169
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH', 'Image Upload path');
170
+define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images');
171 171
 
172 172
 //Preferences
173
-define('CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH', 'Number of Characters to truncate to the long text field');
174
-define('CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH_DESC', 'Set the maximum number of characters to truncate the long text fields');
173
+define('CO_'.$moduleDirNameUpper.'_'.'TRUNCATE_LENGTH', 'Number of Characters to truncate to the long text field');
174
+define('CO_'.$moduleDirNameUpper.'_'.'TRUNCATE_LENGTH_DESC', 'Set the maximum number of characters to truncate the long text fields');
175 175
 
176 176
 //Module Stats
177
-define('CO_' . $moduleDirNameUpper . '_' . 'STATS_SUMMARY', 'Module Statistics');
178
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_CATEGORIES', 'Categories:');
179
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_ITEMS', 'Items');
180
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_OFFLINE', 'Offline');
181
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_PUBLISHED', 'Published');
182
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_REJECTED', 'Rejected');
183
-define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_SUBMITTED', 'Submitted');
177
+define('CO_'.$moduleDirNameUpper.'_'.'STATS_SUMMARY', 'Module Statistics');
178
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_CATEGORIES', 'Categories:');
179
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_ITEMS', 'Items');
180
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_OFFLINE', 'Offline');
181
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_PUBLISHED', 'Published');
182
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_REJECTED', 'Rejected');
183
+define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_SUBMITTED', 'Submitted');
Please login to merge, or discard this patch.
admin/fields.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 // Define main template
35 35
 $templateMain = 'tdmcreate_fields.tpl';
36 36
 
37
-include __DIR__ . '/header.php';
37
+include __DIR__.'/header.php';
38 38
 // Recovered value of arguments op in the URL $
39 39
 $op = \Xmf\Request::getString('op', 'list');
40 40
 // Get fields Variables
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $GLOBALS['xoopsTpl']->assign('navigation', $adminObject->displayNavigation('fields.php'));
56 56
         $adminObject->addItemButton(_AM_TDMCREATE_ADD_TABLE, 'tables.php?op=new', 'add');
57 57
         $GLOBALS['xoopsTpl']->assign('buttons', $adminObject->displayButton('left'));
58
-        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL . '/' . $modPathIcon16);
58
+        $GLOBALS['xoopsTpl']->assign('modPathIcon16', TDMC_URL.'/'.$modPathIcon16);
59 59
         // Redirect if there aren't modules
60 60
         $modulesCount = $helper->getHandler('Modules')->getCountModules();
61 61
         if (0 == $modulesCount) {
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
             unset($tlid);
101 101
             unset($fields);
102 102
             if ($tablesCount > $limit) {
103
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
104
-                $pagenav = new \XoopsPageNav($tablesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
103
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
104
+                $pagenav = new \XoopsPageNav($tablesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
105 105
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
106 106
             }
107 107
         } else {
@@ -234,9 +234,9 @@  discard block
 block discarded – undo
234 234
         if ($fieldId > 0) {
235 235
             $fieldsObj = $helper->getHandler('Fields')->get($fieldId);
236 236
             foreach ($fieldsArray as $field) {
237
-                if (isset($_POST['field_' . $field])) {
238
-                    $fldField = $fieldsObj->getVar('field_' . $field);
239
-                    $fieldsObj->setVar('field_' . $field, !$fldField);
237
+                if (isset($_POST['field_'.$field])) {
238
+                    $fldField = $fieldsObj->getVar('field_'.$field);
239
+                    $fieldsObj->setVar('field_'.$field, !$fldField);
240 240
                 }
241 241
             }
242 242
             if ($helper->getHandler('Fields')->insert($fieldsObj)) {
@@ -246,4 +246,4 @@  discard block
 block discarded – undo
246 246
         }
247 247
         break;
248 248
 }
249
-include __DIR__ . '/footer.php';
249
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
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 2 patches
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.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
 
92 92
         // Directory to saved all files
93
-		$building_directory = sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, $moduleDirname);
93
+        $building_directory = sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, $moduleDirname);
94 94
         
95 95
         // Copy this module in root modules
96 96
         if (1 === $inroot_copy) {
@@ -105,9 +105,9 @@  discard block
 block discarded – undo
105 105
                 }
106 106
             }
107 107
             $building->copyDir($fromDir, $toDir);
108
-			$building_directory .= sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY_INROOT, $toDir);
108
+            $building_directory .= sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY_INROOT, $toDir);
109 109
         }
110
-		$GLOBALS['xoopsTpl']->assign('building_directory', $building_directory);
110
+        $GLOBALS['xoopsTpl']->assign('building_directory', $building_directory);
111 111
         break;
112 112
     case 'default':
113 113
     default:
Please login to merge, or discard this patch.