Passed
Push — master ( c94053...32c740 )
by Michael
38s queued 13s
created
class/Files/Templates/user/Pages.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
79 79
 
80
-        return $hc->getSmartyIncludeFile($moduleDirname, 'header', '','','',"\n\n");
80
+        return $hc->getSmartyIncludeFile($moduleDirname, 'header', '', '', '', "\n\n");
81 81
     }
82 82
 
83 83
     /**
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $tbody  .= $this->getTemplatesUserPagesTableTfoot();
97 97
         $single = $hc->getSmartySingleVar('table_type');
98 98
 
99
-        return $hc->getHtmlTable($tbody, 'table table-' . $single, "\t");
99
+        return $hc->getHtmlTable($tbody, 'table table-'.$single, "\t");
100 100
     }
101 101
 
102 102
     /**
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $hc           = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
111 111
         $stuTableName = mb_strtoupper($tableName);
112 112
         $single       = $hc->getSmartySingleVar('divideby');
113
-        $lang         = $hc->getSmartyConst($language, $stuTableName . '_TITLE');
113
+        $lang         = $hc->getSmartyConst($language, $stuTableName.'_TITLE');
114 114
         $th           = $hc->getHtmlTableHead($lang, '', $single, "\t\t\t\t");
115 115
         $tr           = $hc->getHtmlTableRow($th, 'head', "\t\t\t");
116 116
 
@@ -130,14 +130,14 @@  discard block
 block discarded – undo
130 130
         $hc      = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
131 131
         $single  = $hc->getSmartySingleVar('panel_type');
132 132
         $include = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName, "\t\t\t\t\t\t", "\n");
133
-        $div     = $hc->getHtmlDiv($include, 'panel panel-' . $single, "\t\t\t\t\t", "\n");
133
+        $div     = $hc->getHtmlDiv($include, 'panel panel-'.$single, "\t\t\t\t\t", "\n");
134 134
         $cont    = $hc->getHtmlTableData($div, '', '', "\t\t\t\t", "\n", true);
135 135
         $html    = $hc->getHtmlEmpty('</tr><tr>', "\t\t\t\t\t", "\n");
136
-        $cont    .= $hc->getSmartyConditions($tableSoleName . '.count', ' is div by ', '$divideby', $html, '', '', '',"\t\t\t\t");
137
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont,'','',"\t\t\t\t");
138
-        $tr      = $hc->getHtmlTableRow($foreach,'',"\t\t\t");
136
+        $cont .= $hc->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$divideby', $html, '', '', '', "\t\t\t\t");
137
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont, '', '', "\t\t\t\t");
138
+        $tr      = $hc->getHtmlTableRow($foreach, '', "\t\t\t");
139 139
 
140
-        return $hc->getHtmlTableTbody($tr,'',"\t\t");
140
+        return $hc->getHtmlTableTbody($tr, '', "\t\t");
141 141
     }
142 142
 
143 143
     /**
Please login to merge, or discard this patch.
class/Files/Templates/Admin/TemplatesAdminPages.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -94,23 +94,23 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $hc         = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
96 96
         $th         = '';
97
-        $langHeadId = mb_strtoupper($tableSoleName) . '_ID';
97
+        $langHeadId = mb_strtoupper($tableSoleName).'_ID';
98 98
         if (1 == $tableAutoincrement) {
99 99
             $lang = $hc->getSmartyConst($language, $langHeadId);
100
-            $th   .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t");
100
+            $th .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t");
101 101
         }
102 102
         foreach (array_keys($fields) as $f) {
103 103
             $fieldName     = $fields[$f]->getVar('field_name');
104 104
             $rpFieldName   = $this->getRightString($fieldName);
105
-            $langFieldName = mb_strtoupper($tableSoleName) . '_' . mb_strtoupper($rpFieldName);
105
+            $langFieldName = mb_strtoupper($tableSoleName).'_'.mb_strtoupper($rpFieldName);
106 106
             if (1 == $fields[$f]->getVar('field_inlist')) {
107 107
                 $lang = $hc->getSmartyConst($language, $langFieldName);
108
-                $th   .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t");
108
+                $th .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t");
109 109
             }
110 110
         }
111 111
 
112 112
         $lang = $hc->getSmartyConst($language, 'FORM_ACTION');
113
-        $th   .= $hc->getHtmlTag('th', ['class' => 'center width5'], $lang, false, "\t\t\t\t");
113
+        $th .= $hc->getHtmlTag('th', ['class' => 'center width5'], $lang, false, "\t\t\t\t");
114 114
         //$tr   = $hc->getHtmlTag('tr', ['class' => 'head'], $th, false, "\t\t\t");
115 115
         $tr   = $hc->getHtmlTableRow($th, 'head', "\t\t\t");
116 116
         //$ret  = $hc->getHtmlTag('thead', [], $tr, false, "\t\t");
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         if (1 == $tableAutoincrement) {
137 137
             $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
138 138
             //$td     .= $hc->getHtmlTableData($double, 'center');
139
-            $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t\t");
139
+            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t\t");
140 140
         }
141 141
         foreach (array_keys($fields) as $f) {
142 142
             $fieldName    = $fields[$f]->getVar('field_name');
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                         // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">...
154 154
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
155 155
                         $span   = $hc->getHtmlTag('span', [], $double);
156
-                        $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $span, false, "\t\t\t\t");
156
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span, false, "\t\t\t\t");
157 157
                         /*$ret .= <<<EOT
158 158
                     <td class="center"><span style="background-color: #<{\$list.{$rpFieldName}}>;">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>\n
159 159
 EOT;*/
@@ -165,15 +165,15 @@  discard block
 block discarded – undo
165 165
                         $td  .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t\t");
166 166
                         break;
167 167
                     case 13:
168
-                        $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
168
+                        $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
169 169
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
170
-                        $img    = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, '', '');
171
-                        $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t\t");
170
+                        $img    = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, '', '');
171
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t\t");
172 172
                         break;
173 173
                     default:
174 174
                         if (0 != $f) {
175 175
                             $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
176
-                            $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t\t");
176
+                            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t\t");
177 177
                         }
178 178
                         break;
179 179
                 }
@@ -182,20 +182,20 @@  discard block
 block discarded – undo
182 182
         $lang    = $hc->getSmartyConst('', '_EDIT');
183 183
         $double  = $hc->getSmartyDoubleVar($tableSoleName, 'id');
184 184
         $src     = $hc->getSmartyNoSimbol('xoModuleIcons16 edit.png');
