Passed
Push — master ( 762245...66eec6 )
by Michael
02:15
created
testdata/index.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 use XoopsModules\Extcal;
19 19
 use XoopsModules\Extcal\Common;
20 20
 
21
-require dirname(dirname(dirname(__DIR__))) . '/mainfile.php';
22
-include dirname(__DIR__) . '/preloads/autoloader.php';
21
+require dirname(dirname(dirname(__DIR__))).'/mainfile.php';
22
+include dirname(__DIR__).'/preloads/autoloader.php';
23 23
 $op = \Xmf\Request::getCmd('op', '');
24 24
 
25 25
 switch ($op) {
@@ -51,14 +51,14 @@  discard block
 block discarded – undo
51 51
     $tables = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getInfo('tables');
52 52
 
53 53
     foreach ($tables as $table) {
54
-        $tabledata = \Xmf\Yaml::readWrapped($table . '.yml');
54
+        $tabledata = \Xmf\Yaml::readWrapped($table.'.yml');
55 55
         \Xmf\Database\TableLoad::truncateTable($table);
56 56
         \Xmf\Database\TableLoad::loadTableFromArray($table, $tabledata);
57 57
     }
58 58
 
59 59
 
60 60
     //  ---  COPY test folder files ---------------
61
-    if (is_array ($configurator->copyTestFolders) && count($configurator->copyTestFolders) > 0) {
61
+    if (is_array($configurator->copyTestFolders) && count($configurator->copyTestFolders) > 0) {
62 62
         //        $file = __DIR__ . '/../testdata/images/';
63 63
         foreach (array_keys($configurator->copyTestFolders) as $i) {
64 64
             $src  = $configurator->copyTestFolders[$i][0];
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         }
68 68
     }
69 69
 
70
-    redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS'));
70
+    redirect_header('../admin/index.php', 1, constant('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS'));
71 71
 }
72 72
 
73 73
 function saveSampleData()
@@ -78,10 +78,10 @@  discard block
 block discarded – undo
78 78
     $tables = \Xmf\Module\Helper::getHelper($moduleDirName)->getModule()->getInfo('tables');
79 79
 
80 80
     foreach ($tables as $table) {
81
-        \Xmf\Database\TableLoad::saveTableToYamlFile($table, $table . '_' . date("Y-m-d H-i-s") . '.yml');
81
+        \Xmf\Database\TableLoad::saveTableToYamlFile($table, $table.'_'.date("Y-m-d H-i-s").'.yml');
82 82
     }
83 83
 
84
-    redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS'));
84
+    redirect_header('../admin/index.php', 1, constant('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS'));
85 85
 }
86 86
 
87 87
 function exportSchema()
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
         $migrate = new  \Xmf\Database\Migrate($moduleDirName);
94 94
         $migrate->saveCurrentSchema();
95 95
 
96
-        redirect_header('../admin/index.php', 1, constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS'));
96
+        redirect_header('../admin/index.php', 1, constant('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_SUCCESS'));
97 97
     } catch (\Exception $e) {
98
-        exit(constant('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR'));
98
+        exit(constant('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR'));
99 99
     }
100 100
 }
Please login to merge, or discard this patch.
language/english/common.php 1 patch
Spacing   +76 added lines, -76 removed lines patch added patch discarded remove patch
@@ -21,63 +21,63 @@  discard block
 block discarded – undo
21 21
 $moduleDirName      = basename(dirname(dirname(__DIR__)));
22 22
 $moduleDirNameUpper = 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
 
72 72
 //Sample Data
73
-define('CO_' . $moduleDirNameUpper . '_' . 'ADD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)');
74
-define('CO_' . $moduleDirNameUpper . '_' . 'SAMPLEDATA_SUCCESS', 'Sample Date uploaded successfully');
75
-define('CO_' . $moduleDirNameUpper . '_' . 'SAVE_SAMPLEDATA', 'Export Tables to YAML');
76
-define('CO_' . $moduleDirNameUpper . '_' . 'SHOW_SAMPLE_BUTTON', 'Show Sample Button?');
77
-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.');
78
-define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA', 'Export DB Schema to YAML');
79
-define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success');
80
-define('CO_' . $moduleDirNameUpper . '_' . 'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed');
73
+define('CO_'.$moduleDirNameUpper.'_'.'ADD_SAMPLEDATA', 'Import Sample Data (will delete ALL current data)');
74
+define('CO_'.$moduleDirNameUpper.'_'.'SAMPLEDATA_SUCCESS', 'Sample Date uploaded successfully');
75
+define('CO_'.$moduleDirNameUpper.'_'.'SAVE_SAMPLEDATA', 'Export Tables to YAML');
76
+define('CO_'.$moduleDirNameUpper.'_'.'SHOW_SAMPLE_BUTTON', 'Show Sample Button?');
77
+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.');
78
+define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA', 'Export DB Schema to YAML');
79
+define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_SUCCESS', 'Export DB Schema to YAML was a success');
80
+define('CO_'.$moduleDirNameUpper.'_'.'EXPORT_SCHEMA_ERROR', 'ERROR: Export of DB Schema to YAML failed');
81 81
 
82 82
 //letter choice
83 83
 define('CO_'.$moduleDirNameUpper.'_'.'BROWSETOTOPIC', "<span style='font-weight: bold;'>Browse items alphabetically</span>");
@@ -85,39 +85,39 @@  discard block
 block discarded – undo
85 85
 define('CO_'.$moduleDirNameUpper.'_'.'ALL', 'All');
86 86
 
87 87
 // block defines
88
-define('CO_' . $moduleDirNameUpper . '_' . 'ACCESSRIGHTS', 'Access Rights');
89
-define('CO_' . $moduleDirNameUpper . '_' . 'ACTION', 'Action');
90
-define('CO_' . $moduleDirNameUpper . '_' . 'ACTIVERIGHTS', 'Active Rights');
91
-define('CO_' . $moduleDirNameUpper . '_' . 'BADMIN', 'Block Administration');
92
-define('CO_' . $moduleDirNameUpper . '_' . 'BLKDESC', 'Description');
93
-define('CO_' . $moduleDirNameUpper . '_' . 'CBCENTER', 'Center Middle');
94
-define('CO_' . $moduleDirNameUpper . '_' . 'CBLEFT', 'Center Left');
95
-define('CO_' . $moduleDirNameUpper . '_' . 'CBRIGHT', 'Center Right');
96
-define('CO_' . $moduleDirNameUpper . '_' . 'SBLEFT', 'Left');
97
-define('CO_' . $moduleDirNameUpper . '_' . 'SBRIGHT', 'Right');
98
-define('CO_' . $moduleDirNameUpper . '_' . 'SIDE', 'Alignment');
99
-define('CO_' . $moduleDirNameUpper . '_' . 'TITLE', 'Title');
100
-define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE', 'Visible');
101
-define('CO_' . $moduleDirNameUpper . '_' . 'VISIBLEIN', 'Visible In');
102
-define('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT', 'Weight');
103
-
104
-define('CO_' . $moduleDirNameUpper . '_' . 'PERMISSIONS', 'Permissions');
105
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS', 'Blocks Admin');
106
-define('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_DESC', 'Blocks/Group Admin');
107
-
108
-define('CO_' . $moduleDirNameUpper . '_' .'BLOCKS_MANAGMENT', 'Manage');
109
-define('CO_' . $moduleDirNameUpper . '_' .'BLOCKS_ADDBLOCK', 'Add a new block');
110
-define('CO_' . $moduleDirNameUpper . '_' .'BLOCKS_EDITBLOCK', 'Edit a block');
111
-define('CO_' . $moduleDirNameUpper . '_' .'BLOCKS_CLONEBLOCK', 'Clone a block');
88
+define('CO_'.$moduleDirNameUpper.'_'.'ACCESSRIGHTS', 'Access Rights');
89
+define('CO_'.$moduleDirNameUpper.'_'.'ACTION', 'Action');
90
+define('CO_'.$moduleDirNameUpper.'_'.'ACTIVERIGHTS', 'Active Rights');
91
+define('CO_'.$moduleDirNameUpper.'_'.'BADMIN', 'Block Administration');
92
+define('CO_'.$moduleDirNameUpper.'_'.'BLKDESC', 'Description');
93
+define('CO_'.$moduleDirNameUpper.'_'.'CBCENTER', 'Center Middle');
94
+define('CO_'.$moduleDirNameUpper.'_'.'CBLEFT', 'Center Left');
95
+define('CO_'.$moduleDirNameUpper.'_'.'CBRIGHT', 'Center Right');
96
+define('CO_'.$moduleDirNameUpper.'_'.'SBLEFT', 'Left');
97
+define('CO_'.$moduleDirNameUpper.'_'.'SBRIGHT', 'Right');
98
+define('CO_'.$moduleDirNameUpper.'_'.'SIDE', 'Alignment');
99
+define('CO_'.$moduleDirNameUpper.'_'.'TITLE', 'Title');
100
+define('CO_'.$moduleDirNameUpper.'_'.'VISIBLE', 'Visible');
101
+define('CO_'.$moduleDirNameUpper.'_'.'VISIBLEIN', 'Visible In');
102
+define('CO_'.$moduleDirNameUpper.'_'.'WEIGHT', 'Weight');
103
+
104
+define('CO_'.$moduleDirNameUpper.'_'.'PERMISSIONS', 'Permissions');
105
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS', 'Blocks Admin');
106
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_DESC', 'Blocks/Group Admin');
107
+
108
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_MANAGMENT', 'Manage');
109
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_ADDBLOCK', 'Add a new block');
110
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_EDITBLOCK', 'Edit a block');
111
+define('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_CLONEBLOCK', 'Clone a block');
112 112
 
