Completed
Push — master ( 4f0041...4952f5 )
by Michael
27:47 queued 27:20
created
modules/tools/config/config.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -20,33 +20,33 @@  discard block
 block discarded – undo
20 20
 $moduleDirName      = \basename(\dirname(__DIR__));
21 21
 $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
22 22
 
23
-return (object)[
24
-    'name'           => $moduleDirNameUpper . ' Module Configurator',
23
+return (object) [
24
+    'name'           => $moduleDirNameUpper.' Module Configurator',
25 25
     'paths'          => [
26 26
         'dirname'    => $moduleDirName,
27
-        'admin'      => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
28
-        'modPath'    => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
29
-        'modUrl'     => XOOPS_URL . '/modules/' . $moduleDirName,
30
-        'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
31
-        'uploadUrl'  => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
27
+        'admin'      => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin',
28
+        'modPath'    => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName,
29
+        'modUrl'     => XOOPS_URL.'/modules/'.$moduleDirName,
30
+        'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
31
+        'uploadUrl'  => XOOPS_UPLOAD_URL.'/'.$moduleDirName,
32 32
     ],
33 33
     'uploadFolders'  => [
34
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
35
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category',
36
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
34
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
35
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category',
36
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots',
37 37
         //XOOPS_UPLOAD_PATH . '/flags'
38 38
     ],
39 39
     'copyBlankFiles' => [
40
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
41
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category',
42
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
40
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
41
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category',
42
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots',
43 43
         //XOOPS_UPLOAD_PATH . '/flags'
44 44
     ],
45 45
 
46 46
     'copyTestFolders' => [
47 47
         [
48
-            XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/uploads',
49
-            XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
48
+            XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/uploads',
49
+            XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
50 50
         ],
51 51
         //            [
52 52
         //                XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs',
@@ -83,6 +83,6 @@  discard block
 block discarded – undo
83 83
         //            'totalsubmitted'  => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]),
84 84
     ],
85 85
     'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'>
86
-                     <img src='" . Admin::iconUrl('xoopsmicrobutton.gif') . "' alt='XOOPS Project'></a>",
86
+                     <img src='" . Admin::iconUrl('xoopsmicrobutton.gif')."' alt='XOOPS Project'></a>",
87 87
 ];
88 88
 
Please login to merge, or discard this patch.
modules/tools/config/paths.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -6,20 +6,20 @@
 block discarded – undo
6 6
 $moduleDirName      = \basename(\dirname(__DIR__));
7 7
 $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
8 8
 
9
-return (object)[
10
-    'name'          => \mb_strtoupper($moduleDirName) . ' PathConfigurator',
9
+return (object) [
10
+    'name'          => \mb_strtoupper($moduleDirName).' PathConfigurator',
11 11
     'paths'         => [
12 12
         'dirname'    => $moduleDirName,
13
-        'admin'      => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
14
-        'modPath'    => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
15
-        'modUrl'     => XOOPS_URL . '/modules/' . $moduleDirName,
16
-        'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
17
-        'uploadUrl'  => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
13
+        'admin'      => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin',
14
+        'modPath'    => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName,
15
+        'modUrl'     => XOOPS_URL.'/modules/'.$moduleDirName,
16
+        'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
17
+        'uploadUrl'  => XOOPS_UPLOAD_URL.'/'.$moduleDirName,
18 18
     ],
19 19
     'uploadFolders' => [
20
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
21
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category',
22
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
20
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
21
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/category',
22
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/screenshots',
23 23
         //XOOPS_UPLOAD_PATH . '/flags'
24 24
     ],
25 25
 ];
Please login to merge, or discard this patch.
modules/tools/language/english/common.php 1 patch
Spacing   +129 added lines, -129 removed lines patch added patch discarded remove patch
@@ -17,138 +17,138 @@  discard block
 block discarded – undo
17 17
 $moduleDirName = \basename(\dirname(__DIR__, 2));
18 18
 $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
19 19
 
20
-\define('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS', 'GD library support: ');
21
-\define('CO_' . $moduleDirNameUpper . '_GDLIBVERSION', 'GD Library version: ');
22
-\define('CO_' . $moduleDirNameUpper . '_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)");
23
-\define('CO_' . $moduleDirNameUpper . '_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)");
24
-\define('CO_' . $moduleDirNameUpper . '_IMAGEINFO', 'Server status');
25
-\define('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): ');
26
-\define('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): ');
27
-\define('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): ');
28
-\define('CO_' . $moduleDirNameUpper . '_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> ");
29
-\define('CO_' . $moduleDirNameUpper . '_OFF', "<span style='font-weight: bold;'>OFF</span>");
30
-\define('CO_' . $moduleDirNameUpper . '_ON', "<span style='font-weight: bold;'>ON</span>");
31
-\define('CO_' . $moduleDirNameUpper . '_SERVERPATH', 'Server path to XOOPS root: ');
32
-\define('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS', 'Server uploads status: ');
33
-\define('CO_' . $moduleDirNameUpper . '_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>");
34
-\define('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.');
35
-
36
-\define('CO_' . $moduleDirNameUpper . '_PRINT', "<span style='font-weight: bold;'>Print</span>");
37
-\define('CO_' . $moduleDirNameUpper . '_PDF', "<span style='font-weight: bold;'>Create PDF</span>");
38
-
39
-\define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'");
40
-\define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED1', "Update failed - couldn't add new fields");
41
-\define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'");
42
-\define('CO_' . $moduleDirNameUpper . '_ERROR_COLUMN', 'Could not create column in database : %s');
43
-\define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)');
44
-\define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)');
45
-\define('CO_' . $moduleDirNameUpper . '_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module');
46
-
47
-\define('CO_' . $moduleDirNameUpper . '_FOLDERS_DELETED_OK', 'Upload Folders have been deleted');
20
+\define('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS', 'GD library support: ');
21
+\define('CO_'.$moduleDirNameUpper.'_GDLIBVERSION', 'GD Library version: ');
22
+\define('CO_'.$moduleDirNameUpper.'_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)");
23
+\define('CO_'.$moduleDirNameUpper.'_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)");
24
+\define('CO_'.$moduleDirNameUpper.'_IMAGEINFO', 'Server status');
25
+\define('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): ');
26
+\define('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): ');
27
+\define('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): ');
28
+\define('CO_'.$moduleDirNameUpper.'_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> ");
29
+\define('CO_'.$moduleDirNameUpper.'_OFF', "<span style='font-weight: bold;'>OFF</span>");
30
+\define('CO_'.$moduleDirNameUpper.'_ON', "<span style='font-weight: bold;'>ON</span>");
31
+\define('CO_'.$moduleDirNameUpper.'_SERVERPATH', 'Server path to XOOPS root: ');
32
+\define('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS', 'Server uploads status: ');
33
+\define('CO_'.$moduleDirNameUpper.'_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>");
34
+\define('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.');
35
+
36
+\define('CO_'.$moduleDirNameUpper.'_PRINT', "<span style='font-weight: bold;'>Print</span>");
37
+\define('CO_'.$moduleDirNameUpper.'_PDF', "<span style='font-weight: bold;'>Create PDF</span>");
38
+
39
+\define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'");
40
+\define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED1', "Update failed - couldn't add new fields");
41
+\define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'");
42
+\define('CO_'.$moduleDirNameUpper.'_ERROR_COLUMN', 'Could not create column in database : %s');
43
+\define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)');
44
+\define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)');
45
+\define('CO_'.$moduleDirNameUpper.'_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module');
46
+
47
+\define('CO_'.$moduleDirNameUpper.'_FOLDERS_DELETED_OK', 'Upload Folders have been deleted');
48 48
 
49 49
 // Error Msgs
50
-\define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH', 'Could not delete %s directory');
51
-\define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_REMOVE', 'Could not delete %s');
52
-\define('CO_' . $moduleDirNameUpper . '_ERROR_NO_PLUGIN', 'Could not load plugin');
50
+\define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH', 'Could not delete %s directory');
51
+\define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_REMOVE', 'Could not delete %s');
52
+\define('CO_'.$moduleDirNameUpper.'_ERROR_NO_PLUGIN', 'Could not load plugin');
53 53
 
54 54
 //Help
55
-\define('CO_' . $moduleDirNameUpper . '_DIRNAME', basename(dirname(__DIR__, 2)));
56
-\define('CO_' . $moduleDirNameUpper . '_HELP_HEADER', __DIR__ . '/help/helpheader.tpl');
57
-\define('CO_' . $moduleDirNameUpper . '_BACK_2_ADMIN', 'Back to Administration of ');
58
-\define('CO_' . $moduleDirNameUpper . '_OVERVIEW', 'Overview');
55
+\define('CO_'.$moduleDirNameUpper.'_DIRNAME', basename(dirname(__DIR__, 2)));
56
+\define('CO_'.$moduleDirNameUpper.'_HELP_HEADER', __DIR__.'/help/helpheader.tpl');
57
+\define('CO_'.$moduleDirNameUpper.'_BACK_2_ADMIN', 'Back to Administration of ');
58
+\define('CO_'.$moduleDirNameUpper.'_OVERVIEW', 'Overview');
59 59
 
60 60
 //\define('CO_' . $moduleDirNameUpper . '_HELP_DIR', __DIR__);
61 61
 
62 62
 //help multi-page
63
-\define('CO_' . $moduleDirNameUpper . '_DISCLAIMER', 'Disclaimer');
64
-\define('CO_' . $moduleDirNameUpper . '_LICENSE', 'License');
65
-\define('CO_' . $moduleDirNameUpper . '_SUPPORT', 'Support');
63
+\define('CO_'.$moduleDirNameUpper.'_DISCLAIMER', 'Disclaimer');
64
+\define('CO_'.$moduleDirNameUpper.'_LICENSE', 'License');
65
+\define('CO_'.$moduleDirNameUpper.'_SUPPORT', 'Support');
66 66
 
67 67
 //Sample Data
68
-\define('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)');
69
-\define('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA_CONFIRM', 'Are you sure to Import Sample Data? (It will delete ALL current data)');
70
-\define('CO_' . $moduleDirNameUpper . '_' . 'LOAD_SAMPLEDATA_SUCCESS', 'Sample Date imported  successfully');
71
-\define('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA', 'Export Tables to YAML');
72
-\define('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA_SUCCESS', 'Export Tables to YAML successfully');
73
-\define('CO_' . $moduleDirNameUpper . '_' . 'CLEAR_SAMPLEDATA', 'Clear Sample Data');
74
-\define('CO_' . $moduleDirNameUpper . '_' . 'CLEAR_SAMPLEDATA_OK', 'The Sample Data has been cleared');
75
-\define('CO_' . $moduleDirNameUpper . '_' . 'CLEAR_SAMPLEDATA_CONFIRM', 'Are you sure to Clear Sample Data? (It will delete ALL current data)');
76
-\define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA', 'Export DB Schema to YAML');
77
-\define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success');
78
-\define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed');
79
-\define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON', 'Show Sample Button?');
80
-\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.');
81
-\define('CO_' . $moduleDirNameUpper . '_' . 'HIDE_SAMPLEDATA_BUTTONS', 'Hide the Import buttons)');
82
-\define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLEDATA_BUTTONS', 'Show the Import buttons)');
83
-
84
-\define('CO_' . $moduleDirNameUpper . '_' . 'CONFIRM', 'Confirm');
68
+\define('CO_'.$moduleDirNameUpper.'_'.'LOAD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)');
69
+\define('CO_'.$moduleDirNameUpper.'_'.'LOAD_SAMPLEDATA_CONFIRM', 'Are you sure to Import Sample Data? (It will delete ALL current data)');
70
+\define('CO_'.$moduleDirNameUpper.'_'.'LOAD_SAMPLEDATA_SUCCESS', 'Sample Date imported  successfully');
71
+\define('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA', 'Export Tables to YAML');
72
+\define('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA_SUCCESS', 'Export Tables to YAML successfully');
73
+\define('CO_'.$moduleDirNameUpper.'_'.'CLEAR_SAMPLEDATA', 'Clear Sample Data');
74
+\define('CO_'.$moduleDirNameUpper.'_'.'CLEAR_SAMPLEDATA_OK', 'The Sample Data has been cleared');
75
+\define('CO_'.$moduleDirNameUpper.'_'.'CLEAR_SAMPLEDATA_CONFIRM', 'Are you sure to Clear Sample Data? (It will delete ALL current data)');
76
+\define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA', 'Export DB Schema to YAML');
77
+\define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success');
78
+\define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed');
79
+\define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON', 'Show Sample Button?');
80
+\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.');
81
+\define('CO_'.$moduleDirNameUpper.'_'.'HIDE_SAMPLEDATA_BUTTONS', 'Hide the Import buttons)');
82
+\define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLEDATA_BUTTONS', 'Show the Import buttons)');
83
+
84
+\define('CO_'.$moduleDirNameUpper.'_'.'CONFIRM', 'Confirm');
85 85
 
86 86
 //letter choice
87
-\define('CO_' . $moduleDirNameUpper . '_' . 'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>");
88
-\define('CO_' . $moduleDirNameUpper . '_' . 'OTHER', 'Other');
89
-\define('CO_' . $moduleDirNameUpper . '_' . 'ALL', 'All');
87
+\define('CO_'.$moduleDirNameUpper.'_'.'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>");
88
+\define('CO_'.$moduleDirNameUpper.'_'.'OTHER', 'Other');
89
+\define('CO_'.$moduleDirNameUpper.'_'.'ALL', 'All');
90 90
 
91 91
 // block defines
92
-\define('CO_' . $moduleDirNameUpper . '_' . 'ACCESSRIGHTS', 'Access Rights');
93
-\define('CO_' . $moduleDirNameUpper . '_' . 'ACTION', 'Action');
94
-\define('CO_' . $moduleDirNameUpper . '_' . 'ACTIVERIGHTS', 'Active Rights');
95
-\define('CO_' . $moduleDirNameUpper . '_' . 'BADMIN', 'Block Administration');
96
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLKDESC', 'Description');
97
-\define('CO_' . $moduleDirNameUpper . '_' . 'CBCENTER', 'Center Middle');
98
-\define('CO_' . $moduleDirNameUpper . '_' . 'CBLEFT', 'Center Left');
99
-\define('CO_' . $moduleDirNameUpper . '_' . 'CBRIGHT', 'Center Right');
100
-\define('CO_' . $moduleDirNameUpper . '_' . 'SBLEFT', 'Left');
101
-\define('CO_' . $moduleDirNameUpper . '_' . 'SBRIGHT', 'Right');
102
-\define('CO_' . $moduleDirNameUpper . '_' . 'SIDE', 'Alignment');
103
-\define('CO_' . $moduleDirNameUpper . '_' . 'TITLE', 'Title');
104
-\define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE', 'Visible');
105
-\define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLEIN', 'Visible In');
106
-\define('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT', 'Weight');
107
-
108
-\define('CO_' . $moduleDirNameUpper . '_' . 'PERMISSIONS', 'Permissions');
109
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS', 'Blocks Admin');
110
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_DESC', 'Blocks/Group Admin');
111
-
112
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_MANAGMENT', 'Manage');
113
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_ADDBLOCK', 'Add a new block');
114
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_EDITBLOCK', 'Edit a block');
115
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_CLONEBLOCK', 'Clone a block');
92
+\define('CO_'.$moduleDirNameUpper.'_'.'ACCESSRIGHTS', 'Access Rights');
93
+\define('CO_'.$moduleDirNameUpper.'_'.'ACTION', 'Action');
94
+\define('CO_'.$moduleDirNameUpper.'_'.'ACTIVERIGHTS', 'Active Rights');
95
+\define('CO_'.$moduleDirNameUpper.'_'.'BADMIN', 'Block Administration');
96
+\define('CO_'.$moduleDirNameUpper.'_'.'BLKDESC', 'Description');
97
+\define('CO_'.$moduleDirNameUpper.'_'.'CBCENTER', 'Center Middle');
98
+\define('CO_'.$moduleDirNameUpper.'_'.'CBLEFT', 'Center Left');
99
+\define('CO_'.$moduleDirNameUpper.'_'.'CBRIGHT', 'Center Right');
100
+\define('CO_'.$moduleDirNameUpper.'_'.'SBLEFT', 'Left');
101
+\define('CO_'.$moduleDirNameUpper.'_'.'SBRIGHT', 'Right');
102
+\define('CO_'.$moduleDirNameUpper.'_'.'SIDE', 'Alignment');
103
+\define('CO_'.$moduleDirNameUpper.'_'.'TITLE', 'Title');
104
+\define('CO_'.$moduleDirNameUpper.'_'.'VISIBLE', 'Visible');
105
+\define('CO_'.$moduleDirNameUpper.'_'.'VISIBLEIN', 'Visible In');
106
+\define('CO_'.$moduleDirNameUpper.'_'.'WEIGHT', 'Weight');
107
+
108
+\define('CO_'.$moduleDirNameUpper.'_'.'PERMISSIONS', 'Permissions');
109
+\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS', 'Blocks Admin');
110
+\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_DESC', 'Blocks/Group Admin');
111
+
112
+\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_MANAGMENT', 'Manage');
113
+\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADDBLOCK', 'Add a new block');
114
+\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_EDITBLOCK', 'Edit a block');
115
+\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_CLONEBLOCK', 'Clone a block');
116 116
 
117 117
 //myblocksadmin
118
-\define('CO_' . $moduleDirNameUpper . '_' . 'AGDS', 'Admin Groups');
119
-\define('CO_' . $moduleDirNameUpper . '_' . 'BCACHETIME', 'Cache Time');
120
-\define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_ADMIN', 'Blocks Admin');
121
-\define('CO_' . $moduleDirNameUpper . '_' . 'UPDATE_SUCCESS', 'Update successful');
118
+\define('CO_'.$moduleDirNameUpper.'_'.'AGDS', 'Admin Groups');
119
+\define('CO_'.$moduleDirNameUpper.'_'.'BCACHETIME', 'Cache Time');
120
+\define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADMIN', 'Blocks Admin');
121
+\define('CO_'.$moduleDirNameUpper.'_'.'UPDATE_SUCCESS', 'Update successful');
122 122
 
123 123
 //Template Admin
124
-\define('CO_' . $moduleDirNameUpper . '_' . 'TPLSETS', 'Template Management');
125
-\define('CO_' . $moduleDirNameUpper . '_' . 'GENERATE', 'Generate');
126
-\define('CO_' . $moduleDirNameUpper . '_' . 'FILENAME', 'File Name');
124
+\define('CO_'.$moduleDirNameUpper.'_'.'TPLSETS', 'Template Management');
125
+\define('CO_'.$moduleDirNameUpper.'_'.'GENERATE', 'Generate');
126
+\define('CO_'.$moduleDirNameUpper.'_'.'FILENAME', 'File Name');
127 127
 
128 128
 //Menu
129
-\define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_MIGRATE', 'Migrate');
130
-\define('CO_' . $moduleDirNameUpper . '_' . 'FOLDER_YES', 'Folder "%s" exist');
131
-\define('CO_' . $moduleDirNameUpper . '_' . 'FOLDER_NO', 'Folder "%s" does not exist. Create the specified folder with CHMOD 777.');
132
-\define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS', 'Show Development Tools Button?');
133
-\define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_DEV_TOOLS_DESC', 'If yes, the "Migrate" Tab and other Development tools will be visible to the Admin.');
134
-\define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_FEEDBACK', 'Feedback');
135
-\define('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_OK', 'Database migrated to current schema.');
136
-\define('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_WARNING', 'Warning! This is intended for developers only. Confirm write schema file from current database.');
137
-\define('CO_' . $moduleDirNameUpper . '_' . 'MIGRATE_SCHEMA_OK', 'Current schema file written');
129
+\define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_MIGRATE', 'Migrate');
130
+\define('CO_'.$moduleDirNameUpper.'_'.'FOLDER_YES', 'Folder "%s" exist');
131
+\define('CO_'.$moduleDirNameUpper.'_'.'FOLDER_NO', 'Folder "%s" does not exist. Create the specified folder with CHMOD 777.');
132
+\define('CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS', 'Show Development Tools Button?');
133
+\define('CO_'.$moduleDirNameUpper.'_'.'SHOW_DEV_TOOLS_DESC', 'If yes, the "Migrate" Tab and other Development tools will be visible to the Admin.');
134
+\define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_FEEDBACK', 'Feedback');
135
+\define('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_OK', 'Database migrated to current schema.');
136
+\define('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_WARNING', 'Warning! This is intended for developers only. Confirm write schema file from current database.');
137
+\define('CO_'.$moduleDirNameUpper.'_'.'MIGRATE_SCHEMA_OK', 'Current schema file written');
138 138
 
139 139
 //Latest Version Check
140
-\define('CO_' . $moduleDirNameUpper . '_' . 'NEW_VERSION', 'New Version: ');
140
+\define('CO_'.$moduleDirNameUpper.'_'.'NEW_VERSION', 'New Version: ');
141 141
 
142 142
 //DirectoryChecker
143
-\define('CO_' . $moduleDirNameUpper . '_' . 'AVAILABLE', "<span style='color: green;'>Available</span>");
144
-\define('CO_' . $moduleDirNameUpper . '_' . 'NOTAVAILABLE', "<span style='color: red;'>Not available</span>");
145
-\define('CO_' . $moduleDirNameUpper . '_' . 'NOTWRITABLE', "<span style='color: red;'>Should have permission ( %d ), but it has ( %d )</span>");
146
-\define('CO_' . $moduleDirNameUpper . '_' . 'CREATETHEDIR', 'Create it');
147
-\define('CO_' . $moduleDirNameUpper . '_' . 'SETMPERM', 'Set the permission');
148
-\define('CO_' . $moduleDirNameUpper . '_' . 'DIRCREATED', 'The directory has been created');
149
-\define('CO_' . $moduleDirNameUpper . '_' . 'DIRNOTCREATED', 'The directory cannot be created');
150
-\define('CO_' . $moduleDirNameUpper . '_' . 'PERMSET', 'The permission has been set');
151
-\define('CO_' . $moduleDirNameUpper . '_' . 'PERMNOTSET', 'The permission cannot be set');
143
+\define('CO_'.$moduleDirNameUpper.'_'.'AVAILABLE', "<span style='color: green;'>Available</span>");
144
+\define('CO_'.$moduleDirNameUpper.'_'.'NOTAVAILABLE', "<span style='color: red;'>Not available</span>");
145
+\define('CO_'.$moduleDirNameUpper.'_'.'NOTWRITABLE', "<span style='color: red;'>Should have permission ( %d ), but it has ( %d )</span>");
146
+\define('CO_'.$moduleDirNameUpper.'_'.'CREATETHEDIR', 'Create it');
147
+\define('CO_'.$moduleDirNameUpper.'_'.'SETMPERM', 'Set the permission');
148
+\define('CO_'.$moduleDirNameUpper.'_'.'DIRCREATED', 'The directory has been created');
149
+\define('CO_'.$moduleDirNameUpper.'_'.'DIRNOTCREATED', 'The directory cannot be created');
150
+\define('CO_'.$moduleDirNameUpper.'_'.'PERMSET', 'The permission has been set');
151
+\define('CO_'.$moduleDirNameUpper.'_'.'PERMNOTSET', 'The permission cannot be set');
152 152
 
153 153
 //FileChecker
154 154
 //\define('CO_' . $moduleDirNameUpper . '_' . 'AVAILABLE', "<span style='color: green;'>Available</span>");
@@ -158,31 +158,31 @@  discard block
 block discarded – undo
158 158
 //\define('CO_' . $moduleDirNameUpper . '_' . 'CREATETHEFILE', 'Create it');
159 159
 //\define('CO_' . $moduleDirNameUpper . '_' . 'SETMPERM', 'Set the permission');
160 160
 
161
-\define('CO_' . $moduleDirNameUpper . '_' . 'FILECOPIED', 'The file has been copied');
162
-\define('CO_' . $moduleDirNameUpper . '_' . 'FILENOTCOPIED', 'The file cannot be copied');
161
+\define('CO_'.$moduleDirNameUpper.'_'.'FILECOPIED', 'The file has been copied');
162
+\define('CO_'.$moduleDirNameUpper.'_'.'FILENOTCOPIED', 'The file cannot be copied');
163 163
 
164
-\define('CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH', 'Number of Characters to truncate to the long text field');
165
-\define('CO_' . $moduleDirNameUpper . '_' . 'TRUNCATE_LENGTH_DESC', 'Set the maximum number of characters to truncate the long text fields');
164
+\define('CO_'.$moduleDirNameUpper.'_'.'TRUNCATE_LENGTH', 'Number of Characters to truncate to the long text field');
165
+\define('CO_'.$moduleDirNameUpper.'_'.'TRUNCATE_LENGTH_DESC', 'Set the maximum number of characters to truncate the long text fields');
166 166
 
167 167
 //image config
168
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH', 'Image Display Width');
169
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_WIDTH_DSC', 'Display width for image');
170
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT', 'Image Display Height');
171
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_HEIGHT_DSC', 'Display height for image');
172
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG', '<span style="color: #FF0000; font-size: Small;  font-weight: bold;">--- EXTERNAL Image configuration ---</span> ');
173
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_CONFIG_DSC', '');
174
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH', 'Image Upload path');
175
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images');
168
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH', 'Image Display Width');
169
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_WIDTH_DSC', 'Display width for image');
170
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT', 'Image Display Height');
171
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_HEIGHT_DSC', 'Display height for image');
172
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG', '<span style="color: #FF0000; font-size: Small;  font-weight: bold;">--- EXTERNAL Image configuration ---</span> ');
173
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_CONFIG_DSC', '');
174
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH', 'Image Upload path');
175
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_UPLOAD_PATH_DSC', 'Path for uploading images');
176 176
 
177
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE', 'Image File Size (in Bytes)');
178
-\define('CO_' . $moduleDirNameUpper . '_' . 'IMAGE_FILE_SIZE_DSC','The maximum file size of the image file (in Bytes)');
177
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_FILE_SIZE', 'Image File Size (in Bytes)');
178
+\define('CO_'.$moduleDirNameUpper.'_'.'IMAGE_FILE_SIZE_DSC', 'The maximum file size of the image file (in Bytes)');
179 179
 
180 180
 
181 181
 //Module Stats
182
-\define('CO_' . $moduleDirNameUpper . '_' . 'STATS_SUMMARY', 'Module Statistics');
183
-\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_CATEGORIES', 'Categories:');
184
-\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_ITEMS', 'Items');
185
-\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_OFFLINE', 'Offline');
186
-\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_PUBLISHED', 'Published');
187
-\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_REJECTED', 'Rejected');
188
-\define('CO_' . $moduleDirNameUpper . '_' . 'TOTAL_SUBMITTED', 'Submitted');
182
+\define('CO_'.$moduleDirNameUpper.'_'.'STATS_SUMMARY', 'Module Statistics');
183
+\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_CATEGORIES', 'Categories:');
184
+\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_ITEMS', 'Items');
185
+\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_OFFLINE', 'Offline');
186
+\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_PUBLISHED', 'Published');
187
+\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_REJECTED', 'Rejected');
188
+\define('CO_'.$moduleDirNameUpper.'_'.'TOTAL_SUBMITTED', 'Submitted');
Please login to merge, or discard this patch.
modules/tools/class/Common/Configurator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 //        $moduleDirName      = \basename(\dirname(__DIR__, 2));
46 46
 //        $moduleDirNameUpper =  \mb_strtoupper($moduleDirName);
47 47
 
48
-        $config = require \dirname(__DIR__, 2) . '/config/config.php';
48
+        $config = require \dirname(__DIR__, 2).'/config/config.php';
49 49
 
50 50
         $this->name            = $config->name;
51 51
         $this->paths           = $config->paths;
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
         $this->moduleStats     = $config->moduleStats;
60 60
         $this->modCopyright    = $config->modCopyright;
61 61
 
62
-        $this->icons = include \dirname(__DIR__, 2) . '/config/icons.php';
63
-        $this->paths = include \dirname(__DIR__, 2) . '/config/paths.php';
62
+        $this->icons = include \dirname(__DIR__, 2).'/config/icons.php';
63
+        $this->paths = include \dirname(__DIR__, 2).'/config/paths.php';
64 64
 
65 65
     }
66 66
 }
Please login to merge, or discard this patch.
modules/tools/class/Common/SysUtility.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
     /**
52 52
      * Access the only instance of this class
53
- *
53
+     *
54 54
      * @return SysUtility
55 55
 *
56 56
      */
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         //$pathModIcon16 = XOOPS_URL . '/modules/' . $moduleDirName . '/' . $helper->getConfig('modicons16');
81 81
         $pathModIcon16 = $helper->url($helper->getModule()->getInfo('modicons16'));
82 82
 
83
-        $select_view = '<form name="form_switch" id="form_switch" action="' . Request::getString('REQUEST_URI', '', 'SERVER') . '" method="post"><span style="font-weight: bold;">' . $text . '</span>';
83
+        $select_view = '<form name="form_switch" id="form_switch" action="'.Request::getString('REQUEST_URI', '', 'SERVER').'" method="post"><span style="font-weight: bold;">'.$text.'</span>';
84 84
         //$sorts =  $sort ==  'asc' ? 'desc' : 'asc';
85 85
         if ($form_sort == $sort) {
86 86
             $sel1 = 'asc' === $order ? 'selasc.png' : 'asc.png';
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
             $sel1 = 'asc.png';
90 90
             $sel2 = 'desc.png';
91 91
         }
92
-        $select_view .= '  <a href="' . Request::getString('SCRIPT_NAME', '', 'SERVER') . '?start=' . $start . '&sort=' . $form_sort . '&order=asc"><img src="' . $pathModIcon16 . '/' . $sel1 . '" title="ASC" alt="ASC"></a>';
93
-        $select_view .= '<a href="' . Request::getString('SCRIPT_NAME', '', 'SERVER') . '?start=' . $start . '&sort=' . $form_sort . '&order=desc"><img src="' . $pathModIcon16 . '/' . $sel2 . '" title="DESC" alt="DESC"></a>';
92
+        $select_view .= '  <a href="'.Request::getString('SCRIPT_NAME', '', 'SERVER').'?start='.$start.'&sort='.$form_sort.'&order=asc"><img src="'.$pathModIcon16.'/'.$sel1.'" title="ASC" alt="ASC"></a>';
93
+        $select_view .= '<a href="'.Request::getString('SCRIPT_NAME', '', 'SERVER').'?start='.$start.'&sort='.$form_sort.'&order=desc"><img src="'.$pathModIcon16.'/'.$sel2.'" title="DESC" alt="DESC"></a>';
94 94
         $select_view .= '</form>';
95 95
 
96 96
         return $select_view;
@@ -105,10 +105,10 @@  discard block
 block discarded – undo
105 105
     {
106 106
         $cat_sql = '';
107 107
         if (\is_array($cats) && !empty($cats)) {
108
-            $cat_sql = '(' . \current($cats);
108
+            $cat_sql = '('.\current($cats);
109 109
             \array_shift($cats);
110 110
             foreach ($cats as $cat) {
111
-                $cat_sql .= ',' . $cat;
111
+                $cat_sql .= ','.$cat;
112 112
             }
113 113
             $cat_sql .= ')';
114 114
         }
@@ -160,11 +160,11 @@  discard block
 block discarded – undo
160 160
         //        WHERE TABLE_NAME = '" . $table . "' AND COLUMN_NAME = '" . $columnName . "'")
161 161
         //    || exit ($GLOBALS['xoopsDB']->error());
162 162
 
163
-        $sql    = 'SELECT COLUMN_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = "' . $table . '" AND COLUMN_NAME = "' . $columnName . '"';
163
+        $sql    = 'SELECT COLUMN_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = "'.$table.'" AND COLUMN_NAME = "'.$columnName.'"';
164 164
         $result = $GLOBALS['xoopsDB']->query($sql);
165 165
         if (!$result) {
166 166
 //            exit($GLOBALS['xoopsDB']->error());
167
-            $logger     = \XoopsLogger::getInstance();
167
+            $logger = \XoopsLogger::getInstance();
168 168
             $logger->handleError(\E_USER_WARNING, $sql, __FILE__, __LINE__);
169 169
             return false;
170 170
         }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     public static function cloneRecord($tableName, int $id_field, int $id)
186 186
     {
187 187
         $new_id = false;
188
-        $logger     = \XoopsLogger::getInstance();
188
+        $logger = \XoopsLogger::getInstance();
189 189
         $table  = $GLOBALS['xoopsDB']->prefix($tableName);
190 190
         // copy content of the record you wish to clone
191 191
         $sql       = "SELECT * FROM $table WHERE $id_field='$id' ";
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         // set the auto-incremented id's value to blank.
199 199
         unset($tempTable[$id_field]);
200 200
         // insert cloned copy of the original  record
201
-        $sql    = "INSERT INTO $table (" . \implode(', ', \array_keys($tempTable)) . ") VALUES ('" . \implode("', '", \array_values($tempTable)) . "')";
201
+        $sql    = "INSERT INTO $table (".\implode(', ', \array_keys($tempTable)).") VALUES ('".\implode("', '", \array_values($tempTable))."')";
202 202
         $result = $GLOBALS['xoopsDB']->queryF($sql);
203 203
         if (!$result) {
204 204
 //            exit($GLOBALS['xoopsDB']->error());
@@ -229,11 +229,11 @@  discard block
 block discarded – undo
229 229
         $openTags = [];
230 230
         if ($considerHtml) {
231 231
             // if the plain text is shorter than the maximum length, return the whole text
232
-            if (\mb_strlen(\preg_replace('/<.*?' . '>/', '', $text)) <= $length) {
232
+            if (\mb_strlen(\preg_replace('/<.*?'.'>/', '', $text)) <= $length) {
233 233
                 return $text;
234 234
             }
235 235
             // splits all html-tags to scanable lines
236
-            \preg_match_all('/(<.+?' . '>)?([^<>]*)/s', $text, $lines, \PREG_SET_ORDER);
236
+            \preg_match_all('/(<.+?'.'>)?([^<>]*)/s', $text, $lines, \PREG_SET_ORDER);
237 237
             $total_length = \mb_strlen($ending);
238 238
             //$openTags    = [];
239 239
             $truncate     = '';
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
                             unset($openTags[$pos]);
252 252
                         }
253 253
                         // if tag is an opening tag
254
-                    } elseif (\preg_match('/^<\s*([^\s>!]+).*?' . '>$/s', $line_matchings[1], $tag_matchings)) {
254
+                    } elseif (\preg_match('/^<\s*([^\s>!]+).*?'.'>$/s', $line_matchings[1], $tag_matchings)) {
255 255
                         // add tag to the beginning of $openTags list
256 256
                         \array_unshift($openTags, \mb_strtolower($tag_matchings[1]));
257 257
                     }
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
         if ($considerHtml) {
310 310
             // close all unclosed html-tags
311 311
             foreach ($openTags as $tag) {
312
-                $truncate .= '</' . $tag . '>';
312
+                $truncate .= '</'.$tag.'>';
313 313
             }
314 314
         }
315 315
 
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
             if (!@\mkdir($folder) && !\is_dir($folder)) {
381 381
                 throw new \RuntimeException(\sprintf('Unable to create the %s directory', $folder));
382 382
             }
383
-            file_put_contents($folder . '/index.html', '<script>history.go(-1);</script>');
383
+            file_put_contents($folder.'/index.html', '<script>history.go(-1);</script>');
384 384
         } catch (\Exception $e) {
385 385
             echo 'Caught exception: ', $e->getMessage(), "\n", '<br>';
386 386
         }
@@ -394,9 +394,9 @@  discard block
 block discarded – undo
394 394
     public static function tableExists(string $tablename): bool
395 395
     {
396 396
         $trace = \debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS, 1);
397
-        \trigger_error(__FUNCTION__ . " is deprecated, called from {$trace[0]['file']} line {$trace[0]['line']}");
397
+        \trigger_error(__FUNCTION__." is deprecated, called from {$trace[0]['file']} line {$trace[0]['line']}");
398 398
         $GLOBALS['xoopsLogger']->addDeprecated(
399
-            \basename(\dirname(__DIR__, 2)) . ' Module: ' . __FUNCTION__ . ' function is deprecated, please use Xmf\Database\Tables method(s) instead.' . " Called from {$trace[0]['file']}line {$trace[0]['line']}"
399
+            \basename(\dirname(__DIR__, 2)).' Module: '.__FUNCTION__.' function is deprecated, please use Xmf\Database\Tables method(s) instead.'." Called from {$trace[0]['file']}line {$trace[0]['line']}"
400 400
         );
401 401
         $result = $GLOBALS['xoopsDB']->queryF("SHOW TABLES LIKE '$tablename'");
402 402
 
@@ -413,6 +413,6 @@  discard block
 block discarded – undo
413 413
     public static function addField($field, $table)
414 414
     {
415 415
         global $xoopsDB;
416
-        return $xoopsDB->queryF('ALTER TABLE ' . $table . " ADD $field;");
416
+        return $xoopsDB->queryF('ALTER TABLE '.$table." ADD $field;");
417 417
     }
418 418
 }
Please login to merge, or discard this patch.
modules/tools/class/Common/FilesManagement.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                     throw new \RuntimeException(\sprintf('Unable to create the %s directory', $folder));
36 36
                 }
37 37
 
38
-                file_put_contents($folder . '/index.html', '<script>history.go(-1);</script>');
38
+                file_put_contents($folder.'/index.html', '<script>history.go(-1);</script>');
39 39
             }
40 40
         } catch (\Exception $e) {
41 41
             echo 'Caught exception: ', $e->getMessage(), "\n", '<br>';
@@ -61,14 +61,14 @@  discard block
 block discarded – undo
61 61
         $dir = \opendir($src);
62 62
         //        @mkdir($dst);
63 63
         if (!@\mkdir($dst) && !\is_dir($dst)) {
64
-            throw new \RuntimeException('The directory ' . $dst . ' could not be created.');
64
+            throw new \RuntimeException('The directory '.$dst.' could not be created.');
65 65
         }
66 66
         while (false !== ($file = \readdir($dir))) {
67 67
             if (('.' !== $file) && ('..' !== $file)) {
68
-                if (\is_dir($src . '/' . $file)) {
69
-                    self::recurseCopy($src . '/' . $file, $dst . '/' . $file);
68
+                if (\is_dir($src.'/'.$file)) {
69
+                    self::recurseCopy($src.'/'.$file, $dst.'/'.$file);
70 70
                 } else {
71
-                    \copy($src . '/' . $file, $dst . '/' . $file);
71
+                    \copy($src.'/'.$file, $dst.'/'.$file);
72 72
                 }
73 73
             }
74 74
         }
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
                 self::rrmdir($fObj->getPathname());
205 205
             }
206 206
         }
207
-        $iterator = null;   // clear iterator Obj to close file/directory
207
+        $iterator = null; // clear iterator Obj to close file/directory
208 208
         return \rmdir($src); // remove the directory & return results
209 209
     }
210 210
 
@@ -237,14 +237,14 @@  discard block
 block discarded – undo
237 237
         $iterator = new \DirectoryIterator($src);
238 238
         foreach ($iterator as $fObj) {
239 239
             if ($fObj->isFile()) {
240
-                \rename($fObj->getPathname(), "{$dest}/" . $fObj->getFilename());
240
+                \rename($fObj->getPathname(), "{$dest}/".$fObj->getFilename());
241 241
             } elseif (!$fObj->isDot() && $fObj->isDir()) {
242 242
                 // Try recursively on directory
243
-                self::rmove($fObj->getPathname(), "{$dest}/" . $fObj->getFilename());
243
+                self::rmove($fObj->getPathname(), "{$dest}/".$fObj->getFilename());
244 244
                 //                rmdir($fObj->getPath()); // now delete the directory
245 245
             }
246 246
         }
247
-        $iterator = null;   // clear iterator Obj to close file/directory
247
+        $iterator = null; // clear iterator Obj to close file/directory
248 248
         return \rmdir($src); // remove the directory & return results
249 249
     }