185
-        $img     = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true,'', '');
186
-        $anchor  = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&amp;{$fieldId}=" . $double, 'title' => $lang], $img, false, "\t\t\t\t\t");
185
+        $img     = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', '');
186
+        $anchor  = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&amp;{$fieldId}=".$double, 'title' => $lang], $img, false, "\t\t\t\t\t");
187 187
         $lang    = $hc->getSmartyConst('', '_DELETE');
188 188
         $double  = $hc->getSmartyDoubleVar($tableSoleName, 'id');
189 189
         $src     = $hc->getSmartyNoSimbol('xoModuleIcons16 delete.png');
190 190
         $img     = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', '');
191
-        $anchor  .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&amp;{$fieldId}=" . $double, 'title' => $lang], $img, false, "\t\t\t\t\t");
192
-        $td      .= $hc->getHtmlTag('td', ['class' => 'center  width5'], "\n" . $anchor . "\t\t\t\t", false, "\t\t\t\t");
191
+        $anchor  .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&amp;{$fieldId}=".$double, 'title' => $lang], $img, false, "\t\t\t\t\t");
192
+        $td      .= $hc->getHtmlTag('td', ['class' => 'center  width5'], "\n".$anchor."\t\t\t\t", false, "\t\t\t\t");
193 193
         $cycle   = $hc->getSmartyNoSimbol('cycle values=\'odd, even\'');
194 194
         $tr      = $hc->getHtmlTableRow($td, $cycle, "\t\t\t");
195
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr, '','', "\t\t\t");
196
-        $tbody   = $hc->getHtmlTableTbody($foreach,'' , "\t\t");
195
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr, '', '', "\t\t\t");
196
+        $tbody   = $hc->getHtmlTableTbody($foreach, '', "\t\t");
197 197
 
198
-        return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody, '', false, false, "\t\t");
198
+        return $hc->getSmartyConditions($tableName.'_count', '', '', $tbody, '', false, false, "\t\t");
199 199
     }
200 200
 
201 201
     /**
@@ -235,8 +235,8 @@  discard block
 block discarded – undo
235 235
         $single    = $hc->getSmartySingleVar('pagenav');
236 236
         $div       = $hc->getHtmlTag('div', ['class' => 'xo-pagenav floatright'], $single, false, "\t\t");
237 237
         $div       .= $hc->getHtmlTag('div', ['class' => 'clear spacer'], '', false, "\t\t", "\n");
238
-        $htmlTable .= $hc->getSmartyConditions('pagenav', '', '', $div, '', '', '', "\t" );
239
-        $ifList    = $hc->getSmartyConditions($tableName . '_list', '', '', $htmlTable);
238
+        $htmlTable .= $hc->getSmartyConditions('pagenav', '', '', $div, '', '', '', "\t");
239
+        $ifList    = $hc->getSmartyConditions($tableName.'_list', '', '', $htmlTable);
240 240
         $single    = $hc->getSmartySingleVar('form', "\t", "\n");
241 241
         $divComm   = $hc->getHtmlComment('Display navigation');
242 242
         //$divComm .= $hc->getHtmlTag('div', array('class' => 'errorMsg'), $single);
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         $strong = $hc->getHtmlTag('strong', [], $single, false, '', '');
246 246
         $div    = $hc->getHtmlTag('div', ['class' => 'errorMsg'], $strong, false, "\t", "\n");
247 247
         $ifList .= $hc->getSmartyConditions('error', '', '', $div);
248
-        $ifList .= $hc->getHtmlEmpty('', '', "\n");;
248
+        $ifList .= $hc->getHtmlEmpty('', '', "\n"); ;
249 249
 
250 250
         return $ifList;
251 251
     }
Please login to merge, or discard this patch.
class/Files/Templates/Admin/TemplatesAdminHeader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,10 +78,10 @@
 block discarded – undo
78 78
         $moduleDirname = $module->getVar('mod_dirname');
79 79
 
80 80
         $navigation = $hc->getSmartySingleVar('navigation');
81
-        $due        = $hc->getHtmlSpan($navigation, 'left', "\t") ;
81
+        $due        = $hc->getHtmlSpan($navigation, 'left', "\t");
82 82
         $buttons    = $hc->getSmartySingleVar('buttons');
83 83
         $right      = $hc->getHtmlSpan($buttons, 'left', "\t\t", "\n");
84
-        $due        .= $hc->getSmartyConditions('buttons', '', '', $right, '', '', '', "\t", "\n");
84
+        $due .= $hc->getSmartyConditions('buttons', '', '', $right, '', '', '', "\t", "\n");
85 85
         $content    = $hc->getHtmlDiv($due, 'top');
86 86
 
87 87
         $this->create($moduleDirname, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
Please login to merge, or discard this patch.
class/Files/Templates/Admin/TemplatesAdminFooter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -80,13 +80,13 @@
 block discarded – undo
80 80
         $supportName   = $module->getVar('mod_support_name');
81 81
         $language      = $this->getLanguage($moduleDirname, 'AM');
82 82
         $singleNoVar = $hc->getSmartyNoSimbol('xoModuleIcons32 xoopsmicrobutton.gif');
83
-        $img         = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', true, '','');
84
-        $anchor      = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img) ;
85
-        $content     = $hc->getHtmlTag('div', ['class' => 'center'], "\n\t" . $anchor);
83
+        $img         = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', true, '', '');
84
+        $anchor      = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img);
85
+        $content     = $hc->getHtmlTag('div', ['class' => 'center'], "\n\t".$anchor);
86 86
         $tree        = $hc->getHtmlTag('strong', [], $moduleName, false, '', '');
87 87
         $tree        .= $hc->getSmartyConst($language, 'MAINTAINEDBY');
88
-        $tree        .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit ' . $supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName);
89
-        $content     .= $hc->getHtmlTag('div', ['class' => 'center smallsmall italic pad5'], "\n\t" . $tree);
88
+        $tree        .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit '.$supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName);
89
+        $content     .= $hc->getHtmlTag('div', ['class' => 'center smallsmall italic pad5'], "\n\t".$tree);
90 90
 
91 91
         $this->create($moduleDirname, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
92 92
 
Please login to merge, or discard this patch.
class/Files/Templates/Blocks/TemplatesBlocks.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             $fieldName    = $fields[$f]->getVar('field_name');
85 85
             $stuFieldName = mb_strtoupper($fieldName);
86 86
             $lang         = $hc->getSmartyConst($language, $stuFieldName);
87
-            $th           .= $hc->getHtmlTableHead($lang, 'center', '', "\t\t\t");
87
+            $th .= $hc->getHtmlTableHead($lang, 'center', '', "\t\t\t");
88 88
         }
89 89
         $tr = $hc->getHtmlTableRow($th, 'head', "\t\t");
90 90
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $td = '';
109 109
         if (1 == $tableAutoincrement) {
110 110
             $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
111
-            $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $double);
111
+            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double);
112 112
         }
113 113
         $fields = $this->getTableFields($tableMid, $tableId);
114 114
         foreach (array_keys($fields) as $f) {
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                         // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">...
127 127
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
128 128
                         $span   = $hc->getHtmlTag('span', [], $double);
129
-                        $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $span, false, "\t\t\t");
129
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span, false, "\t\t\t");
130 130
                         /*$ret .= <<<EOT
131 131
                     <td class="center"><span style="background-color: #<{\$list.{$rpFieldName}}>;">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>\n
132 132
 EOT;*/