113 113
 //myblocksadmin
114
-define('CO_' . $moduleDirNameUpper . '_' . 'AGDS', 'Admin Groups');
115
-define('CO_' . $moduleDirNameUpper . '_' . 'BCACHETIME', 'Cache Time');
114
+define('CO_'.$moduleDirNameUpper.'_'.'AGDS', 'Admin Groups');
115
+define('CO_'.$moduleDirNameUpper.'_'.'BCACHETIME', 'Cache Time');
116 116
 
117 117
 //Template Admin
118
-define('CO_' . $moduleDirNameUpper . '_' . 'TPLSETS', 'Template Management');
119
-define('CO_' . $moduleDirNameUpper . '_' . 'GENERATE', 'Generate');
120
-define('CO_' . $moduleDirNameUpper . '_' . 'FILENAME', 'File Name');
118
+define('CO_'.$moduleDirNameUpper.'_'.'TPLSETS', 'Template Management');
119
+define('CO_'.$moduleDirNameUpper.'_'.'GENERATE', 'Generate');
120
+define('CO_'.$moduleDirNameUpper.'_'.'FILENAME', 'File Name');
121 121
 
122 122
 //Menu
123
-define('CO_' . $moduleDirNameUpper . '_' . 'ADMENU_MIGRATE', 'Migrate');
123
+define('CO_'.$moduleDirNameUpper.'_'.'ADMENU_MIGRATE', 'Migrate');
Please login to merge, or discard this patch.
admin/blockform.php 2 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -27,15 +27,15 @@  discard block
 block discarded – undo
27 27
 }
28 28
 $side_select = new \XoopsFormSelect(_AM_SYSTEM_BLOCKS_TYPE, 'bside', $block['side']);
29 29
 $side_select->addOptionArray([
30
-                                 0 => _AM_SYSTEM_BLOCKS_SBLEFT,
31
-                                 1 => _AM_SYSTEM_BLOCKS_SBRIGHT,
32
-                                 3 => _AM_SYSTEM_BLOCKS_CBLEFT,
33
-                                 4 => _AM_SYSTEM_BLOCKS_CBRIGHT,
34
-                                 5 => _AM_SYSTEM_BLOCKS_CBCENTER,
35
-                                 7 => _AM_SYSTEM_BLOCKS_CBBOTTOMLEFT,
36
-                                 8 => _AM_SYSTEM_BLOCKS_CBBOTTOMRIGHT,
37
-                                 9 => _AM_SYSTEM_BLOCKS_CBBOTTOM
38
-                             ]);
30
+                                    0 => _AM_SYSTEM_BLOCKS_SBLEFT,
31
+                                    1 => _AM_SYSTEM_BLOCKS_SBRIGHT,
32
+                                    3 => _AM_SYSTEM_BLOCKS_CBLEFT,
33
+                                    4 => _AM_SYSTEM_BLOCKS_CBRIGHT,
34
+                                    5 => _AM_SYSTEM_BLOCKS_CBCENTER,
35
+                                    7 => _AM_SYSTEM_BLOCKS_CBBOTTOMLEFT,
36
+                                    8 => _AM_SYSTEM_BLOCKS_CBBOTTOMRIGHT,
37
+                                    9 => _AM_SYSTEM_BLOCKS_CBBOTTOM
38
+                                ]);
39 39
 $form->addElement($side_select);
40 40
 $form->addElement(new \XoopsFormText(constant('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT'), 'bweight', 2, 5, $block['weight']));
41 41
 $form->addElement(new \XoopsFormRadioYN(constant('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE'), 'bvisible', $block['visible']));
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
     $form->addElement($textarea, true);
58 58
     $ctype_select = new \XoopsFormSelect(_AM_SYSTEM_BLOCKS_CTYPE, 'bctype', $block['ctype']);
59 59
     $ctype_select->addOptionArray([
60
-                                      'H' => _AM_SYSTEM_BLOCKS_HTML,
61
-                                      'P' => _AM_SYSTEM_BLOCKS_PHP,
62
-                                      'S' => _AM_SYSTEM_BLOCKS_AFWSMILE,
63
-                                      'T' => _AM_SYSTEM_BLOCKS_AFNOSMILE
64
-                                  ]);
60
+                                        'H' => _AM_SYSTEM_BLOCKS_HTML,
61
+                                        'P' => _AM_SYSTEM_BLOCKS_PHP,
62
+                                        'S' => _AM_SYSTEM_BLOCKS_AFWSMILE,
63
+                                        'T' => _AM_SYSTEM_BLOCKS_AFNOSMILE
64
+                                    ]);
65 65
     $form->addElement($ctype_select);
66 66
 } else {
67 67
     if ('' !== $block['template']) {
@@ -82,18 +82,18 @@  discard block
 block discarded – undo
82 82
 }
83 83
 $cache_select = new \XoopsFormSelect(_AM_SYSTEM_BLOCKS_BCACHETIME, 'bcachetime', $block['bcachetime']);
84 84
 $cache_select->addOptionArray([
85
-                                  '0'       => _NOCACHE,
86
-                                  '30'      => sprintf(_SECONDS, 30),
87
-                                  '60'      => _MINUTE,
88
-                                  '300'     => sprintf(_MINUTES, 5),
89
-                                  '1800'    => sprintf(_MINUTES, 30),
90
-                                  '3600'    => _HOUR,
91
-                                  '18000'   => sprintf(_HOURS, 5),
92
-                                  '86400'   => _DAY,
93
-                                  '259200'  => sprintf(_DAYS, 3),
94
-                                  '604800'  => _WEEK,
95
-                                  '2592000' => _MONTH
96
-                              ]);
85
+                                    '0'       => _NOCACHE,
86
+                                    '30'      => sprintf(_SECONDS, 30),
87
+                                    '60'      => _MINUTE,
88
+                                    '300'     => sprintf(_MINUTES, 5),
89
+                                    '1800'    => sprintf(_MINUTES, 30),
90
+                                    '3600'    => _HOUR,
91
+                                    '18000'   => sprintf(_HOURS, 5),
92
+                                    '86400'   => _DAY,
93
+                                    '259200'  => sprintf(_DAYS, 3),
94
+                                    '604800'  => _WEEK,
95
+                                    '2592000' => _MONTH
96
+                                ]);
97 97
 $form->addElement($cache_select);