250 250
 
@@ -280,9 +280,9 @@  discard block
 block discarded – undo
280 280
         $iterator = new \DirectoryIterator($src);
281 281
         foreach ($iterator as $fObj) {
282 282
             if ($fObj->isFile()) {
283
-                \copy($fObj->getPathname(), "{$dest}/" . $fObj->getFilename());
283
+                \copy($fObj->getPathname(), "{$dest}/".$fObj->getFilename());
284 284
             } elseif (!$fObj->isDot() && $fObj->isDir()) {
285
-                self::rcopy($fObj->getPathname(), "{$dest}/" . $fObj->getFilename());
285
+                self::rcopy($fObj->getPathname(), "{$dest}/".$fObj->getFilename());
286 286
             }
287 287
         }
288 288
 
Please login to merge, or discard this patch.
modules/tools/class/Common/VersionChecks.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
         //check for minimum XOOPS version
43 43
         $currentVer = mb_substr(XOOPS_VERSION, 6); // get the numeric part of string
44 44
         if (null === $requiredVer) {
45
-            $requiredVer = '' . $module->getInfo('min_xoops'); //making sure it's a string
45
+            $requiredVer = ''.$module->getInfo('min_xoops'); //making sure it's a string
46 46
         }
47 47
         $success = true;
48 48
 