@@ -134,19 +134,19 @@  discard block
 block discarded – undo
134 134
                     case 10:
135 135
                         $src = $hc->getSmartyNoSimbol('xoModuleIcons32');
136 136
                         $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
137
-                        $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true,'','');
137
+                        $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', '');
138 138
                         $td  .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t");
139 139
                         break;
140 140
                     case 13:
141
-                        $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
141
+                        $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
142 142
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
143
-                        $img    = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName], '', true, '', '');
144
-                        $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t");
143
+                        $img    = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName], '', true, '', '');
144
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t");
145 145
                         break;
146 146
                     default:
147 147
                         if (0 != $f) {
148 148
                             $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
149
-                            $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t");
149
+                            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t");
150 150
                         }
151 151
                         break;
152 152
                 }
@@ -156,18 +156,18 @@  discard block
 block discarded – undo
156 156
         $double  = $hc->getSmartyDoubleVar($tableSoleName, 'id');
157 157
         $src     = $hc->getSmartyNoSimbol('xoModuleIcons32 edit.png');
158 158
         $img     = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', '');
159
-        $anchor  = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&amp;{$fieldId}=" . $double, 'title' => $lang], $img, false, "\t\t\t\t");
159
+        $anchor  = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&amp;{$fieldId}=".$double, 'title' => $lang], $img, false, "\t\t\t\t");
160 160
         $lang    = $hc->getSmartyConst('', '_DELETE');
161 161
         $double  = $hc->getSmartyDoubleVar($tableSoleName, 'id');
162 162
         $src     = $hc->getSmartyNoSimbol('xoModuleIcons32 delete.png');
163
-        $img     = $hc->getHtmlTag('img', ['src' => $src . $double, 'alt' => $tableName], '', true, '', '');
164
-        $anchor  .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&amp;{$fieldId}=" . $double, 'title' => $lang], $img, false, "\t\t\t\t");
165
-        $td      .= $hc->getHtmlTag('td', ['class' => 'center'], "\n" . $anchor . "\t\t\t", false, "\t\t\t");
163
+        $img     = $hc->getHtmlTag('img', ['src' => $src.$double, 'alt' => $tableName], '', true, '', '');
164
+        $anchor  .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&amp;{$fieldId}=".$double, 'title' => $lang], $img, false, "\t\t\t\t");
165
+        $td      .= $hc->getHtmlTag('td', ['class' => 'center'], "\n".$anchor."\t\t\t", false, "\t\t\t");
166 166
         $cycle   = $hc->getSmartyNoSimbol('cycle values="odd, even"');
167
-        $tr      = $hc->getHtmlTag('tr', ['class' => $cycle], $td. "\t\t", false, "\t\t");
167
+        $tr      = $hc->getHtmlTag('tr', ['class' => $cycle], $td."\t\t", false, "\t\t");
168 168
         //$foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr) . PHP_EOL;
169
-        $foreach = $hc->getSmartyForeach($tableSoleName, 'block', $tr, '','', "\t\t");
170
-        $tbody   = $hc->getHtmlTableTbody($foreach,'' , "\t");
169
+        $foreach = $hc->getSmartyForeach($tableSoleName, 'block', $tr, '', '', "\t\t");
170
+        $tbody   = $hc->getHtmlTableTbody($foreach, '', "\t");
171 171
 
172 172
         //return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody) . PHP_EOL;
173 173
         return $hc->getSmartyConditions("block", '', '', $tbody, false, true, true, "\t");
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         $tbody  .= $this->getTemplatesBlocksTableTfoot();
206 206
         $single = $hc->getSmartySingleVar('table_type');
207 207
 
208
-        return $hc->getHtmlTable($tbody, 'table table-' . $single);
208
+        return $hc->getHtmlTable($tbody, 'table table-'.$single);
209 209
     }
210 210
 
211 211
     /**
Please login to merge, or discard this patch.
class/Files/CreateHtmlSmartyCodes.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $str = '';
93 93
         foreach ($attributes as $name => $value) {
94 94
             if ('_' !== $name) {
95
-                $str .= ' ' . $name . '="' . $value . '"';
95
+                $str .= ' '.$name.'="'.$value.'"';
96 96
             }
97 97
         }
98 98
 
@@ -177,11 +177,11 @@  discard block
 block discarded – undo
177 177
         $rDivClass = ('' != $divClass) ? " class='{$divClass}'" : '';
178 178
 
179 179
         if ($split) {
180
-            $ret       = "{$t}<div{$rDivClass}>{$n}";
180
+            $ret = "{$t}<div{$rDivClass}>{$n}";
181 181
             $ret       .= "{$content}";
182 182
             $ret       .= "{$t}</div>{$n}";
183 183
         } else {
184
-            $ret       = "{$t}<div{$rDivClass}>{$content}</div>{$n}";
184
+            $ret = "{$t}<div{$rDivClass}>{$content}</div>{$n}";
185 185
         }
186 186
 
187 187
         return $ret;
@@ -307,15 +307,15 @@  discard block
 block discarded – undo
307 307
      * @param bool $split
308 308
      * @return string
309 309
      */