98 98
 
99 99
 $grouppermHandler = xoops_getHandler('groupperm');
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@  discard block
 block discarded – undo
16 16
 
17 17
 
18 18
 
19
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
19
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
20 20
 
21 21
 $moduleDirName = basename(dirname(__DIR__));
22
-$moduleDirNameUpper   = strtoupper($moduleDirName); //$capsDirName
22
+$moduleDirNameUpper = strtoupper($moduleDirName); //$capsDirName
23 23
 
24 24
 $form = new \XoopsThemeForm($block['form_title'], 'blockform', 'blocksadmin.php', 'post', true);
25 25
 if (isset($block['name'])) {
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
                                  9 => _AM_SYSTEM_BLOCKS_CBBOTTOM
38 38
                              ]);
39 39
 $form->addElement($side_select);
40
-$form->addElement(new \XoopsFormText(constant('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT'), 'bweight', 2, 5, $block['weight']));
41
-$form->addElement(new \XoopsFormRadioYN(constant('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE'), 'bvisible', $block['visible']));
42
-$mod_select = new \XoopsFormSelect(constant('CO_' . $moduleDirNameUpper . '_' . 'VISIBLEIN'), 'bmodule', $block['modules'], 5, true);
40
+$form->addElement(new \XoopsFormText(constant('CO_'.$moduleDirNameUpper.'_'.'WEIGHT'), 'bweight', 2, 5, $block['weight']));
41
+$form->addElement(new \XoopsFormRadioYN(constant('CO_'.$moduleDirNameUpper.'_'.'VISIBLE'), 'bvisible', $block['visible']));
42
+$mod_select = new \XoopsFormSelect(constant('CO_'.$moduleDirNameUpper.'_'.'VISIBLEIN'), 'bmodule', $block['modules'], 5, true);
43 43
 /** @var XoopsModuleHandler $moduleHandler */
44 44
 $moduleHandler = xoops_getHandler('module');