49 49
         if (version_compare($currentVer, $requiredVer, '<')) {
50 50
             $success = false;
51
-            $module->setErrors(sprintf(constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS'), $requiredVer, $currentVer));
51
+            $module->setErrors(sprintf(constant('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS'), $requiredVer, $currentVer));
52 52
         }
53 53
 
54 54
         return $success;
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
         if (false !== $reqVer && '' !== $reqVer && !is_array($reqVer)) {
81 81
             if (version_compare($verNum, $reqVer, '<')) {
82
-                $module->setErrors(sprintf(constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP'), $reqVer, $verNum));
82
+                $module->setErrors(sprintf(constant('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP'), $reqVer, $verNum));
83 83
                 $success = false;
84 84
             }
85 85
         }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $moduleDirName      = \basename(\dirname(__DIR__, 2));
104 104
         $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
105 105
         $update             = '';
106
-        $repository         = 'XoopsModules25x/' . $moduleDirName;
106
+        $repository         = 'XoopsModules25x/'.$moduleDirName;
107 107
         //        $repository         = 'XoopsModules25x/publisher'; //for testing only
108 108
         $ret             = '';
109 109
         $infoReleasesUrl = "https://api.github.com/repos/$repository/releases";
@@ -117,14 +117,14 @@  discard block
 block discarded – undo
117 117
                 if (false === $curlReturn) {
118 118
                     trigger_error(curl_error($curlHandle));
119 119
                 } elseif (false !== strpos($curlReturn, 'Not Found')) {
120
-                    trigger_error('Repository Not Found: ' . $infoReleasesUrl);
120
+                    trigger_error('Repository Not Found: '.$infoReleasesUrl);
121 121
                 } else {
122 122
                     $file              = json_decode($curlReturn, false);
123 123
                     $latestVersionLink = sprintf("https://github.com/$repository/archive/%s.zip", $file ? reset($file)->tag_name : $default);
124 124
                     $latestVersion     = $file[0]->tag_name;
125 125
                     $prerelease        = $file[0]->prerelease;
126 126
                     if ('master' !== $latestVersionLink) {
127
-                        $update = constant('CO_' . $moduleDirNameUpper . '_' . 'NEW_VERSION') . $latestVersion;
127
+                        $update = constant('CO_'.$moduleDirNameUpper.'_'.'NEW_VERSION').$latestVersion;
128 128
                     }
129 129
                     //"PHP-standardized" version
130 130
                     $latestVersion = mb_strtolower($latestVersion);
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                         $latestVersion = str_replace('_', '', mb_strtolower($latestVersion));
133 133
                         $latestVersion = str_replace('final', '', mb_strtolower($latestVersion));
134 134
                     }
135
-                    $moduleVersion = ($helper->getModule()->getInfo('version') . '_' . $helper->getModule()->getInfo('module_status'));
135
+                    $moduleVersion = ($helper->getModule()->getInfo('version').'_'.$helper->getModule()->getInfo('module_status'));
136 136
                     //"PHP-standardized" version
137 137
                     $moduleVersion = str_replace(' ', '', mb_strtolower($moduleVersion));
138 138
                     //                    $moduleVersion = '1.0'; //for testing only
Please login to merge, or discard this patch.
modules/tools/class/Common/ServerStats.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -38,19 +38,19 @@  discard block
 block discarded – undo
38 38
         //        $query = $GLOBALS['xoopsDB']->query($sql);
39 39
         //        list($meta) = $GLOBALS['xoopsDB']->fetchRow($query);
40 40
         $html .= '<fieldset>';
41
-        $html .= "<legend style='font-weight: bold; color: #900;'>" . constant('CO_' . $moduleDirNameUpper . '_IMAGEINFO') . '</legend>';
41
+        $html .= "<legend style='font-weight: bold; color: #900;'>".constant('CO_'.$moduleDirNameUpper.'_IMAGEINFO').'</legend>';
42 42
         $html .= "<div style='padding: 8px;'>";
43 43
         //        $html .= '<div>' . constant('CO_' . $moduleDirNameUpper . '_METAVERSION') . $meta . "</div>";
44 44
         //        $html .= "<br>";
45 45
         //        $html .= "<br>";
46
-        $html .= '<div>' . constant('CO_' . $moduleDirNameUpper . '_SPHPINI') . '</div>';
46
+        $html .= '<div>'.constant('CO_'.$moduleDirNameUpper.'_SPHPINI').'</div>';
47 47
         $html .= '<ul>';
48 48
 
49
-        $gdlib = function_exists('gd_info') ? '<span style="color: #008000;">' . constant('CO_' . $moduleDirNameUpper . '_GDON') . '</span>' : '<span style="color: #ff0000;">' . constant('CO_' . $moduleDirNameUpper . '_GDOFF') . '</span>';
50
-        $html  .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS') . $gdlib;
49
+        $gdlib = function_exists('gd_info') ? '<span style="color: #008000;">'.constant('CO_'.$moduleDirNameUpper.'_GDON').'</span>' : '<span style="color: #ff0000;">'.constant('CO_'.$moduleDirNameUpper.'_GDOFF').'</span>';
50
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS').$gdlib;
51 51
         if (function_exists('gd_info')) {
52 52
             if (true === ($gdlib = gd_info())) {
53
-                $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_GDLIBVERSION') . '<b>' . $gdlib['GD Version'] . '</b>';
53
+                $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_GDLIBVERSION').'<b>'.$gdlib['GD Version'].'</b>';
54 54
             }
55 55
         }
56 56
 
@@ -60,18 +60,18 @@  discard block
 block discarded – undo
60 60
         //    $registerglobals = (!ini_get('register_globals')) ? "<span style=\"color: #008000;\">" . constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>' : "<span style=\"color: #ff0000;\">" . constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>';
61 61
         //    $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_REGISTERGLOBALS . $registerglobals;
62 62
 
63
-        $downloads = ini_get('file_uploads') ? '<span style="color: #008000;">' . constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>' : '<span style="color: #ff0000;">' . constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>';
64
-        $html      .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS') . $downloads;
63
+        $downloads = ini_get('file_uploads') ? '<span style="color: #008000;">'.constant('CO_'.$moduleDirNameUpper.'_ON').'</span>' : '<span style="color: #ff0000;">'.constant('CO_'.$moduleDirNameUpper.'_OFF').'</span>';
64
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS').$downloads;
65 65
 
66
-        $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE') . ' <b><span style="color: #0000ff;">' . ini_get('upload_max_filesize') . '</span></b>';
67
-        $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE') . ' <b><span style="color: #0000ff;">' . ini_get('post_max_size') . '</span></b>';
68
-        $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT') . ' <b><span style="color: #0000ff;">' . ini_get('memory_limit') . '</span></b>';
66
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE').' <b><span style="color: #0000ff;">'.ini_get('upload_max_filesize').'</span></b>';
67
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE').' <b><span style="color: #0000ff;">'.ini_get('post_max_size').'</span></b>';
68
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT').' <b><span style="color: #0000ff;">'.ini_get('memory_limit').'</span></b>';
69 69
         $html .= '</ul>';
70 70
         $html .= '<ul>';
71
-        $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_SERVERPATH') . ' <b>' . XOOPS_ROOT_PATH . '</b>';
71
+        $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_SERVERPATH').' <b>'.XOOPS_ROOT_PATH.'</b>';
72 72
         $html .= '</ul>';
73 73
         $html .= '<br>';
74
-        $html .= constant('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC') . '';
74
+        $html .= constant('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC').'';
75 75
         $html .= '</div>';
76 76
         $html .= '</fieldset><br>';
77 77
 
Please login to merge, or discard this patch.
class/smarty/xoops_plugins/function.xoBlk.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,19 +26,19 @@
 block discarded – undo
26 26
     user=admin
27 27
 }>
28 28
 */
29
-function smarty_function_xoBlk( $params, $smarty )
29
+function smarty_function_xoBlk($params, $smarty)
30 30
 {
31 31
     /** @var Smarty $smarty */
32 32
     $old_caching = $smarty->caching;
33 33
     $old_cache_lifetime = $smarty->cache_lifetime;
34 34
     if (isset($params['cachetime'])) {
35 35
         $smarty->caching = 2;
36
-        $smarty->cache_lifetime = (int)$params['cachetime'];
36
+        $smarty->cache_lifetime = (int) $params['cachetime'];
37 37
     } else {
38 38
         $smarty->caching = 0;
39 39
     }
40
-    $tplName = 'db:' . $params['template'];
41
-    $params['cacheid'] = $params['cacheid'] ?? ('xoBlk_' . md5(var_export($params, true)));
40
+    $tplName = 'db:'.$params['template'];
41
+    $params['cacheid'] = $params['cacheid'] ?? ('xoBlk_'.md5(var_export($params, true)));
42 42
     if (!isset($params['cachetime']) || !$smarty->is_cached($tplName, $params['cacheid'])) {
43 43
         $myBlock = [
44 44
             'dirname' => $params['module'],
Please login to merge, or discard this patch.