310
-    public function getHtmlLi($content = '', $liClass = '', $t = '', $n = "\n",  $split = false)
310
+    public function getHtmlLi($content = '', $liClass = '', $t = '', $n = "\n", $split = false)
311 311
     {
312 312
         $rLiClass = ('' != $liClass) ? " class='{$liClass}'" : '';
313 313
         if ($split) {
314
-            $ret       = "{$t}<li{$rLiClass}>{$n}";
314
+            $ret = "{$t}<li{$rLiClass}>{$n}";
315 315
             $ret       .= "{$content}";
316 316
             $ret       .= "{$t}</li>{$n}";
317 317
         } else {
318
-            $ret       = "{$t}<li{$rLiClass}>{$content}</li>{$n}";
318
+            $ret = "{$t}<li{$rLiClass}>{$content}</li>{$n}";
319 319
         }
320 320
 
321 321
         return $ret;
@@ -447,11 +447,11 @@  discard block
 block discarded – undo
447 447
     {
448 448
         $rTfootClass = ('' != $tfootClass) ? " class='{$tfootClass}'" : '';
449 449
         if ($split) {
450
-            $ret         = "{$t}<tfoot{$rTfootClass}>{$n}";
450
+            $ret = "{$t}<tfoot{$rTfootClass}>{$n}";
451 451
             $ret         .= "{$content}";
452 452
             $ret         .= "{$t}</tfoot>{$n}";
453 453
         } else {
454
-            $ret         = "{$t}<tfoot{$rTfootClass}>{$content}</tfoot>{$n}";
454
+            $ret = "{$t}<tfoot{$rTfootClass}>{$content}</tfoot>{$n}";
455 455
         }
456 456
 
457 457
         return $ret;
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
         $rThClass = ('' != $thClass) ? " class='{$thClass}'" : '';
493 493
         $colspan  = ('' != $colspan) ? " colspan='{$colspan}'" : '';
494 494
         if ($split) {
495
-            $ret      = "{$t}<th{$colspan}{$rThClass}>{$n}";
495
+            $ret = "{$t}<th{$colspan}{$rThClass}>{$n}";
496 496
             $ret      .= "{$content}";
497 497
             $ret      .= "{$t}</th>{$n}";
498 498
         } else {
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
         $rTdClass = ('' != $tdClass) ? " class='{$tdClass}'" : '';
518 518
         $colspan  = ('' != $colspan) ? " colspan='{$colspan}'" : '';
519 519
         if ($split) {
520
-            $ret      = "{$t}<td{$colspan}{$rTdClass}>{$n}";
520
+            $ret = "{$t}<td{$colspan}{$rTdClass}>{$n}";
521 521
             $ret      .= "{$content}";
522 522
             $ret      .= "{$t}</td>{$n}";
523 523
         } else {
Please login to merge, or discard this patch.
class/Files/CreateArchitecture.php 1 patch
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -81,12 +81,12 @@  discard block
 block discarded – undo
81 81
             $table     = $helper->getHandler('Tables')->get($tableId);
82 82
         }
83 83
 
84
-        $indexFile       = XOOPS_UPLOAD_PATH . '/index.html';
84
+        $indexFile       = XOOPS_UPLOAD_PATH.'/index.html';
85 85
         $stlModuleAuthor = str_replace(' ', '', mb_strtolower($module->getVar('mod_author')));
86 86
         $this->setModuleName($module->getVar('mod_dirname'));
87 87
         $uploadPath = $this->getUploadPath();
88 88
         // Creation of "module" folder in the Directory repository
89
-        $this->makeDir($uploadPath . '/' . $this->getModuleName());
89
+        $this->makeDir($uploadPath.'/'.$this->getModuleName());
90 90
         if (1 != $module->getVar('mod_user')) {
91 91
             // Copied of index.html file in "root module" folder
92 92
             $this->copyFile('', $indexFile, 'index.html');
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
             'docs'                            => $indexFile,
114 114
             'assets/images'                   => $indexFile,
115 115
             'assets/js'                       => $indexFile,
116
-            'language/' . $language           => $indexFile,
117
-            'language/' . $language . '/help' => $indexFile,
116
+            'language/'.$language           => $indexFile,
117
+            'language/'.$language.'/help' => $indexFile,
118 118
             'preloads'                        => $indexFile,
119 119
         ];
120 120
         foreach ($copyFiles as $k => $v) {
@@ -124,20 +124,20 @@  discard block
 block discarded – undo
124 124
         //Copy the logo of the module
125 125
         $modImage = str_replace(' ', '', mb_strtolower($module->getVar('mod_image')));
126 126
         $targetImage = 'logoModule.png';
127
-        $this->copyFile('assets/images', TDMC_UPLOAD_IMGMOD_PATH . '/' . $modImage, $targetImage);
127
+        $this->copyFile('assets/images', TDMC_UPLOAD_IMGMOD_PATH.'/'.$modImage, $targetImage);
128 128
 
129 129
         // Copy of 'module_author_logo.png' file in uploads dir
130
-        $logoPng     = $stlModuleAuthor . '_logo.png';
131
-        $logoGifFrom = TDMC_UPLOAD_IMGMOD_PATH . '/' . $logoPng;
130
+        $logoPng     = $stlModuleAuthor.'_logo.png';
131
+        $logoGifFrom = TDMC_UPLOAD_IMGMOD_PATH.'/'.$logoPng;
132 132
         // If file exists
133 133
         if (!file_exists($logoGifFrom)) {
134 134
             // Rename file
135
-            $copyFile    = TDMC_IMAGES_LOGOS_URL . '/xoopsdevelopmentteam_logo.gif';
135
+            $copyFile    = TDMC_IMAGES_LOGOS_URL.'/xoopsdevelopmentteam_logo.gif';
136 136
             $copyNewFile = $logoGifFrom;
137 137
             copy($copyFile, $copyNewFile);
138 138
         } else {
139 139
             // Copy file
140
-            $copyFile    = TDMC_IMAGES_LOGOS_URL . '/' . $logoPng;
140
+            $copyFile    = TDMC_IMAGES_LOGOS_URL.'/'.$logoPng;
141 141
             $copyNewFile = $logoGifFrom;
142 142
             copy($copyFile, $copyNewFile);
143 143
         }
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         ];
154 154
         foreach ($docs as $k => $v) {
155 155
             // Creation of folder docs and .txt files
156
-            $this->makeDirAndCopyFile('docs', TDMC_DOCS_PATH . $k, $v);
156
+            $this->makeDirAndCopyFile('docs', TDMC_DOCS_PATH.$k, $v);
157 157
         }
158 158
         if (!empty($tableName)) {
159 159
             if (1 == $module->getVar('mod_admin') || 1 == $module->getVar('mod_user')) {
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
             $this->makeDirAndCopyFile('sql', $indexFile, 'index.html');
173 173
             if ((1 == $module->getVar('mod_notifications')) && (1 == $table->getVar('table_notifications'))) {
174 174
                 // Creation of "language/local_language/mail_template" folder and index.html file
175
-                $this->makeDirAndCopyFile('language/' . $language . '/mail_template', $indexFile, 'index.html');
175
+                $this->makeDirAndCopyFile('language/'.$language.'/mail_template', $indexFile, 'index.html');
176 176
             }
177 177
         }
178 178
     }
@@ -239,64 +239,64 @@  discard block
 block discarded – undo
239 239
             // Get Table Object
240 240
             $table = $helper->getHandler('Tables')->get($tableId);
241 241
             // Copy of tables images file
242
-            if (file_exists($uploadTableImage = TDMC_UPLOAD_IMGTAB_PATH . '/' . $tableImage)) {
242
+            if (file_exists($uploadTableImage = TDMC_UPLOAD_IMGTAB_PATH.'/'.$tableImage)) {
243 243
                 $this->copyFile($icon32, $uploadTableImage, $tableImage);
244
-            } elseif (file_exists($uploadTableImage = XOOPS_ICONS32_PATH . '/' . $tableImage)) {
244
+            } elseif (file_exists($uploadTableImage = XOOPS_ICONS32_PATH.'/'.$tableImage)) {
245 245
                 $this->copyFile($icon32, $uploadTableImage, $tableImage);
246 246
             }
247 247
             // Creation of admin files
248 248
             if (in_array(1, $tableAdmin)) {
249 249
                 // Admin Pages File
250 250
                 $adminPages = Tdmcreate\Files\Admin\AdminPages::getInstance();
251
-                $adminPages->write($module, $table, $tableName . '.php');
251
+                $adminPages->write($module, $table, $tableName.'.php');
252 252
                 $ret[] = $adminPages->render();
253 253
                 // Admin Templates File
254 254
                 $adminTemplatesPages = Tdmcreate\Files\Templates\Admin\TemplatesAdminPages::getInstance();
255
-                $adminTemplatesPages->write($module, $table, $moduleDirname . '_admin_' . $tableName . '.tpl');
255
+                $adminTemplatesPages->write($module, $table, $moduleDirname.'_admin_'.$tableName.'.tpl');
256 256
                 $ret[] = $adminTemplatesPages->render();
257 257
             }
258 258
             // Creation of blocks
259 259
             if (in_array(1, $tableBlocks)) {
260 260
                 // Blocks Files
261 261
                 $blocksFiles = Tdmcreate\Files\Blocks\BlocksFiles::getInstance();
262
-                $blocksFiles->write($module, $table, $tableName . '.php');
262
+                $blocksFiles->write($module, $table, $tableName.'.php');
263 263
                 $ret[] = $blocksFiles->render();
264 264
                 // Templates Blocks Files
265 265
                 $templatesBlocks = Tdmcreate\Files\Templates\Blocks\TemplatesBlocks::getInstance();
266
-                $templatesBlocks->write($module, $table, $moduleDirname . '_block_' . $tableName . '.tpl');
266
+                $templatesBlocks->write($module, $table, $moduleDirname.'_block_'.$tableName.'.tpl');
267 267
                 $ret[] = $templatesBlocks->render();
268 268
             }
269 269
             // Creation of classes
270 270
             if (in_array(1, $tableAdmin, true) || in_array(1, $tableUser)) {
271 271
                 // Class Files
272 272
                 $classFiles = Tdmcreate\Files\Classes\ClassFiles::getInstance();
273
-                $classFiles->write($module, $table, $tables, $tableName . '.php');
273
+                $classFiles->write($module, $table, $tables, $tableName.'.php');
274 274
                 $ret[] = $classFiles->render();
275 275
             }
276 276
             // Creation of user files
277 277
             if (in_array(1, $tableUser)) {
278 278
                 // User Pages File
279 279
                 $userPages = Tdmcreate\Files\User\UserPages::getInstance();
280
-                $userPages->write($module, $table, $tableName . '.php');
280
+                $userPages->write($module, $table, $tableName.'.php');
281 281
                 $ret[] = $userPages->render();
282 282
                 if (in_array(0, $tableCategory)) {
283 283
                     // User Templates File
284 284
                     $userTemplatesPages = Tdmcreate\Files\Templates\User\Pages::getInstance();
285
-                    $userTemplatesPages->write($module, $table, $moduleDirname . '_' . $tableName . '.tpl');
285
+                    $userTemplatesPages->write($module, $table, $moduleDirname.'_'.$tableName.'.tpl');
286 286
                     $ret[] = $userTemplatesPages->render();
287 287
                     // User List Templates File
288 288
                     $userTemplatesPagesList = Tdmcreate\Files\Templates\User\PagesList::getInstance();
289
-                    $userTemplatesPagesList->write($module, $table, $tables, $moduleDirname . '_' . $tableName . '_list' . '.tpl');
289
+                    $userTemplatesPagesList->write($module, $table, $tables, $moduleDirname.'_'.$tableName.'_list'.'.tpl');
290 290
                     $ret[] = $userTemplatesPagesList->render();
291 291
                 }
292 292
                 if (in_array(1, $tableCategory)) {
293 293
                     // User List Templates File
294 294
                     $userTemplatesCategories = Templates\User\Categories::getInstance();
295
-                    $userTemplatesCategories->write($module, $table, $moduleDirname . '_' . $tableName . '_cat.tpl');
295
+                    $userTemplatesCategories->write($module, $table, $moduleDirname.'_'.$tableName.'_cat.tpl');
296 296
                     $ret[] = $userTemplatesCategories->render();
297 297
                     // User List Templates File
298 298
                     $userTemplatesCategoriesList = Templates\User\CategoriesList::getInstance();
299
-                    $userTemplatesCategoriesList->write($module, $table, $moduleDirname . '_' . $tableName . '_cat_list' . '.tpl');
299
+                    $userTemplatesCategoriesList->write($module, $table, $moduleDirname.'_'.$tableName.'_cat_list'.'.tpl');
300 300
                     $ret[] = $userTemplatesCategoriesList->render();
301 301
                 }
302 302
             }
@@ -337,19 +337,19 @@  discard block
 block discarded – undo
337 337
             $ret[] = $adminFooter->render();
338 338
             // Templates Admin About File
339 339
             $adminTemplatesAbout = Tdmcreate\Files\Templates\Admin\TemplatesAdminAbout::getInstance();
340
-            $adminTemplatesAbout->write($module, $moduleDirname . '_admin_about.tpl');
340
+            $adminTemplatesAbout->write($module, $moduleDirname.'_admin_about.tpl');
341 341
             $ret[] = $adminTemplatesAbout->render();
342 342
             // Templates Admin Index File
343 343
             $adminTemplatesIndex = Tdmcreate\Files\Templates\Admin\TemplatesAdminIndex::getInstance();
344
-            $adminTemplatesIndex->write($module, $moduleDirname . '_admin_index.tpl');
344
+            $adminTemplatesIndex->write($module, $moduleDirname.'_admin_index.tpl');
345 345
             $ret[] = $adminTemplatesIndex->render();
346 346
             // Templates Admin Footer File
347 347
             $adminTemplatesFooter = Tdmcreate\Files\Templates\Admin\TemplatesAdminFooter::getInstance();
348
-            $adminTemplatesFooter->write($module, $moduleDirname . '_admin_footer.tpl');
348
+            $adminTemplatesFooter->write($module, $moduleDirname.'_admin_footer.tpl');
349 349
             $ret[] = $adminTemplatesFooter->render();
350 350
             // Templates Admin Header File
351 351
             $adminTemplatesHeader = Tdmcreate\Files\Templates\Admin\TemplatesAdminHeader::getInstance();
352
-            $adminTemplatesHeader->write($module, $moduleDirname . '_admin_header.tpl');
352
+            $adminTemplatesHeader->write($module, $moduleDirname.'_admin_header.tpl');
353 353
             $ret[] = $adminTemplatesHeader->render();
354 354
             // Language Admin File
355 355
             $languageAdmin = Tdmcreate\Files\Language\LanguageAdmin::getInstance();
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
                 $ret[] = $adminPermissions->render();
385 385
                 // Templates Admin Permissions File
386 386
                 $adminTemplatesPermissions = Tdmcreate\Files\Templates\Admin\TemplatesAdminPermissions::getInstance();
387
-                $adminTemplatesPermissions->write($module, $moduleDirname . '_admin_permissions.tpl');
387
+                $adminTemplatesPermissions->write($module, $moduleDirname.'_admin_permissions.tpl');
388 388
                 $ret[] = $adminTemplatesPermissions->render();
389 389
             }
390 390
             // Creation of notifications files
@@ -448,15 +448,15 @@  discard block
 block discarded – undo
448 448
         if (1 == $module->getVar('mod_admin')) {
449 449
             // Templates Index File
450 450
             $userTemplatesIndex = Tdmcreate\Files\Templates\User\Index::getInstance();
451
-            $userTemplatesIndex->write($module, $table, $tables, $moduleDirname . '_index.tpl');
451
+            $userTemplatesIndex->write($module, $table, $tables, $moduleDirname.'_index.tpl');
452 452
             $ret[] = $userTemplatesIndex->render();
453 453
             // Templates Footer File
454 454
             $userTemplatesFooter = Tdmcreate\Files\Templates\User\Footer::getInstance();
455
-            $userTemplatesFooter->write($module, $table, $moduleDirname . '_footer.tpl');
455
+            $userTemplatesFooter->write($module, $table, $moduleDirname.'_footer.tpl');
456 456
             $ret[] = $userTemplatesFooter->render();
457 457
             // Templates Header File
458 458
             $userTemplatesHeader = Tdmcreate\Files\Templates\User\Header::getInstance();
459
-            $userTemplatesHeader->write($module, $moduleDirname . '_header.tpl');
459
+            $userTemplatesHeader->write($module, $moduleDirname.'_header.tpl');
460 460
             $ret[] = $userTemplatesHeader->render();
461 461
         }
462 462
         // Creation of user files
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
                 $ret[] = $userBroken->render();
483 483
                 // User Templates Broken File
484 484
                 $userTemplatesBroken = Templates\User\Broken::getInstance();
485
-                $userTemplatesBroken->write($module, $table, $moduleDirname . '_broken.tpl');
485
+                $userTemplatesBroken->write($module, $table, $moduleDirname.'_broken.tpl');
486 486
                 $ret[] = $userTemplatesBroken->render();
487 487
             }
488 488
             // User Pdf File
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
                 $ret[] = $userPdf->render();
493 493
                 // User Templates Pdf File
494 494
                 $userTemplatesPdf = Tdmcreate\Files\Templates\User\Pdf::getInstance();
495
-                $userTemplatesPdf->write($module, $moduleDirname . '_pdf.tpl');
495
+                $userTemplatesPdf->write($module, $moduleDirname.'_pdf.tpl');
496 496
                 $ret[] = $userTemplatesPdf->render();
497 497
             }
498 498
             // User Print File
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
                 $ret[] = $userPrint->render();
503 503
                 // User Templates Print File
504 504
                 $userTemplatesPrint = Tdmcreate\Files\Templates\User\UserPrint::getInstance();
505
-                $userTemplatesPrint->write($module, $table, $moduleDirname . '_print.tpl');
505
+                $userTemplatesPrint->write($module, $table, $moduleDirname.'_print.tpl');
506 506
                 $ret[] = $userTemplatesPrint->render();
507 507
             }