45 45
 $criteria      = new \CriteriaCompo(new \Criteria('hasmain', 1));
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 $form->addElement(new \XoopsFormText(_AM_TITLE, 'btitle', 50, 255, $block['title']), false);
54 54
 if ($block['is_custom']) {
55 55
     $textarea = new \XoopsFormDhtmlTextArea(_AM_SYSTEM_BLOCKS_CONTENT, 'bcontent', $block['content'], 15, 70);
56
-    $textarea->setDescription('<span style="font-size:x-small;font-weight:bold;">' . _AM_SYSTEM_BLOCKS_USEFULTAGS . '</span><br><span style="font-size:x-small;font-weight:normal;">' . sprintf(_AM_BLOCKTAG1, '{X_SITEURL}', XOOPS_URL . '/') . '</span>');
56
+    $textarea->setDescription('<span style="font-size:x-small;font-weight:bold;">'._AM_SYSTEM_BLOCKS_USEFULTAGS.'</span><br><span style="font-size:x-small;font-weight:normal;">'.sprintf(_AM_BLOCKTAG1, '{X_SITEURL}', XOOPS_URL.'/').'</span>');
57 57
     $form->addElement($textarea, true);
58 58
     $ctype_select = new \XoopsFormSelect(_AM_SYSTEM_BLOCKS_CTYPE, 'bctype', $block['ctype']);
59 59
     $ctype_select->addOptionArray([
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
68 68
         $tplfileHandler = xoops_getHandler('tplfile');
69 69
         $btemplate      = $tplfileHandler->find($GLOBALS['xoopsConfig']['template_set'], 'block', $block['bid']);
70 70
         if (count($btemplate) > 0) {
71
-            $form->addElement(new \XoopsFormLabel(_AM_SYSTEM_BLOCKS_CONTENT, '<a href="' . XOOPS_URL . '/modules/system/admin.php?fct=tplsets&amp;op=edittpl&amp;id=' . $btemplate[0]->getVar('tpl_id') . '">' . _AM_SYSTEM_BLOCKS_EDITTPL . '</a>'));
71
+            $form->addElement(new \XoopsFormLabel(_AM_SYSTEM_BLOCKS_CONTENT, '<a href="'.XOOPS_URL.'/modules/system/admin.php?fct=tplsets&amp;op=edittpl&amp;id='.$btemplate[0]->getVar('tpl_id').'">'._AM_SYSTEM_BLOCKS_EDITTPL.'</a>'));
72 72
         } else {
73 73
             $btemplate2 = $tplfileHandler->find('default', 'block', $block['bid']);
74 74
             if (count($btemplate2) > 0) {
75
-                $form->addElement(new \XoopsFormLabel(_AM_SYSTEM_BLOCKS_CONTENT, '<a href="' . XOOPS_URL . '/modules/system/admin.php?fct=tplsets&amp;op=edittpl&amp;id=' . $btemplate2[0]->getVar('tpl_id') . '" target="_blank">' . _AM_SYSTEM_BLOCKS_EDITTPL . '</a>'));
75
+                $form->addElement(new \XoopsFormLabel(_AM_SYSTEM_BLOCKS_CONTENT, '<a href="'.XOOPS_URL.'/modules/system/admin.php?fct=tplsets&amp;op=edittpl&amp;id='.$btemplate2[0]->getVar('tpl_id').'" target="_blank">'._AM_SYSTEM_BLOCKS_EDITTPL.'</a>'));
76 76
             }
77 77
         }
78 78
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 $form->addElement($cache_select);
98 98
 
99 99
 $grouppermHandler = xoops_getHandler('groupperm');
100
-$groups          = $grouppermHandler->getGroupIds('block_read', $block['bid']);
100
+$groups = $grouppermHandler->getGroupIds('block_read', $block['bid']);
101 101
 
102 102
 $form->addElement(new \XoopsFormSelectGroup(_AM_SYSTEM_BLOCKS_GROUP, 'groups', true, $groups, 5, true));
103 103
 
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
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 use XoopsModules\Extcal;
34 34
 use XoopsModules\Extcal\Common;
35 35
 
36
-require_once __DIR__ . '/admin_header.php';
36
+require_once __DIR__.'/admin_header.php';
37 37
 xoops_cp_header();
38 38
 
39 39
 $adminObject->displayNavigation(basename(__FILE__));
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         if (!empty($queue)) {
77 77
             echo "<pre>\n";
78 78
             foreach ($queue as $line) {
79
-                echo $line . ";\n";
79
+                echo $line.";\n";
80 80
             }
81 81
             echo "</pre>\n";
82 82
         }
@@ -98,4 +98,4 @@  discard block
 block discarded – undo
98 98
 
99 99
 echo "<div>$message</div>";
100 100
 
101
-require_once __DIR__ . '/admin_footer.php';
101
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/blocksadmin.php 2 patches
Indentation   +70 added lines, -70 removed lines patch added patch discarded remove patch
@@ -83,28 +83,28 @@  discard block
 block discarded – undo
83 83
         echo $GLOBALS['xoopsSecurity']->getTokenHTML();
84 84
         echo "<table width='100%' class='outer' cellpadding='4' cellspacing='1'>
85 85
         <tr valign='middle'><th align='center'>"
86
-             . constant('CO_' . $moduleDirNameUpper . '_' . 'TITLE')
87
-             . "</th><th align='center' nowrap='nowrap'>"
88
-             . constant('CO_' . $moduleDirNameUpper . '_' . 'SIDE')
89
-             . '<br>'
90
-             . _LEFT
91
-             . '-'
92
-             . _CENTER
93
-             . '-'
94
-             . _RIGHT
95
-             . "</th><th align='center'>"
96
-             . constant('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT')
97
-             . "</th><th align='center'>"
98
-             . constant('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE')
99
-             . "</th><th align='center'>"
100
-             . _AM_SYSTEM_BLOCKS_VISIBLEIN
101
-             . "</th><th align='center'>"
102
-             . _AM_SYSTEM_ADGS
103
-             . "</th><th align='center'>"
104
-             . _AM_SYSTEM_BLOCKS_BCACHETIME
105
-             . "</th><th align='center'>"
106
-             . constant('CO_' . $moduleDirNameUpper . '_' . 'ACTION')
107
-             . '</th></tr>
86
+                . constant('CO_' . $moduleDirNameUpper . '_' . 'TITLE')
87
+                . "</th><th align='center' nowrap='nowrap'>"
88
+                . constant('CO_' . $moduleDirNameUpper . '_' . 'SIDE')
89
+                . '<br>'
90
+                . _LEFT
91
+                . '-'
92
+                . _CENTER
93
+                . '-'
94
+                . _RIGHT
95
+                . "</th><th align='center'>"
96
+                . constant('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT')
97
+                . "</th><th align='center'>"
98
+                . constant('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE')
99
+                . "</th><th align='center'>"
100
+                . _AM_SYSTEM_BLOCKS_VISIBLEIN
101
+                . "</th><th align='center'>"
102
+                . _AM_SYSTEM_ADGS
103
+                . "</th><th align='center'>"
104
+                . _AM_SYSTEM_BLOCKS_BCACHETIME
105
+                . "</th><th align='center'>"
106
+                . constant('CO_' . $moduleDirNameUpper . '_' . 'ACTION')
107
+                . '</th></tr>
108 108
         ';
109 109
         $block_arr   = \XoopsBlock::getByModule($xoopsModule->mid());
110 110
         $block_count = count($block_arr);
@@ -170,69 +170,69 @@  discard block
 block discarded – undo
170 170
             }
171 171
             $name = $i->getVar('name');
172 172
             echo "<tr valign='top'><td class='$class' align='center'><input type='text' name='title["
173
-                 . $i->getVar('bid')
174
-                 . "]' value='"
175
-                 . $title
176
-                 . "'></td><td class='$class' align='center' nowrap='nowrap'>
173
+                    . $i->getVar('bid')
174
+                    . "]' value='"
175
+                    . $title
176
+                    . "'></td><td class='$class' align='center' nowrap='nowrap'>
177 177
                     <div align='center' >
178 178
                     <input type='radio' name='side["
179
-                 . $i->getVar('bid')
180
-                 . "]' value='"
181
-                 . XOOPS_CENTERBLOCK_LEFT
182
-                 . "'$ssel2>
179
+                    . $i->getVar('bid')
180
+                    . "]' value='"
181
+                    . XOOPS_CENTERBLOCK_LEFT
182
+                    . "'$ssel2>
183 183
                         <input type='radio' name='side["
184
-                 . $i->getVar('bid')
185
-                 . "]' value='"
186
-                 . XOOPS_CENTERBLOCK_CENTER
187
-                 . "'$ssel3>
184
+                    . $i->getVar('bid')
185
+                    . "]' value='"
186
+                    . XOOPS_CENTERBLOCK_CENTER
187
+                    . "'$ssel3>
188 188
                     <input type='radio' name='side["
189
-                 . $i->getVar('bid')
190
-                 . "]' value='"
191
-                 . XOOPS_CENTERBLOCK_RIGHT
192
-                 . "'$ssel4>
189
+                    . $i->getVar('bid')
190
+                    . "]' value='"
191
+                    . XOOPS_CENTERBLOCK_RIGHT
192
+                    . "'$ssel4>
193 193
                     </div>
194 194
                     <div>
195 195
                         <span style='float:right;'><input type='radio' name='side["
196
-                 . $i->getVar('bid')
197
-                 . "]' value='"
198
-                 . XOOPS_SIDEBLOCK_RIGHT
199
-                 . "'$ssel1></span>
196
+                    . $i->getVar('bid')
197
+                    . "]' value='"
198
+                    . XOOPS_SIDEBLOCK_RIGHT
199
+                    . "'$ssel1></span>
200 200
                     <div align='left'><input type='radio' name='side["
201
-                 . $i->getVar('bid')
202
-                 . "]' value='"
203
-                 . XOOPS_SIDEBLOCK_LEFT
204
-                 . "'$ssel0></div>
201
+                    . $i->getVar('bid')
202
+                    . "]' value='"
203
+                    . XOOPS_SIDEBLOCK_LEFT
204
+                    . "'$ssel0></div>
205 205
                     </div>
206 206
                     <div align='center'>
207 207
                     <input type='radio' name='side["
208
-                 . $i->getVar('bid')
209
-                 . "]' value='"
210
-                 . XOOPS_CENTERBLOCK_BOTTOMLEFT
211
-                 . "'$ssel5>
208
+                    . $i->getVar('bid')
209
+                    . "]' value='"
210
+                    . XOOPS_CENTERBLOCK_BOTTOMLEFT
211
+                    . "'$ssel5>
212 212
                         <input type='radio' name='side["
213
-                 . $i->getVar('bid')
214
-                 . "]' value='"
215
-                 . XOOPS_CENTERBLOCK_BOTTOM
216
-                 . "'$ssel7>
213
+                    . $i->getVar('bid')
214
+                    . "]' value='"
215
+                    . XOOPS_CENTERBLOCK_BOTTOM
216
+                    . "'$ssel7>
217 217
                     <input type='radio' name='side["
218
-                 . $i->getVar('bid')
219
-                 . "]' value='"
220
-                 . XOOPS_CENTERBLOCK_BOTTOMRIGHT
221
-                 . "'$ssel6>
218
+                    . $i->getVar('bid')
219
+                    . "]' value='"
220
+                    . XOOPS_CENTERBLOCK_BOTTOMRIGHT
221
+                    . "'$ssel6>
222 222
                     </div>
223 223
                 </td><td class='$class' align='center'><input type='text' name='weight["
224
-                 . $i->getVar('bid')
225
-                 . "]' value='"
226
-                 . $i->getVar('weight')
227
-                 . "' size='5' maxlength='5'></td><td class='$class' align='center' nowrap><input type='radio' name='visible["
228
-                 . $i->getVar('bid')
229
-                 . "]' value='1'$sel1>"
230
-                 . _YES
231
-                 . "&nbsp;<input type='radio' name='visible["
232
-                 . $i->getVar('bid')
233
-                 . "]' value='0'$sel0>"
234
-                 . _NO
235
-                 . '</td>';
224
+                    . $i->getVar('bid')
225
+                    . "]' value='"
226
+                    . $i->getVar('weight')
227
+                    . "' size='5' maxlength='5'></td><td class='$class' align='center' nowrap><input type='radio' name='visible["
228
+                    . $i->getVar('bid')
229
+                    . "]' value='1'$sel1>"
230
+                    . _YES
231
+                    . "&nbsp;<input type='radio' name='visible["
232
+                    . $i->getVar('bid')
233
+                    . "]' value='0'$sel0>"
234
+                    . _NO
235
+                    . '</td>';
236 236
 
237 237
             echo "<td class='$class' align='center'><select size='5' name='bmodule[" . $i->getVar('bid') . "][]' id='bmodule[" . $i->getVar('bid') . "][]' multiple='multiple'>";
238 238
             foreach ($module_list as $k => $v) {
Please login to merge, or discard this patch.
Spacing   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -16,21 +16,21 @@  discard block
 block discarded – undo
16 16
 
17 17
 use Xmf\Request;
18 18
 
19
-require __DIR__ . '/admin_header.php';
19
+require __DIR__.'/admin_header.php';
20 20
 
21 21
 $moduleDirName = basename(dirname(__DIR__));
22
-$moduleDirNameUpper   = strtoupper($moduleDirName); //$capsDirName
22
+$moduleDirNameUpper = strtoupper($moduleDirName); //$capsDirName
23 23
 
24 24
 if (!is_object($GLOBALS['xoopsUser']) || !is_object($xoopsModule)
25 25
     || !$GLOBALS['xoopsUser']->isAdmin($xoopsModule->mid())) {
26
-    exit(constant('CO_' . $moduleDirNameUpper . '_' . 'ERROR403'));
26
+    exit(constant('CO_'.$moduleDirNameUpper.'_'.'ERROR403'));
27 27
 }
28 28
 if ($GLOBALS['xoopsUser']->isAdmin($xoopsModule->mid())) {
29
-    require_once XOOPS_ROOT_PATH . '/class/xoopsblock.php';
29
+    require_once XOOPS_ROOT_PATH.'/class/xoopsblock.php';
30 30
     $op = 'list';
31 31
     if (isset($_POST)) {
32 32
         foreach ($_POST as $k => $v) {
33
-            ${$k} =$v;
33
+            ${$k} = $v;
34 34
         }
35 35
     }
36 36
     /*
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
     function listBlocks()
56 56
     {
57 57
         global $xoopsModule, $pathIcon16;
58
-        require_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
58
+        require_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
59 59
         $moduleDirName = basename(dirname(__DIR__));
60
-        $moduleDirNameUpper   = strtoupper($moduleDirName); //$capsDirName
60
+        $moduleDirNameUpper = strtoupper($moduleDirName); //$capsDirName
61 61
         $db = \XoopsDatabaseFactory::getDatabaseConnection();
62 62
         xoops_loadLanguage('admin', 'system');
63 63
         xoops_loadLanguage('admin/blocksadmin', 'system');
@@ -77,15 +77,15 @@  discard block
 block discarded – undo
77 77
         $module_list[0]  = _AM_SYSTEM_BLOCKS_ALLPAGES;
78 78
         ksort($module_list);
79 79
         echo "
80
-        <h4 style='text-align:left;'>" . constant('CO_' . $moduleDirNameUpper . '_' . 'BADMIN') . '</h4>';
80
+        <h4 style='text-align:left;'>" . constant('CO_'.$moduleDirNameUpper.'_'.'BADMIN').'</h4>';
81 81
         $moduleHandler = xoops_getHandler('module');
82
-        echo "<form action='" . $_SERVER['PHP_SELF'] . "' name='blockadmin' method='post'>";
82
+        echo "<form action='".$_SERVER['PHP_SELF']."' name='blockadmin' method='post'>";
83 83
         echo $GLOBALS['xoopsSecurity']->getTokenHTML();
84 84
         echo "<table width='100%' class='outer' cellpadding='4' cellspacing='1'>
85 85
         <tr valign='middle'><th align='center'>"
86
-             . constant('CO_' . $moduleDirNameUpper . '_' . 'TITLE')
86
+             . constant('CO_'.$moduleDirNameUpper.'_'.'TITLE')
87 87
              . "</th><th align='center' nowrap='nowrap'>"
88
-             . constant('CO_' . $moduleDirNameUpper . '_' . 'SIDE')
88
+             . constant('CO_'.$moduleDirNameUpper.'_'.'SIDE')
89 89
              . '<br>'
90 90
              . _LEFT
91 91
              . '-'
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
              . '-'
94 94
              . _RIGHT
95 95
              . "</th><th align='center'>"
96
-             . constant('CO_' . $moduleDirNameUpper . '_' . 'WEIGHT')
96
+             . constant('CO_'.$moduleDirNameUpper.'_'.'WEIGHT')
97 97
              . "</th><th align='center'>"
98
-             . constant('CO_' . $moduleDirNameUpper . '_' . 'VISIBLE')
98
+             . constant('CO_'.$moduleDirNameUpper.'_'.'VISIBLE')
99 99
              . "</th><th align='center'>"
100 100
              . _AM_SYSTEM_BLOCKS_VISIBLEIN
101 101
              . "</th><th align='center'>"
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
              . "</th><th align='center'>"
104 104
              . _AM_SYSTEM_BLOCKS_BCACHETIME
105 105
              . "</th><th align='center'>"
106
-             . constant('CO_' . $moduleDirNameUpper . '_' . 'ACTION')
106
+             . constant('CO_'.$moduleDirNameUpper.'_'.'ACTION')
107 107
              . '</th></tr>
108 108
         ';
109 109
         $block_arr   = \XoopsBlock::getByModule($xoopsModule->mid());
@@ -124,11 +124,11 @@  discard block
 block discarded – undo
124 124
         ];
125 125
         foreach ($block_arr as $i) {
126 126
             $groups_perms = $grouppermHandler->getGroupIds('block_read', $i->getVar('bid'));
127
-            $sql          = 'SELECT module_id FROM ' . $db->prefix('block_module_link') . ' WHERE block_id=' . $i->getVar('bid');
127
+            $sql          = 'SELECT module_id FROM '.$db->prefix('block_module_link').' WHERE block_id='.$i->getVar('bid');
128 128
             $result       = $db->query($sql);
129 129
             $modules      = [];
130 130
             while (false !== ($row = $db->fetchArray($result))) {
131
-                $modules[] = (int)$row['module_id'];
131
+                $modules[] = (int) $row['module_id'];
132 132
             }
133 133
 
134 134
             $cachetime_options = '';
@@ -234,47 +234,47 @@  discard block
 block discarded – undo
234 234
                  . _NO
235 235
                  . '</td>';
236 236
 
237
-            echo "<td class='$class' align='center'><select size='5' name='bmodule[" . $i->getVar('bid') . "][]' id='bmodule[" . $i->getVar('bid') . "][]' multiple='multiple'>";
237
+            echo "<td class='$class' align='center'><select size='5' name='bmodule[".$i->getVar('bid')."][]' id='bmodule[".$i->getVar('bid')."][]' multiple='multiple'>";
238 238
             foreach ($module_list as $k => $v) {
239
-                echo "<option value='$k'" . (in_array($k, $modules) ? " selected='selected'" : '') . ">$v</option>";
239
+                echo "<option value='$k'".(in_array($k, $modules) ? " selected='selected'" : '').">$v</option>";
240 240
             }
241 241
             echo '</select></td>';
242 242
 
243
-            echo "<td class='$class' align='center'><select size='5' name='groups[" . $i->getVar('bid') . "][]' id='groups[" . $i->getVar('bid') . "][]' multiple='multiple'>";
243
+            echo "<td class='$class' align='center'><select size='5' name='groups[".$i->getVar('bid')."][]' id='groups[".$i->getVar('bid')."][]' multiple='multiple'>";
244 244
             foreach ($groups as $grp) {
245
-                echo "<option value='" . $grp->getVar('groupid') . "' " . (in_array($grp->getVar('groupid'), $groups_perms) ? " selected='selected'" : '') . '>' . $grp->getVar('name') . '</option>';
245
+                echo "<option value='".$grp->getVar('groupid')."' ".(in_array($grp->getVar('groupid'), $groups_perms) ? " selected='selected'" : '').'>'.$grp->getVar('name').'</option>';
246 246
             }
247 247
             echo '</select></td>';
248 248
 
249 249
             // Cache lifetime
250
-            echo '<td class="' . $class . '" align="center"> <select name="bcachetime[' . $i->getVar('bid') . ']" size="1">' . $cachetime_options . '</select>
250
+            echo '<td class="'.$class.'" align="center"> <select name="bcachetime['.$i->getVar('bid').']" size="1">'.$cachetime_options.'</select>
251 251
                                     </td>';
252 252
 
253 253
             // Actions
254 254
 
255
-            echo "<td class='$class' align='center'><a href='blocksadmin.php?op=edit&amp;bid=" . $i->getVar('bid') . "'><img src=" . $pathIcon16 . '/edit.png' . " alt='" . _EDIT . "' title='" . _EDIT . "'>
256
-                 </a> <a href='blocksadmin.php?op=clone&amp;bid=" . $i->getVar('bid') . "'><img src=" . $pathIcon16 . '/editcopy.png' . " alt='" . _CLONE . "' title='" . _CLONE . "'>
255
+            echo "<td class='$class' align='center'><a href='blocksadmin.php?op=edit&amp;bid=".$i->getVar('bid')."'><img src=".$pathIcon16.'/edit.png'." alt='"._EDIT."' title='"._EDIT."'>
256
+                 </a> <a href='blocksadmin.php?op=clone&amp;bid=" . $i->getVar('bid')."'><img src=".$pathIcon16.'/editcopy.png'." alt='"._CLONE."' title='"._CLONE."'>
257 257
                  </a>";
258 258
             if ('S' !== $i->getVar('block_type') && 'M' !== $i->getVar('block_type')) {
259
-                echo "&nbsp;<a href='" . XOOPS_URL . '/modules/system/admin.php?fct=blocksadmin&amp;op=delete&amp;bid=' . $i->getVar('bid') . "'><img src=" . $pathIcon16 . '/delete.png' . " alt='" . _DELETE . "' title='" . _DELETE . "'>
259
+                echo "&nbsp;<a href='".XOOPS_URL.'/modules/system/admin.php?fct=blocksadmin&amp;op=delete&amp;bid='.$i->getVar('bid')."'><img src=".$pathIcon16.'/delete.png'." alt='"._DELETE."' title='"._DELETE."'>
260 260
                      </a>";
261 261
             }
262 262
             echo "
263
-            <input type='hidden' name='oldtitle[" . $i->getVar('bid') . "]' value='" . $i->getVar('title') . "'>
264
-            <input type='hidden' name='oldside[" . $i->getVar('bid') . "]' value='" . $i->getVar('side') . "'>
265
-            <input type='hidden' name='oldweight[" . $i->getVar('bid') . "]' value='" . $i->getVar('weight') . "'>
266
-            <input type='hidden' name='oldvisible[" . $i->getVar('bid') . "]' value='" . $i->getVar('visible') . "'>
267
-            <input type='hidden' name='oldgroups[" . $i->getVar('groups') . "]' value='" . $i->getVar('groups') . "'>
268
-            <input type='hidden' name='oldbcachetime[" . $i->getVar('bid') . "]' value='" . $i->getVar('bcachetime') . "'>
269
-            <input type='hidden' name='bid[" . $i->getVar('bid') . "]' value='" . $i->getVar('bid') . "'>
263
+            <input type='hidden' name='oldtitle[" . $i->getVar('bid')."]' value='".$i->getVar('title')."'>
264
+            <input type='hidden' name='oldside[" . $i->getVar('bid')."]' value='".$i->getVar('side')."'>
265
+            <input type='hidden' name='oldweight[" . $i->getVar('bid')."]' value='".$i->getVar('weight')."'>
266
+            <input type='hidden' name='oldvisible[" . $i->getVar('bid')."]' value='".$i->getVar('visible')."'>
267
+            <input type='hidden' name='oldgroups[" . $i->getVar('groups')."]' value='".$i->getVar('groups')."'>
268
+            <input type='hidden' name='oldbcachetime[" . $i->getVar('bid')."]' value='".$i->getVar('bcachetime')."'>
269
+            <input type='hidden' name='bid[" . $i->getVar('bid')."]' value='".$i->getVar('bid')."'>
270 270
             </td></tr>
271 271
             ";
272 272
             $class = ('even' === $class) ? 'odd' : 'even';
273 273
         }
274 274
         echo "<tr><td class='foot' align='center' colspan='8'>
275 275
         <input type='hidden' name='op' value='order'>
276
-        " . $GLOBALS['xoopsSecurity']->getTokenHTML() . "
277
-        <input type='submit' name='submit' value='" . _SUBMIT . "'>
276
+        " . $GLOBALS['xoopsSecurity']->getTokenHTML()."
277
+        <input type='submit' name='submit' value='" . _SUBMIT."'>
278 278
         </td></tr></table>
279 279
         </form>
280 280
         <br><br>";
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
      */
286 286
     function cloneBlock($bid)
287 287
     {
288
-        require_once __DIR__ . '/admin_header.php';
288
+        require_once __DIR__.'/admin_header.php';
289 289
         //require_once __DIR__ . '/admin_header.php';
290 290
         xoops_cp_header();
291 291
 
@@ -296,16 +296,16 @@  discard block
 block discarded – undo
296 296
         //        mpu_adm_menu();
297 297
         $myblock = new \XoopsBlock($bid);
298 298
         $db      = \XoopsDatabaseFactory::getDatabaseConnection();
299
-        $sql     = 'SELECT module_id FROM ' . $db->prefix('block_module_link') . ' WHERE block_id=' . (int)$bid;
299
+        $sql     = 'SELECT module_id FROM '.$db->prefix('block_module_link').' WHERE block_id='.(int) $bid;
300 300
         $result  = $db->query($sql);
301 301
         $modules = [];
302 302
         while (false !== ($row = $db->fetchArray($result))) {
303
-            $modules[] = (int)$row['module_id'];
303
+            $modules[] = (int) $row['module_id'];
304 304
         }
305 305
         $is_custom = ('C' === $myblock->getVar('block_type') || 'E' === $myblock->getVar('block_type'));
306 306
         $block     = [
307
-            'title'      => $myblock->getVar('title') . ' Clone',
308
-            'form_title' => constant('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS_CLONEBLOCK'),
307
+            'title'      => $myblock->getVar('title').' Clone',
308
+            'form_title' => constant('CO_'.$moduleDirNameUpper.'_'.'BLOCKS_CLONEBLOCK'),
309 309
             'name'       => $myblock->getVar('name'),
310 310
             'side'       => $myblock->getVar('side'),
311 311
             'weight'     => $myblock->getVar('weight'),
@@ -321,11 +321,11 @@  discard block
 block discarded – undo
321 321
             'template'   => $myblock->getVar('template'),
322 322
             'options'    => $myblock->getVar('options')
323 323
         ];
324
-        echo '<a href="blocksadmin.php">' . _AM_BADMIN . '</a>&nbsp;<span style="font-weight:bold;">&raquo;&raquo;</span>&nbsp;' . _AM_SYSTEM_BLOCKS_CLONEBLOCK . '<br><br>';
325
-        require_once __DIR__   . '/blockform.php';
324
+        echo '<a href="blocksadmin.php">'._AM_BADMIN.'</a>&nbsp;<span style="font-weight:bold;">&raquo;&raquo;</span>&nbsp;'._AM_SYSTEM_BLOCKS_CLONEBLOCK.'<br><br>';
325
+        require_once __DIR__.'/blockform.php';
326 326
         $form->display();
327 327
         //        xoops_cp_footer();
328
-        require_once __DIR__ . '/admin_footer.php';
328
+        require_once __DIR__.'/admin_footer.php';
329 329
         exit();
330 330
     }
331 331
 
@@ -389,13 +389,13 @@  discard block
 block discarded – undo
389 389
         }
390 390
         $db = \XoopsDatabaseFactory::getDatabaseConnection();
391 391
         foreach ($bmodule as $bmid) {
392
-            $sql = 'INSERT INTO ' . $db->prefix('block_module_link') . ' (block_id, module_id) VALUES (' . $newid . ', ' . $bmid . ')';
392
+            $sql = 'INSERT INTO '.$db->prefix('block_module_link').' (block_id, module_id) VALUES ('.$newid.', '.$bmid.')';
393 393
             $db->query($sql);
394 394
         }
395
-        $groups =& $GLOBALS['xoopsUser']->getGroups();
395
+        $groups = & $GLOBALS['xoopsUser']->getGroups();
396 396
         $count  = count($groups);
397 397
         for ($i = 0; $i < $count; ++$i) {
398
-            $sql = 'INSERT INTO ' . $db->prefix('group_permission') . ' (gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES (' . $groups[$i] . ', ' . $newid . ", 1, 'block_read')";
398
+            $sql = 'INSERT INTO '.$db->prefix('group_permission').' (gperm_groupid, gperm_itemid, gperm_modid, gperm_name) VALUES ('.$groups[$i].', '.$newid.", 1, 'block_read')";
399 399
             $db->query($sql);
400 400
         }
401 401
         redirect_header('blocksadmin.php?op=listar', 1, _AM_DBUPDATED);
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
      */
426 426
     function xtubeEditBlock($bid)
427 427
     {
428
-        require_once __DIR__ . '/admin_header.php';
428
+        require_once __DIR__.'/admin_header.php';
429 429
         //require_once __DIR__ . '/admin_header.php';
430 430
         xoops_cp_header();
431 431
 
@@ -435,11 +435,11 @@  discard block
 block discarded – undo
435 435
         //        mpu_adm_menu();
436 436
         $myblock = new \XoopsBlock($bid);
437 437
         $db      = \XoopsDatabaseFactory::getDatabaseConnection();
438
-        $sql     = 'SELECT module_id FROM ' . $db->prefix('block_module_link') . ' WHERE block_id=' . (int)$bid;
438
+        $sql     = 'SELECT module_id FROM '.$db->prefix('block_module_link').' WHERE block_id='.(int) $bid;
439 439
         $result  = $db->query($sql);
440 440
         $modules = [];
441 441
         while (false !== ($row = $db->fetchArray($result))) {
442
-            $modules[] = (int)$row['module_id'];
442
+            $modules[] = (int) $row['module_id'];
443 443
         }
444 444
         $is_custom = ('C' === $myblock->getVar('block_type') || 'E' === $myblock->getVar('block_type'));
445 445
         $block     = [
@@ -460,11 +460,11 @@  discard block
 block discarded – undo
460 460
             'template'   => $myblock->getVar('template'),
461 461
             'options'    => $myblock->getVar('options')
462 462
         ];
463
-        echo '<a href="blocksadmin.php">' . _AM_BADMIN . '</a>&nbsp;<span style="font-weight:bold;">&raquo;&raquo;</span>&nbsp;' . _AM_SYSTEM_BLOCKS_EDITBLOCK . '<br><br>';
464
-        require_once __DIR__   . '/blockform.php';
463
+        echo '<a href="blocksadmin.php">'._AM_BADMIN.'</a>&nbsp;<span style="font-weight:bold;">&raquo;&raquo;</span>&nbsp;'._AM_SYSTEM_BLOCKS_EDITBLOCK.'<br><br>';
464
+        require_once __DIR__.'/blockform.php';
465 465
         $form->display();
466 466
         //        xoops_cp_footer();
467
-        require_once __DIR__ . '/admin_footer.php';
467
+        require_once __DIR__.'/admin_footer.php';
468 468
         exit();
469 469
     }
470 470
 
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
                 $GLOBALS['xoopsDB']->query($sql);
498 498
             } else {
499 499
                 foreach ($bmodule as $bmid) {
500
-                    $sql = sprintf('INSERT INTO `%s` (block_id, module_id) VALUES (%u, %d)', $GLOBALS['xoopsDB']->prefix('block_module_link'), $bid, (int)$bmid);
500
+                    $sql = sprintf('INSERT INTO `%s` (block_id, module_id) VALUES (%u, %d)', $GLOBALS['xoopsDB']->prefix('block_module_link'), $bid, (int) $bmid);
501 501
                     $GLOBALS['xoopsDB']->query($sql);
502 502
                 }
503 503
             }
@@ -510,14 +510,14 @@  discard block
 block discarded – undo
510 510
                 $GLOBALS['xoopsDB']->query($sql);
511 511
             }
512 512
         }
513
-        redirect_header($_SERVER['PHP_SELF'], 1, constant('CO_' . $moduleDirNameUpper . '_' . 'UPDATE_SUCCESS'));
513
+        redirect_header($_SERVER['PHP_SELF'], 1, constant('CO_'.$moduleDirNameUpper.'_'.'UPDATE_SUCCESS'));
514 514
     }
515 515
 
516 516
     if ('list' === $op) {
517 517
         xoops_cp_header();
518 518
         //        mpu_adm_menu();
519 519
         listBlocks();
520
-        require_once __DIR__ . '/admin_footer.php';
520
+        require_once __DIR__.'/admin_footer.php';
521 521
         exit();
522 522
     }
523 523
 
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
                     $GLOBALS['xoopsDB']->query($sql);
540 540
                 } else {
541 541
                     foreach ($bmodule[$i] as $bmid) {
542
-                        $sql = sprintf('INSERT INTO `%s` (block_id, module_id) VALUES (%u, %d)', $GLOBALS['xoopsDB']->prefix('block_module_link'), $bid[$i], (int)$bmid);
542
+                        $sql = sprintf('INSERT INTO `%s` (block_id, module_id) VALUES (%u, %d)', $GLOBALS['xoopsDB']->prefix('block_module_link'), $bid[$i], (int) $bmid);
543 543
                         $GLOBALS['xoopsDB']->query($sql);
544 544
                     }
545 545
                 }
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
                 }