508 508
             // User Rate File
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
                 $ret[] = $userRate->render();
513 513
                 // User Templates Rate File
514 514
                 $userTemplatesRate = Tdmcreate\Files\Templates\User\Rate::getInstance();
515
-                $userTemplatesRate->write($module, $table, $moduleDirname . '_rate.tpl');
515
+                $userTemplatesRate->write($module, $table, $moduleDirname.'_rate.tpl');
516 516
                 $ret[] = $userTemplatesRate->render();
517 517
             }
518 518
             // User Rss File
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
                 $ret[] = $userRss->render();
523 523
                 // User Templates Rss File
524 524
                 $userTemplatesRss = Tdmcreate\Files\Templates\User\Rss::getInstance();
525
-                $userTemplatesRss->write($module, $moduleDirname . '_rss.tpl');
525
+                $userTemplatesRss->write($module, $moduleDirname.'_rss.tpl');
526 526
                 $ret[] = $userTemplatesRss->render();
527 527
             }
528 528
             // User Single File
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
                 $ret[] = $userSingle->render();
533 533
                 // User Templates Single File
534 534
                 $userTemplatesSingle = Tdmcreate\Files\Templates\User\Single::getInstance();
535
-                $userTemplatesSingle->write($module, $table, $moduleDirname . '_single.tpl');
535
+                $userTemplatesSingle->write($module, $table, $moduleDirname.'_single.tpl');
536 536
                 $ret[] = $userTemplatesSingle->render();
537 537
             }
538 538
             // User Submit File
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
                 $ret[] = $userSubmit->render();
543 543
                 // User Templates Submit File
544 544
                 $userTemplatesSubmit = Tdmcreate\Files\Templates\User\Submit::getInstance();
545
-                $userTemplatesSubmit->write($module, $table, $moduleDirname . '_submit.tpl');
545
+                $userTemplatesSubmit->write($module, $table, $moduleDirname.'_submit.tpl');
546 546
                 $ret[] = $userTemplatesSubmit->render();
547 547
             }// User Visit File
548 548
             if (in_array(1, $tableVisit)) {
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
             $ret[] = $languageMain->render();
570 570
             // User Templates Submit File
571 571
             $userTemplatesUserBreadcrumbs = Templates\User\Breadcrumbs::getInstance();
572
-            $userTemplatesUserBreadcrumbs->write($module, $moduleDirname . '_breadcrumbs.tpl');
572
+            $userTemplatesUserBreadcrumbs->write($module, $moduleDirname.'_breadcrumbs.tpl');
573 573
             $ret[] = $userTemplatesUserBreadcrumbs->render();
574 574
         }
575 575
         // Css Admin Styles File
Please login to merge, or discard this patch.
class/Files/CreateXoopsCode.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
         $ucfRightFiled = ucfirst($rightField);