554 554
             }
555 555
         }
556
-        redirect_header($_SERVER['PHP_SELF'], 1, constant('CO_' . $moduleDirNameUpper . '_' . 'UPDATE_SUCCESS'));
556
+        redirect_header($_SERVER['PHP_SELF'], 1, constant('CO_'.$moduleDirNameUpper.'_'.'UPDATE_SUCCESS'));
557 557
     }
558 558
     if ('clone' === $op) {
559 559
         cloneBlock($bid);
@@ -571,5 +571,5 @@  discard block
 block discarded – undo
571 571
         isBlockCloned($bid, $bside, $bweight, $bvisible, $bcachetime, $bmodule, $options);
572 572
     }
573 573
 } else {
574
-    echo constant('CO_' . $moduleDirNameUpper . '_' . 'ERROR403');
574
+    echo constant('CO_'.$moduleDirNameUpper.'_'.'ERROR403');
575 575
 }
Please login to merge, or discard this patch.
admin/menu.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -22,14 +22,14 @@  discard block
 block discarded – undo
22 22
 // require_once  dirname(__DIR__) . '/class/Helper.php';
23 23
 //require_once  dirname(__DIR__) . '/include/common.php';
24 24
 
25
-require_once dirname(__DIR__) . '/preloads/autoloader.php';
25
+require_once dirname(__DIR__).'/preloads/autoloader.php';
26 26
 