264 264
         $value         = "date_create_from_format(_SHORTDATESTRING, \$_POST['{$fieldName}'])";
265 265
         $ret           = $this->getXcEqualsOperator("\${$tableSoleName}{$ucfRightFiled}", $value, null, false, $t);
266
-        $ret           .= $this->getXcSetVar($tableName, $fieldName, "\${$tableSoleName}{$ucfRightFiled}->getTimestamp()", $t);
266
+        $ret .= $this->getXcSetVar($tableName, $fieldName, "\${$tableSoleName}{$ucfRightFiled}->getTimestamp()", $t);
267 267
 
268 268
         return $ret;
269 269
     }
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
     {
382 382
         $ucfModuleDirname = ucfirst($moduleDirname);
383 383
         $ret              = "{$t}// Get instance of module\n";
384
-        $ret              .= "{$t}\${$moduleDirname} = {$ucfModuleDirname}Helper::getInstance();\n";
384
+        $ret .= "{$t}\${$moduleDirname} = {$ucfModuleDirname}Helper::getInstance();\n";
385 385
 
386 386
         return $ret;
387 387
     }
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
         $pTopic      = Tdmcreate\Files\CreatePhpCode::getInstance();
479 479
         $ret         = $pTopic->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t);
480 480
         $fieldParent = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, '');
481
-        $ret         .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic . 'Handler', false, $t);
481
+        $ret         .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic.'Handler', false, $t);
482 482
         $ret         .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t);
483 483
 
484 484
         return $ret;
@@ -499,8 +499,8 @@  discard block
 block discarded – undo
499 499
     public function getXcParentTopicGetVar($moduleDirname, $lpFieldName, $rpFieldName, $tableName, $tableSoleNameTopic, $tableNameTopic, $fieldNameParent, $t = '')
500 500
     {
501 501
         $pParentTopic = Tdmcreate\Files\CreatePhpCode::getInstance();
502
-        $parentTopic  = $pParentTopic->getPhpCodeCommentLine('Get', $tableNameTopic . ' Handler', $t . "\t");
503
-        $parentTopic  .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t . "\t");
502
+        $parentTopic  = $pParentTopic->getPhpCodeCommentLine('Get', $tableNameTopic.' Handler', $t."\t");
503
+        $parentTopic  .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t."\t");
504 504
         $elseGroups   = $this->getXcEqualsOperator('$groups', 'XOOPS_GROUP_ANONYMOUS');
505 505
         $ret          = $pParentTopic->getPhpCodeConditions("!isset(\${$tableNameTopic}Handler", '', '', $parentTopic, $elseGroups);
506 506
         $ret          .= $this->getXcGetVarFromID("\${$lpFieldName}['{$rpFieldName}']", $tableNameTopic, $tableSoleNameTopic, $tableName, $fieldNameParent, $t);
@@ -523,8 +523,8 @@  discard block
 block discarded – undo
523 523
         $pVarFromID   = Tdmcreate\Files\CreatePhpCode::getInstance();
524 524
         $ret          = $pVarFromID->getPhpCodeCommentLine('Get Var', $fieldName, $t);
525 525
         $getVarFromID = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldName, true, '');
526
-        $rightGet     = $this->getXcAnchorFunction($anchor . 'Handler', 'get' . $var . 'FromId', $getVarFromID);
527
-        $ret          .= $this->getXcEqualsOperator($left, $rightGet, null, false, $t);
526
+        $rightGet     = $this->getXcAnchorFunction($anchor.'Handler', 'get'.$var.'FromId', $getVarFromID);
527
+        $ret .= $this->getXcEqualsOperator($left, $rightGet, null, false, $t);
528 528
 
529 529
         return $ret;
530 530
     }
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
         $phpCodeTextArea = Tdmcreate\Files\CreatePhpCode::getInstance();
576 576
         $getVar          = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldName, true, '');
577 577
 
578
-        return $t . $phpCodeTextArea->getPhpCodeStripTags("{$lpFieldName}['{$rpFieldName}']", $getVar, false, $t);
578
+        return $t.$phpCodeTextArea->getPhpCodeStripTags("{$lpFieldName}['{$rpFieldName}']", $getVar, false, $t);
579 579
     }
580 580
 
581 581
     /**
@@ -786,9 +786,9 @@  discard block
 block discarded – undo
786 786
     {
787 787
         $assign = "{$t}\$GLOBALS['xoopsTpl']->assign(";
788 788
         if (false === $leftIsString) {
789
-            $ret = $assign . "{$tplString}, {$phpRender});\n";
789
+            $ret = $assign."{$tplString}, {$phpRender});\n";
790 790
         } else {
791
-            $ret = $assign . "'{$tplString}', {$phpRender});\n";
791
+            $ret = $assign."'{$tplString}', {$phpRender});\n";
792 792
         }
793 793
 
794 794
         return $ret;
@@ -857,7 +857,7 @@  discard block
 block discarded – undo
857 857
             return "{$t}\$GLOBALS['xoopsTpl']->display(\"db:{$displayTpl}\");\n";
858 858
         }
859 859
 
860
-        return "{$t}\$GLOBALS['xoopsTpl']->display('db:" . $displayTpl . "');\n";
860
+        return "{$t}\$GLOBALS['xoopsTpl']->display('db:".$displayTpl."');\n";
861 861
     }
862 862
 
863 863
     /**
@@ -1103,10 +1103,10 @@  discard block
 block discarded – undo
1103 1103
         $phpCodeSecurity = Tdmcreate\Files\CreatePhpCode::getInstance();
1104 1104
         $securityError   = $this->getXcSecurityErrors();
1105 1105
         $implode         = $phpCodeSecurity->getPhpCodeImplode(',', $securityError);
1106
-        $content         = "{$t}\t" . $this->getXcRedirectHeader($tableName, '', 3, $implode, $t);
1106
+        $content         = "{$t}\t".$this->getXcRedirectHeader($tableName, '', 3, $implode, $t);
1107 1107
         $securityCheck   = $this->getXcSecurityCheck();
1108 1108
 
1109
-        return $phpCodeSecurity->getPhpCodeConditions('!' . $securityCheck, '', '', $content, $t);
1109
+        return $phpCodeSecurity->getPhpCodeConditions('!'.$securityCheck, '', '', $content, $t);
1110 1110
     }
1111 1111
 
1112 1112
     /**
@@ -1119,7 +1119,7 @@  discard block
 block discarded – undo
1119 1119
     public function getXcInsertData($tableName, $language, $t = '')
1120 1120
     {
1121 1121
         $phpCodeInsertData = Tdmcreate\Files\CreatePhpCode::getInstance();
1122
-        $content           = "{$t}\t" . $this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK");
1122
+        $content           = "{$t}\t".$this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK");
1123 1123
         $handlerInsert     = $this->getXcHandler($tableName, $tableName, false, true, false, 'Obj');
1124 1124
 
1125 1125
         return $phpCodeInsertData->getPhpCodeConditions($handlerInsert, '', '', $content, $t);
@@ -1166,8 +1166,8 @@  discard block
 block discarded – undo
1166 1166
         $phpXoopsConfirm = Tdmcreate\Files\CreatePhpCode::getInstance();
1167 1167
         $array           = "array('ok' => 1, '{$fieldId}' => \${$ccFieldId}, 'op' => '{$options}')";
1168 1168
         $server          = $phpXoopsConfirm->getPhpCodeGlobalsVariables('REQUEST_URI', 'SERVER');
1169
-        $getVar          = $this->getXcGetVar('', $tableName . 'Obj', $fieldMain, true, '');
1170
-        $sprintf         = $phpXoopsConfirm->getPhpCodeSprintf($language . 'FORM_SURE_' . $stuOptions, $getVar);
1169
+        $getVar          = $this->getXcGetVar('', $tableName.'Obj', $fieldMain, true, '');
1170
+        $sprintf         = $phpXoopsConfirm->getPhpCodeSprintf($language.'FORM_SURE_'.$stuOptions, $getVar);
1171 1171
         $ret             = "{$t}xoops_confirm({$array}, {$server}, {$sprintf});\n";
1172 1172
 
1173 1173
         return $ret;
@@ -1339,7 +1339,7 @@  discard block
 block discarded – undo
1339 1339
     {
1340 1340
         $ret      = Tdmcreate\Files\CreatePhpCode::getInstance()->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t);
1341 1341
         $paramGet = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, '');
1342
-        $ret      .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic . 'Handler', false, $t);
1342
+        $ret      .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic.'Handler', false, $t);
1343 1343
         $ret      .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t);
1344 1344
 
1345 1345
         return $ret;
@@ -1480,9 +1480,9 @@  discard block
 block discarded – undo
1480 1480
         $phpCodePageNav = Tdmcreate\Files\CreatePhpCode::getInstance();
1481 1481
         $classXCode     = Tdmcreate\Files\Classes\ClassXoopsCode::getInstance();
1482 1482
         $ret            = $phpCodePageNav->getPhpCodeCommentLine('Display Navigation', null, $t);
1483
-        $condition      = $phpCodePageNav->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/pagenav', true, false, 'include', $t . "\t");
1484
-        $condition      .= $classXCode->getClassXoopsPageNav('pagenav', $tableName . 'Count', 'limit', 'start', 'start', "'op=list&limit=' . \$limit", false, $t . "\t");
1485
-        $condition      .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t . "\t");
1483
+        $condition      = $phpCodePageNav->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/pagenav', true, false, 'include', $t."\t");
1484
+        $condition      .= $classXCode->getClassXoopsPageNav('pagenav', $tableName.'Count', 'limit', 'start', 'start', "'op=list&limit=' . \$limit", false, $t."\t");
1485
+        $condition      .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t."\t");
1486 1486
         $ret            .= $phpCodePageNav->getPhpCodeConditions("\${$tableName}Count", ' > ', '$limit', $condition, false, $t);
1487 1487
 
1488 1488
         return $ret;
Please login to merge, or discard this patch.
class/Files/Language/LanguageBlocks.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
             $ret             .= $this->defines->getAboveDefines($ucfTableName);
91 91
             $fields           = $this->getTableFields($tables[$t]->getVar('table_mid'), $tables[$t]->getVar('table_id'));
92 92
             $stuTableName = mb_strtoupper($tableName);
93
-            $ret              .= $this->defines->getDefine($language, $stuTableName . '_TO_DISPLAY', $ucfTableName . ' to Display');
94
-            $ret              .= $this->defines->getDefine($language, 'ALL_' . $stuTableName, 'All ' . $ucfTableName);
93
+            $ret              .= $this->defines->getDefine($language, $stuTableName.'_TO_DISPLAY', $ucfTableName.' to Display');
94
+            $ret              .= $this->defines->getDefine($language, 'ALL_'.$stuTableName, 'All '.$ucfTableName);
95 95
             foreach (array_keys($fields) as $f) {
96 96
                 $fieldName    = $fields[$f]->getVar('field_name');
97 97
                 $stuFieldName = mb_strtoupper($fieldName);
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         $content       .= $this->getLanguageBlock($module, $language);
137 137
         $content       .= $this->getLanguageFooter();
138 138
 
139
-        $this->create($moduleDirname, 'language/' . $GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
139
+        $this->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
140 140
 
141 141
         return $this->renderFile();
142 142
     }
Please login to merge, or discard this patch.