27 27
 $moduleDirName      = basename(dirname(__DIR__));
28 28
 $moduleDirNameUpper = strtoupper($moduleDirName);
29 29
 
30 30
 $helper = Extcal\Helper::getInstance();
31 31
 
32
-$pathIcon32    = \Xmf\Module\Admin::menuIconPath('');
32
+$pathIcon32 = \Xmf\Module\Admin::menuIconPath('');
33 33
 if (is_object($helper->getModule())) {
34 34
     $pathModIcon32 = $helper->getModule()->getInfo('modicons32');
35 35
 }
@@ -37,29 +37,29 @@  discard block
 block discarded – undo
37 37
 $adminmenu[] = [
38 38
     'title' => _MI_EXTCAL_INDEX,
39 39
     'link'  => 'admin/index.php',
40
-    'icon'  => $pathIcon32 . '/home.png'
40
+    'icon'  => $pathIcon32.'/home.png'
41 41
 ];
42 42
 
43 43
 $adminmenu[] = [
44 44
     'title' => _MI_EXTCAL_CATEGORY,
45 45
     'link'  => 'admin/cat.php',
46
-    'icon'  => $pathIcon32 . '/category.png'
46
+    'icon'  => $pathIcon32.'/category.png'
47 47
 ];
48 48
 
49 49
 $adminmenu[] = [
50 50
     'title' => _MI_EXTCAL_EVENT,
51 51
     'link'  => 'admin/event.php',
52
-    'icon'  => $pathIcon32 . '/event.png'
52
+    'icon'  => $pathIcon32.'/event.png'
53 53
 ];
54 54
 $adminmenu[] = [
55 55
     'title' => _MI_EXTCAL_LOCATIONS,
56 56
     'link'  => 'admin/location.php',
57
-    'icon'  => $pathModIcon32 . '/location.png'
57
+    'icon'  => $pathModIcon32.'/location.png'
58 58
 ];
59 59
 $adminmenu[] = [
60 60
     'title' => _MI_EXTCAL_PERMISSIONS,
61 61
     'link'  => 'admin/permissions.php',
62
-    'icon'  => $pathIcon32 . '/permissions.png'
62
+    'icon'  => $pathIcon32.'/permissions.png'
63 63
 ];
64 64
 
65 65
 // Blocks Admin
@@ -67,17 +67,17 @@  discard block
 block discarded – undo
67 67
             'title' => _MI_EXTCAL_BLOCKS_ADMIN, //'Block/Group Admin'
68 68
 //    'title' => constant('CO_' . $moduleDirNameUpper . '_' . 'BLOCKS'),
69 69
     'link'  => 'admin/blocksadmin.php',
70
-    'icon'  => $pathIcon32 . '/block.png',
70
+    'icon'  => $pathIcon32.'/block.png',
71 71
 ];
72 72
 
73 73
 $adminmenu[] = [
74 74
     'title' => _MI_EXTCAL_ADMENU_MIGRATE,
75 75
     'link'  => 'admin/migrate.php',
76
-    'icon'  => $pathIcon32 . '/database_go.png'
76
+    'icon'  => $pathIcon32.'/database_go.png'
77 77
 ];
78 78
 
79 79
 $adminmenu[] = [
80 80
     'title' => _MI_EXTCAL_ABOUT,
81 81
     'link'  => 'admin/about.php',
82
-    'icon'  => $pathIcon32 . '/about.png'
82
+    'icon'  => $pathIcon32.'/about.png'
83 83
 ];
Please login to merge, or discard this patch.
include/config.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -23,34 +23,34 @@  discard block
 block discarded – undo
23 23
     $moduleDirName      = basename(dirname(__DIR__));
24 24
     $moduleDirNameUpper = strtoupper($moduleDirName);
25 25
 
26
-    return (object)[
27
-        'name'           => strtoupper($moduleDirName) . ' Module Configurator',
26
+    return (object) [
27
+        'name'           => strtoupper($moduleDirName).' Module Configurator',
28 28
         'paths'          => [
29 29
             'dirname'    => $moduleDirName,
30
-            'admin'      => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
31
-            'modPath'    => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
32
-            'modUrl'     => XOOPS_URL . '/modules/' . $moduleDirName,
33
-            'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
34
-            'uploadUrl'  => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
30
+            'admin'      => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin',
31
+            'modPath'    => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName,
32
+            'modUrl'     => XOOPS_URL.'/modules/'.$moduleDirName,
33
+            'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
34
+            'uploadUrl'  => XOOPS_UPLOAD_URL.'/'.$moduleDirName,
35 35
         ],
36 36
         'uploadFolders'  => [
37
-            XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
38
-            XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images',
39
-            XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/thumbnails'
37
+            XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
38
+            XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images',
39
+            XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images/thumbnails'
40 40
         ],
41 41
         'copyBlankFiles' => [
42
-            XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images',
43
-            XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/thumbnails'
42
+            XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images',
43
+            XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images/thumbnails'
44 44
         ],
45 45
 
46 46
         'copyTestFolders' => [
47 47
             [
48
-                XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/images',
49
-                XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images',
48
+                XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/images',
49
+                XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images',
50 50
             ],
51 51
             [
52
-                XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs',
53
-                XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/thumbs',
52
+                XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/thumbs',
53
+                XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/thumbs',
54 54
             ]
55 55
         ],
56 56
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             //         'XX_archive'     => 'ZZZZ_archive',
76 76
         ],
77 77
         'modCopyright'    => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'>
78
-                     <img src='" . XOOPS_URL . '/modules/' . $moduleDirName . '_AUTHOR_LOGOIMG' . '\' alt=\'XOOPS Project\' /></a>',
78
+                     <img src='" . XOOPS_URL.'/modules/'.$moduleDirName.'_AUTHOR_LOGOIMG'.'\' alt=\'XOOPS Project\' /></a>',
79 79
 
80 80
     ];
81 81
 }
Please login to merge, or discard this patch.
class/Common/Configurator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@
 block discarded – undo
44 44
     public function __construct()
45 45
     {
46 46
         $moduleDirName = basename(dirname(dirname(__DIR__)));
47
-        $moduleDirNameUpper   = strtoupper($moduleDirName);
47
+        $moduleDirNameUpper = strtoupper($moduleDirName);
48 48
 
49
-        require dirname(dirname(__DIR__)) . '/include/config.php';
49
+        require dirname(dirname(__DIR__)).'/include/config.php';
50 50
         $config = getConfig();
51 51
 
52 52
         $this->name            = $config->name;
Please login to merge, or discard this patch.
class/Common/Migrate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
      * @throws \InvalidArgumentException
32 32
      */
33 33
     public function __construct(Extcal\Common\Configurator  $configurator)
34
-    {   require_once  dirname(dirname(__DIR__)) . '/include/config.php';
34
+    {   require_once  dirname(dirname(__DIR__)).'/include/config.php';
35 35
 //        $config = getConfig();
36
-        $this->renameTables            = $configurator->renameTables;
36
+        $this->renameTables = $configurator->renameTables;
37 37
 
38 38
         $moduleDirName = basename(dirname(dirname(__DIR__)));
39 39
         parent::__construct($moduleDirName);
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                 $this->synchronizeTable($tableName);
91 91
                 $updateTable = $GLOBALS['xoopsDB']->prefix($tableName);
92 92
                 $joinTable   = $GLOBALS['xoopsDB']->prefix($srcTableName);
93
-                $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';
93
+                $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 94
                 $this->tableHandler->addToQueue($sql);
95 95
             }
96 96
         }
Please login to merge, or discard this patch.