Passed
Push — master ( 123922...c30da6 )
by Goffy
09:11 queued 04:26
created
class/Files/Templates/user/CategoriesList.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     private function getTemplatesUserCategoriesListThead($table)
92 92
     {
93
-        $ret    = <<<EOT
93
+        $ret = <<<EOT
94 94
 		<thead>
95 95
 			<tr>\n
96 96
 EOT;
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                 if (1 == $fields[$f]->getVar('field_thead')) {
101 101
                     $fieldName   = $fields[$f]->getVar('field_name');
102 102
                     $rpFieldName = $this->getRightString($fieldName);
103
-                    $ret         .= <<<EOT
103
+                    $ret .= <<<EOT
104 104
 				<th><{\$list.{$rpFieldName}}></th>\n
105 105
 EOT;
106 106
                 }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 		<tbody>
129 129
 			<tr>\n
130 130
 EOT;
131
-        $fields    = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
131
+        $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'));
132 132
         foreach (array_keys($fields) as $f) {
133 133
             $fieldElement = $fields[$f]->getVar('field_element');
134 134
             if (1 == $fields[$f]->getVar('field_user')) {
@@ -138,14 +138,14 @@  discard block
 block discarded – undo
138 138
                         case 10:
139 139
                             $fieldName   = $fields[$f]->getVar('field_name');
140 140
                             $rpFieldName = $this->getRightString($fieldName);
141
-                            $ret         .= <<<EOT
141
+                            $ret .= <<<EOT
142 142
 				<td class="center pad5"><img src="<{\$xoops_icons32_url}>/<{\$list.{$rpFieldName}}>" alt="{$tableName}" /></td>\n
143 143
 EOT;
144 144
                             break;
145 145
                         case 13:
146 146
                             $fieldName   = $fields[$f]->getVar('field_name');
147 147
                             $rpFieldName = $this->getRightString($fieldName);
148
-                            $ret         .= <<<EOT
148
+                            $ret .= <<<EOT
149 149
 				<td class="center pad5"><img src="<{\${$moduleDirname}_upload_url}>/images/{$tableName}/<{\$list.{$rpFieldName}}>" alt="{$tableName}" /></td>\n
150 150
 EOT;
151 151
                             break;
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
                         case 4:
155 155
                             $fieldName   = $fields[$f]->getVar('field_name');
156 156
                             $rpFieldName = $this->getRightString($fieldName);
157
-                            $ret         .= <<<EOT
157
+                            $ret .= <<<EOT
158 158
 				<td class="justify pad5"><{\$list.{$rpFieldName}}></td>\n
159 159
 EOT;
160 160
                             break;
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
                 if (1 == $fields[$f]->getVar('field_tfoot')) {
189 189
                     $fieldName   = $fields[$f]->getVar('field_name');
190 190
                     $rpFieldName = $this->getRightString($fieldName);
191
-                    $ret         .= <<<EOT
191
+                    $ret .= <<<EOT
192 192
 				<td class="center"><{\$list.{$rpFieldName}}></td>\n
193 193
 EOT;
194 194
                 }
@@ -244,35 +244,35 @@  discard block
 block discarded – undo
244 244
                         case 2:
245 245
                             $rpFieldName = $this->getRightString($fieldName);
246 246
                             $doubleVar   = $sc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
247
-                            $retElem     .= $hc->getHtmlSpan($doubleVar, 'col-sm-2') . PHP_EOL;
247
+                            $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-2').PHP_EOL;
248 248
                             break;
249 249
                         case 3:
250 250
                         case 4:
251 251
                             $rpFieldName = $this->getRightString($fieldName);
252 252
                             $doubleVar   = $sc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
253
-                            $retElem     .= $hc->getHtmlSpan($doubleVar, 'col-sm-3 justify') . PHP_EOL;
253
+                            $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-3 justify').PHP_EOL;
254 254
                             break;
255 255
                         case 10:
256 256
                             $rpFieldName = $this->getRightString($fieldName);
257 257
                             $singleVar   = $sc->getSmartySingleVar('xoops_icons32_url');
258 258
                             $doubleVar   = $sc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
259
-                            $img         = $hc->getHtmlImage($singleVar . '/' . $doubleVar, (string)$tableName);
260
-                            $retElem     .= $hc->getHtmlSpan($img, 'col-sm-3') . PHP_EOL;
259
+                            $img         = $hc->getHtmlImage($singleVar.'/'.$doubleVar, (string)$tableName);
260
+                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3').PHP_EOL;
261 261
                             unset($img);
262 262
                             break;
263 263
                         case 13:
264 264
                             $rpFieldName = $this->getRightString($fieldName);
265
-                            $singleVar   = $sc->getSmartySingleVar($moduleDirname . '_upload_url');
265
+                            $singleVar   = $sc->getSmartySingleVar($moduleDirname.'_upload_url');
266 266
                             $doubleVar   = $sc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
267
-                            $img         = $hc->getHtmlImage($singleVar . "/images/{$tableName}/" . $doubleVar, (string)$tableName);
268
-                            $retElem     .= $hc->getHtmlSpan($img, 'col-sm-3') . PHP_EOL;
267
+                            $img         = $hc->getHtmlImage($singleVar."/images/{$tableName}/".$doubleVar, (string)$tableName);
268
+                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3').PHP_EOL;
269 269
                             unset($img);
270 270
                             break;
271 271
                     }
272 272
                 }
273 273
             }
274 274
         }
275
-        $ret .= $hc->getHtmlDiv($retElem, 'panel-body') . PHP_EOL;
275
+        $ret .= $hc->getHtmlDiv($retElem, 'panel-body').PHP_EOL;
276 276
 
277 277
         return $ret;
278 278
     }
Please login to merge, or discard this patch.
class/Files/Templates/Admin/TemplatesAdminPages.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -96,23 +96,23 @@  discard block
 block discarded – undo
96 96
         $hc         = Tdmcreate\Files\CreateHtmlCode::getInstance();
97 97
         $sc         = Tdmcreate\Files\CreateSmartyCode::getInstance();
98 98
         $th         = '';
99
-        $langHeadId = mb_strtoupper($tableSoleName) . '_ID';
99
+        $langHeadId = mb_strtoupper($tableSoleName).'_ID';
100 100
         if (1 == $tableAutoincrement) {
101 101
             $lang = $sc->getSmartyConst($language, $langHeadId);
102
-            $th   .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t");
102
+            $th .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t");
103 103
         }
104 104
         foreach (array_keys($fields) as $f) {
105 105
             $fieldName     = $fields[$f]->getVar('field_name');
106 106
             $rpFieldName   = $this->getRightString($fieldName);
107
-            $langFieldName = mb_strtoupper($tableSoleName) . '_' . mb_strtoupper($rpFieldName);
107
+            $langFieldName = mb_strtoupper($tableSoleName).'_'.mb_strtoupper($rpFieldName);
108 108
             if (1 == $fields[$f]->getVar('field_inlist')) {
109 109
                 $lang = $sc->getSmartyConst($language, $langFieldName);
110
-                $th   .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t");
110
+                $th .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t");
111 111
             }
112 112
         }
113 113
 
114 114
         $lang = $sc->getSmartyConst($language, 'FORM_ACTION');
115
-        $th   .= $hc->getHtmlTag('th', ['class' => 'center width5'], $lang, false, "\t\t\t\t");
115
+        $th .= $hc->getHtmlTag('th', ['class' => 'center width5'], $lang, false, "\t\t\t\t");
116 116
         $tr   = $hc->getHtmlTableRow($th, 'head', "\t\t\t");
117 117
         $ret  = $hc->getHtmlTableThead($tr, '', "\t\t");
118 118
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         $td = '';
137 137
         if (1 == $tableAutoincrement) {
138 138
             $double = $sc->getSmartyDoubleVar($tableSoleName, 'id');
139
-            $td     .= $hc->getHtmlTableData($double, 'center', '',"\t\t\t\t");
139
+            $td .= $hc->getHtmlTableData($double, 'center', '', "\t\t\t\t");
140 140
         }
141 141
         $fieldId = '';
142 142
         foreach (array_keys($fields) as $f) {
@@ -150,9 +150,9 @@  discard block
 block discarded – undo
150 150
                 switch ($fieldElement) {
151 151
                     case 5:
152 152
                         $double = $sc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
153
-                        $src    = $sc->getSmartyNoSimbol('xoModuleIcons16') . $double . '.png';
154
-                        $img    = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true,'','');
155
-                        $td     .= $hc->getHtmlTableData($img, 'center', '',"\t\t\t\t");
153
+                        $src    = $sc->getSmartyNoSimbol('xoModuleIcons16').$double.'.png';
154
+                        $img    = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', '');
155
+                        $td .= $hc->getHtmlTableData($img, 'center', '', "\t\t\t\t");
156 156
                         break;
157 157
                     case 9:
158 158
                         // This is to be reviewed, as it was initially to style = "backgroung-color: #"
@@ -160,30 +160,30 @@  discard block
 block discarded – undo
160 160
                         // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">...
161 161
                         $double = $sc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
162 162
                         $color  = "<span style='background-color:{$double};'>&nbsp;&nbsp;&nbsp;&nbsp;</span>";
163
-                        $td     .= $hc->getHtmlTableData($color, 'center', '',"\t\t\t\t");
163
+                        $td .= $hc->getHtmlTableData($color, 'center', '', "\t\t\t\t");
164 164
                         break;
165 165
                     case 10:
166 166
                         $src = $sc->getSmartyNoSimbol('xoModuleIcons32');
167 167
                         $src .= $sc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
168
-                        $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true,'','');
169
-                        $td  .= $hc->getHtmlTableData($img, 'center', '',"\t\t\t\t");
168
+                        $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', '');
169
+                        $td  .= $hc->getHtmlTableData($img, 'center', '', "\t\t\t\t");
170 170
                         break;
171 171
                     case 13:
172
-                        $single = $sc->getSmartySingleVar($moduleDirname . '_upload_url');
172
+                        $single = $sc->getSmartySingleVar($moduleDirname.'_upload_url');
173 173
                         $double = $sc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
174
-                        $img    = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, '', '');
175
-                        $td     .= $hc->getHtmlTableData($img, 'center', '',"\t\t\t\t");
174
+                        $img    = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, '', '');
175
+                        $td .= $hc->getHtmlTableData($img, 'center', '', "\t\t\t\t");
176 176
                         break;
177 177
                     case 16:
178 178
                         $double = $sc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
179
-                        $src = $sc->getSmartyNoSimbol('$modPathIcon16') . '/status' . $double . '.png';
180
-                        $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true,'','');
181
-                        $td     .= $hc->getHtmlTableData($img, 'center', '',"\t\t\t\t");
179
+                        $src = $sc->getSmartyNoSimbol('$modPathIcon16').'/status'.$double.'.png';
180
+                        $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', '');
181
+                        $td .= $hc->getHtmlTableData($img, 'center', '', "\t\t\t\t");
182 182
                         break;
183 183
                     default:
184 184
                         if (0 != $f) {
185 185
                             $double = $sc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
186
-                            $td     .= $hc->getHtmlTableData($double, 'center', '',"\t\t\t\t");
186
+                            $td .= $hc->getHtmlTableData($double, 'center', '', "\t\t\t\t");
187 187
                         }
188 188
                         break;
189 189
                 }
@@ -192,20 +192,20 @@  discard block
 block discarded – undo
192 192
         $lang    = $sc->getSmartyConst('', '_EDIT');
193 193
         $double  = $sc->getSmartyDoubleVar($tableSoleName, 'id');
194 194
         $src     = $sc->getSmartyNoSimbol('xoModuleIcons16 edit.png');
195
-        $img     = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true,'', '');
196
-        $anchor  = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&amp;{$fieldId}=" . $double, 'title' => $lang], $img, false, "\t\t\t\t\t");
195
+        $img     = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', '');
196
+        $anchor  = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&amp;{$fieldId}=".$double, 'title' => $lang], $img, false, "\t\t\t\t\t");
197 197
         $lang    = $sc->getSmartyConst('', '_DELETE');
198 198
         $double  = $sc->getSmartyDoubleVar($tableSoleName, 'id');
199 199
         $src     = $sc->getSmartyNoSimbol('xoModuleIcons16 delete.png');
200 200
         $img     = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', '');
201
-        $anchor  .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&amp;{$fieldId}=" . $double, 'title' => $lang], $img, false, "\t\t\t\t\t");
202
-        $td      .= $hc->getHtmlTag('td', ['class' => 'center  width5'], "\n" . $anchor . "\t\t\t\t", false, "\t\t\t\t");
201
+        $anchor  .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&amp;{$fieldId}=".$double, 'title' => $lang], $img, false, "\t\t\t\t\t");
202
+        $td      .= $hc->getHtmlTag('td', ['class' => 'center  width5'], "\n".$anchor."\t\t\t\t", false, "\t\t\t\t");
203 203
         $cycle   = $sc->getSmartyNoSimbol('cycle values=\'odd, even\'');
204 204
         $tr      = $hc->getHtmlTableRow($td, $cycle, "\t\t\t");
205
-        $foreach = $sc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr, '','', "\t\t\t");
206
-        $tbody   = $hc->getHtmlTableTbody($foreach,'' , "\t\t");
205
+        $foreach = $sc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr, '', '', "\t\t\t");
206
+        $tbody   = $hc->getHtmlTableTbody($foreach, '', "\t\t");
207 207
 
208
-        return $sc->getSmartyConditions($tableName . '_count', '', '', $tbody, '', false, false, "\t\t");
208
+        return $sc->getSmartyConditions($tableName.'_count', '', '', $tbody, '', false, false, "\t\t");
209 209
     }
210 210
 
211 211
     /**
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      */
221 221
     private function getTemplatesAdminPagesTable($moduleDirname, $tableName, $tableSoleName, $tableAutoincrement, $fields, $language)
222 222
     {
223
-        $hc  = Tdmcreate\Files\CreateHtmlCode::getInstance();
223
+        $hc = Tdmcreate\Files\CreateHtmlCode::getInstance();
224 224
         $tbody = $this->getTemplatesAdminPagesTableThead($tableSoleName, $tableAutoincrement, $fields, $language);
225 225
         $tbody .= $this->getTemplatesAdminPagesTableTBody($moduleDirname, $tableName, $tableSoleName, $tableAutoincrement, $fields);
226 226
 
@@ -246,15 +246,15 @@  discard block
 block discarded – undo
246 246
         $single    = $sc->getSmartySingleVar('pagenav');
247 247
         $div       = $hc->getHtmlTag('div', ['class' => 'xo-pagenav floatright'], $single, false, "\t\t");
248 248
         $div       .= $hc->getHtmlTag('div', ['class' => 'clear spacer'], '', false, "\t\t", "\n");
249
-        $htmlTable .= $sc->getSmartyConditions('pagenav', '', '', $div, '', '', '', "\t" );
250
-        $ifList    = $sc->getSmartyConditions($tableName . '_list', '', '', $htmlTable);
249
+        $htmlTable .= $sc->getSmartyConditions('pagenav', '', '', $div, '', '', '', "\t");
250
+        $ifList    = $sc->getSmartyConditions($tableName.'_list', '', '', $htmlTable);
251 251
         $single    = $sc->getSmartySingleVar('form', "\t", "\n");
252 252
         $ifList    .= $sc->getSmartyConditions('form', '', '', $single);
253 253
         $single    = $sc->getSmartySingleVar('error');
254 254
         $strong    = $hc->getHtmlTag('strong', [], $single, false, '', '');
255 255
         $div       = $hc->getHtmlTag('div', ['class' => 'errorMsg'], $strong, false, "\t", "\n");
256 256
         $ifList    .= $sc->getSmartyConditions('error', '', '', $div);
257
-        $ifList    .= $hc->getHtmlEmpty('', '', "\n");;
257
+        $ifList    .= $hc->getHtmlEmpty('', '', "\n"); ;
258 258
 
259 259
         return $ifList;
260 260
     }
Please login to merge, or discard this patch.
class/Files/Admin/AdminIndex.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -97,19 +97,19 @@  discard block
 block discarded – undo
97 97
         foreach (array_keys($tables) as $i) {
98 98
             $tableName    = $tables[$i]->getVar('table_name');
99 99
             $ucfTableName = ucfirst($tableName);
100
-            $ret          .= $xc->getXcEqualsOperator("\$count{$ucfTableName}", "\${$tableName}Handler->getCount()");
100
+            $ret .= $xc->getXcEqualsOperator("\$count{$ucfTableName}", "\${$tableName}Handler->getCount()");
101 101
         }
102 102
         $ret .= $pc->getPhpCodeBlankLine();
103 103
         $ret .= $pc->getPhpCodeCommentLine('InfoBox Statistics');
104
-        $ret .= $axc->getAxcAddInfoBox($language . 'STATISTICS');
104
+        $ret .= $axc->getAxcAddInfoBox($language.'STATISTICS');
105 105
         $ret .= $pc->getPhpCodeCommentLine('Info elements');
106 106
         $tableInstall = [];
107 107
         foreach (array_keys($tables) as $i) {
108 108
             $tableName      = $tables[$i]->getVar('table_name');
109 109
             $tableInstall[] = $tables[$i]->getVar('table_install');
110
-            $stuTableName   = $languageThereAre . mb_strtoupper($tableName);
110
+            $stuTableName   = $languageThereAre.mb_strtoupper($tableName);
111 111
             $ucfTableName   = ucfirst($tableName);
112
-            $ret            .= $axc->getAxcAddInfoBoxLine($stuTableName, "\$count{$ucfTableName}");
112
+            $ret .= $axc->getAxcAddInfoBoxLine($stuTableName, "\$count{$ucfTableName}");
113 113
         }
114 114
 
115 115
         if (null === $tableName) {
@@ -121,25 +121,25 @@  discard block
 block discarded – undo
121 121
             $ret       .= $pc->getPhpCodeCommentLine('Upload Folders');
122 122
             $ret       .= $xc->getXcEqualsOperator('$configurator', 'new Common\Configurator()');
123 123
             $cond      = '$configurator->uploadFolders && is_array($configurator->uploadFolders)';
124
-            $fe_action = $xc->getXcEqualsOperator('$folder[]', '$configurator->uploadFolders[$i]', '',"\t\t");
124
+            $fe_action = $xc->getXcEqualsOperator('$folder[]', '$configurator->uploadFolders[$i]', '', "\t\t");
125 125
             $condIf    = $pc->getPhpCodeForeach('configurator->uploadFolders', true, false, 'i', $fe_action, "\t");
126 126
             $ret       .= $pc->getPhpCodeConditions($cond, '', '', $condIf, false);
127 127
 
128 128
             $ret       .= $pc->getPhpCodeCommentLine('Uploads Folders Created');
129
-            $boxLine   = $axc->getAxcAddConfigBoxLine('$folder[$i]', 'folder', '', "\t");
129
+            $boxLine = $axc->getAxcAddConfigBoxLine('$folder[$i]', 'folder', '', "\t");
130 130
             $boxLine   .= $axc->getAxcAddConfigBoxLine("array(\$folder[\$i], '777')", 'chmod', '', "\t");
131
-            $ret       .= $pc->getPhpCodeForeach('folder', true, false, 'i', $boxLine, '') . PHP_EOL;
131
+            $ret       .= $pc->getPhpCodeForeach('folder', true, false, 'i', $boxLine, '').PHP_EOL;
132 132
         }
133 133
         $ret    .= $pc->getPhpCodeCommentLine('Render Index');
134 134
         $ret    .= $xc->getXcXoopsTplAssign('navigation', "\$adminObject->displayNavigation('index.php')");
135 135
         $ret    .= $pc->getPhpCodeCommentLine('Test Data');
136
-        $condIf = $xc->getXcXoopsLoadLanguage('admin/modulesadmin',"\t", 'system');
137
-        $condIf .= $pc->getPhpCodeIncludeDir('dirname(__DIR__)', 'testdata/index', true, '','',"\t");
136
+        $condIf = $xc->getXcXoopsLoadLanguage('admin/modulesadmin', "\t", 'system');
137
+        $condIf .= $pc->getPhpCodeIncludeDir('dirname(__DIR__)', 'testdata/index', true, '', '', "\t");
138 138
         $condIf .= $axc->getAdminItemButton("constant('CO_' . \$moduleDirNameUpper . '_ADD_SAMPLEDATA')", '', '', $op = '__DIR__ . /../../testdata/index.php?op=load', $type = 'samplebutton', $t = "\t");
139 139
         $condIf .= $axc->getAdminItemButton("constant('CO_' . \$moduleDirNameUpper . '_SAVE_SAMPLEDATA')", '', '', $op = '__DIR__ . /../../testdata/index.php?op=save', $type = 'samplebutton', $t = "\t");
140
-        $condIf .= "//" . $axc->getAdminItemButton("constant('CO_' . \$moduleDirNameUpper . '_EXPORT_SCHEMA')", '', '', $op = '__DIR__ . /../../testdata/index.php?op=exportschema', $type = 'samplebutton', $t = "\t");
140
+        $condIf .= "//".$axc->getAdminItemButton("constant('CO_' . \$moduleDirNameUpper . '_EXPORT_SCHEMA')", '', '', $op = '__DIR__ . /../../testdata/index.php?op=exportschema', $type = 'samplebutton', $t = "\t");
141 141
         $condIf .= $axc->getAdminDisplayButton('left', "\t");
142
-        $cond   = $xc->getXcGetConfig('displaySampleButton');
142
+        $cond = $xc->getXcGetConfig('displaySampleButton');
143 143
         $ret    .= $pc->getPhpCodeConditions($cond, '', '', $condIf, false);
144 144
         $ret    .= $xc->getXcXoopsTplAssign('index', '$adminObject->displayIndex()');
145 145
         $ret    .= $pc->getPhpCodeCommentLine('End Test Data');
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
         $moduleDirname = $module->getVar('mod_dirname');
161 161
         $filename      = $this->getFileName();
162 162
         $content       = $this->getHeaderFilesComments($module);
163
-        $content       .= $this->getAdminIndex($module);
163
+        $content .= $this->getAdminIndex($module);
164 164
 
165 165
         $this->create($moduleDirname, 'admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
166 166
 
Please login to merge, or discard this patch.
class/Files/Admin/AdminHeader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -114,13 +114,13 @@  discard block
 block discarded – undo
114 114
         if (is_array($tables)) {
115 115
             foreach (array_keys($tables) as $i) {
116 116
                 $tableName = $tables[$i]->getVar('table_name');
117
-                $ret       .= $this->xc->getXcHandlerLine($tableName);
117
+                $ret .= $this->xc->getXcHandlerLine($tableName);
118 118
             }
119 119
         }
120 120
         $ret            .= $this->xc->getXcEqualsOperator('$myts', 'MyTextSanitizer::getInstance()');
121 121
         $ret            .= $this->pc->getPhpCodeCommentLine();
122
-        $template       = $this->pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/template', true, false, 'include', "\t");
123
-        $template       .= $this->xc->getXcEqualsOperator('$xoopsTpl', 'new \XoopsTpl()', null,"\t");
122
+        $template = $this->pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/template', true, false, 'include', "\t");
123
+        $template       .= $this->xc->getXcEqualsOperator('$xoopsTpl', 'new \XoopsTpl()', null, "\t");
124 124
         $ret            .= $this->pc->getPhpCodeConditions('!isset($xoopsTpl)', ' || ', '!is_object($xoopsTpl)', $template, false);
125 125
         $ret            .= $this->pc->getPhpCodeBlankLine();
126 126
         $ret            .= $this->pc->getPhpCodeCommentLine('Load languages');
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $filename      = $this->getFileName();
160 160
         $moduleDirname = $module->getVar('mod_dirname');
161 161
         $content       = $this->getHeaderFilesComments($module);
162
-        $content       .= $this->getAdminHeader($moduleDirname);
162
+        $content .= $this->getAdminHeader($moduleDirname);
163 163
 
164 164
         $this->create($moduleDirname, 'admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
165 165
 
Please login to merge, or discard this patch.
class/Files/CreateHtmlCode.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             $ret = "{$t}<{$tag}{$attr}>{$n}";
69 69
         } elseif ($noClosed) {
70 70
             $ret = "{$t}<{$tag}{$attr} />{$n}";
71
-		} elseif ($multiLine) {
71
+        } elseif ($multiLine) {
72 72
             $ret = "{$t}<{$tag}{$attr}>{$n}";
73 73
             $ret .= "{$content}";
74 74
             $ret .= "{$t}</{$tag}>{$n}";
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     /**
112 112
      * @public function getHtmlComment
113 113
      * @param string $htmlComment
114
-	 * @param string $n
114
+     * @param string $n
115 115
      * @return string
116 116
      */
117 117
     public function getHtmlComment($htmlComment = '', $n = '')
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
         return "{$t}<strong{$rStrongClass}>{$content}</strong>{$n}";
322 322
     }
323 323
 
324
-	/**
324
+    /**
325 325
      * @public function getHtmlAnchor
326 326
      * @param string $url
327 327
      * @param string $content
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
      * @param string $alt
349 349
      * @param string $imgClass
350 350
      * @param string $t
351
-	 * @param string $n
351
+     * @param string $n
352 352
      * @return string
353 353
      */
354 354
     public function getHtmlImage($src = 'blank.gif', $alt = 'blank.gif', $imgClass = '', $t = '', $n = '')
Please login to merge, or discard this patch.
class/Files/CreateArchitecture.php 1 patch
Spacing   +61 added lines, -61 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');
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
114 114
             'docs'                            => $indexFile,
115 115
             'assets/images'                   => $indexFile,
116 116
             'assets/js'                       => $indexFile,
117
-            'language/' . $language           => $indexFile,
118
-            'language/' . $language . '/help' => $indexFile,
117
+            'language/'.$language           => $indexFile,
118
+            'language/'.$language.'/help' => $indexFile,
119 119
             'preloads'                        => $indexFile,
120 120
         ];
121 121
         foreach ($copyFiles as $k => $v) {
@@ -125,26 +125,26 @@  discard block
 block discarded – undo
125 125
         //Copy the logo of the module
126 126
         $modImage = str_replace(' ', '', mb_strtolower($module->getVar('mod_image')));
127 127
         $targetImage = 'logoModule.png';
128
-        $this->copyFile('assets/images', TDMC_UPLOAD_IMGMOD_PATH . '/' . $modImage, $targetImage);
128
+        $this->copyFile('assets/images', TDMC_UPLOAD_IMGMOD_PATH.'/'.$modImage, $targetImage);
129 129
 
130 130
         //Copy blank files
131 131
         $targetImage = 'blank.gif';
132
-        $this->copyFile('assets/images', TDMC_IMAGE_PATH . '/' . $targetImage, $targetImage);
132
+        $this->copyFile('assets/images', TDMC_IMAGE_PATH.'/'.$targetImage, $targetImage);
133 133
         $targetImage = 'blank.png';
134
-        $this->copyFile('assets/images', TDMC_IMAGE_PATH . '/' . $targetImage , $targetImage);
134
+        $this->copyFile('assets/images', TDMC_IMAGE_PATH.'/'.$targetImage, $targetImage);
135 135
 
136 136
         // Copy of 'module_author_logo.png' file in uploads dir
137
-        $logoPng     = $stlModuleAuthor . '_logo.png';
138
-        $logoGifFrom = TDMC_UPLOAD_IMGMOD_PATH . '/' . $logoPng;
137
+        $logoPng     = $stlModuleAuthor.'_logo.png';
138
+        $logoGifFrom = TDMC_UPLOAD_IMGMOD_PATH.'/'.$logoPng;
139 139
         // If file exists
140 140
         if (!file_exists($logoGifFrom)) {
141 141
             // Rename file
142
-            $copyFile    = TDMC_IMAGES_LOGOS_URL . '/xoopsdevelopmentteam_logo.gif';
142
+            $copyFile    = TDMC_IMAGES_LOGOS_URL.'/xoopsdevelopmentteam_logo.gif';
143 143
             $copyNewFile = $logoGifFrom;
144 144
             copy($copyFile, $copyNewFile);
145 145
         } else {
146 146
             // Copy file
147
-            $copyFile    = TDMC_IMAGES_LOGOS_URL . '/' . $logoPng;
147
+            $copyFile    = TDMC_IMAGES_LOGOS_URL.'/'.$logoPng;
148 148
             $copyNewFile = $logoGifFrom;
149 149
             copy($copyFile, $copyNewFile);
150 150
         }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
         ];
161 161
         foreach ($docs as $k => $v) {
162 162
             // Creation of folder docs and .txt files
163
-            $this->makeDirAndCopyFile('docs', TDMC_DOCS_PATH . $k, $v);
163
+            $this->makeDirAndCopyFile('docs', TDMC_DOCS_PATH.$k, $v);
164 164
         }
165 165
         if (!empty($tableName)) {
166 166
             if (1 == $module->getVar('mod_admin') || 1 == $module->getVar('mod_user')) {
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
             $this->makeDirAndCopyFile('sql', $indexFile, 'index.html');
180 180
             if ((1 == $module->getVar('mod_notifications')) && (1 == $table->getVar('table_notifications'))) {
181 181
                 // Creation of "language/local_language/mail_template" folder and index.html file
182
-                $this->makeDirAndCopyFile('language/' . $language . '/mail_template', $indexFile, 'index.html');
182
+                $this->makeDirAndCopyFile('language/'.$language.'/mail_template', $indexFile, 'index.html');
183 183
             }
184 184
         }
185 185
     }
@@ -248,69 +248,69 @@  discard block
 block discarded – undo
248 248
             // Get Table Object
249 249
             $table = $helper->getHandler('Tables')->get($tableId);
250 250
             // Copy of tables images file
251
-            if (file_exists($uploadTableImage = TDMC_UPLOAD_IMGTAB_PATH . '/' . $tableImage)) {
251
+            if (file_exists($uploadTableImage = TDMC_UPLOAD_IMGTAB_PATH.'/'.$tableImage)) {
252 252
                 $this->copyFile($icon32, $uploadTableImage, $tableImage);
253
-            } elseif (file_exists($uploadTableImage = XOOPS_ICONS32_PATH . '/' . $tableImage)) {
253
+            } elseif (file_exists($uploadTableImage = XOOPS_ICONS32_PATH.'/'.$tableImage)) {
254 254
                 $this->copyFile($icon32, $uploadTableImage, $tableImage);
255 255
             }
256 256
             // Creation of admin files
257 257
             if (1 === (int)$tables[$t]->getVar('table_admin')) {
258 258
                 // Admin Pages File
259 259
                 $adminPages = Tdmcreate\Files\Admin\AdminPages::getInstance();
260
-                $adminPages->write($module, $table, $tableName . '.php');
260
+                $adminPages->write($module, $table, $tableName.'.php');
261 261
                 $ret[] = $adminPages->render();
262 262
                 // Admin Templates File
263 263
                 $adminTemplatesPages = Tdmcreate\Files\Templates\Admin\TemplatesAdminPages::getInstance();
264
-                $adminTemplatesPages->write($module, $table, $moduleDirname . '_admin_' . $tableName . '.tpl');
264
+                $adminTemplatesPages->write($module, $table, $moduleDirname.'_admin_'.$tableName.'.tpl');
265 265
                 $ret[] = $adminTemplatesPages->render();
266 266
             }
267 267
             // Creation of blocks
268 268
             if (1 === (int)$tables[$t]->getVar('table_blocks')) {
269 269
                 // Blocks Files
270 270
                 $blocksFiles = Tdmcreate\Files\Blocks\BlocksFiles::getInstance();
271
-                $blocksFiles->write($module, $table, $tableName . '.php');
271
+                $blocksFiles->write($module, $table, $tableName.'.php');
272 272
                 $ret[] = $blocksFiles->render();
273 273
                 // Templates Blocks Files
274 274
                 $templatesBlocks = Tdmcreate\Files\Templates\Blocks\TemplatesBlocks::getInstance();
275
-                $templatesBlocks->write($module, $table, $moduleDirname . '_block_' . $tableName . '.tpl');
275
+                $templatesBlocks->write($module, $table, $moduleDirname.'_block_'.$tableName.'.tpl');
276 276
                 $ret[] = $templatesBlocks->render();
277 277
             }
278 278
             // Creation of classes
279 279
             if (1 === (int)$tables[$t]->getVar('table_admin') || 1 === (int)$tables[$t]->getVar('table_user')) {
280 280
                 // Class Files
281 281
                 $classFiles = Tdmcreate\Files\Classes\ClassFiles::getInstance();
282
-                $classFiles->write($module, $table, $tables, ucfirst($tableName) . '.php');
282
+                $classFiles->write($module, $table, $tables, ucfirst($tableName).'.php');
283 283
                 $ret[] = $classFiles->render();
284 284
             }
285 285
             // Creation of classhandlers
286 286
             if (1 === (int)$tables[$t]->getVar('table_admin') || 1 === (int)$tables[$t]->getVar('table_user')) {
287 287
                 // Class Files
288 288
                 $classFiles = Tdmcreate\Files\Classes\ClassHandlerFiles::getInstance();
289
-                $classFiles->write($module, $table, $tables, ucfirst($tableName) . 'handler.php');
289
+                $classFiles->write($module, $table, $tables, ucfirst($tableName).'handler.php');
290 290
                 $ret[] = $classFiles->render();
291 291
             }
292 292
             // Creation of user files
293 293
             if (1 === (int)$tables[$t]->getVar('table_user')) {
294 294
                 // User Pages File
295 295
                 $userPages = Tdmcreate\Files\User\UserPages::getInstance();
296
-                $userPages->write($module, $table, $tableName . '.php');
296
+                $userPages->write($module, $table, $tableName.'.php');
297 297
                 $ret[] = $userPages->render();
298 298
                 // User Templates File
299 299
                 $userTemplatesPages = Tdmcreate\Files\Templates\User\Pages::getInstance();
300
-                $userTemplatesPages->write($module, $table, $moduleDirname . '_' . $tableName . '.tpl');
300
+                $userTemplatesPages->write($module, $table, $moduleDirname.'_'.$tableName.'.tpl');
301 301
                 $ret[] = $userTemplatesPages->render();
302 302
                 // User List Templates File
303 303
                 $userTemplatesPagesList = Tdmcreate\Files\Templates\User\PagesList::getInstance();
304
-                $userTemplatesPagesList->write($module, $table, $tables, $moduleDirname . '_' . $tableName . '_list' . '.tpl');
304
+                $userTemplatesPagesList->write($module, $table, $tables, $moduleDirname.'_'.$tableName.'_list'.'.tpl');
305 305
                 $ret[] = $userTemplatesPagesList->render();
306 306
                 if (1 === (int)$tables[$t]->getVar('table_category')) {
307 307
                     // User List Templates File
308 308
                     $userTemplatesCategories = Templates\User\Categories::getInstance();
309
-                    $userTemplatesCategories->write($module, $table, $moduleDirname . '_' . $tableName . '_cat.tpl');
309
+                    $userTemplatesCategories->write($module, $table, $moduleDirname.'_'.$tableName.'_cat.tpl');
310 310
                     $ret[] = $userTemplatesCategories->render();
311 311
                     // User List Templates File
312 312
                     $userTemplatesCategoriesList = Templates\User\CategoriesList::getInstance();
313
-                    $userTemplatesCategoriesList->write($module, $table, $moduleDirname . '_' . $tableName . '_cat_list' . '.tpl');
313
+                    $userTemplatesCategoriesList->write($module, $table, $moduleDirname.'_'.$tableName.'_cat_list'.'.tpl');
314 314
                     $ret[] = $userTemplatesCategoriesList->render();
315 315
                 }
316 316
             }
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
 
319 319
         // Creation of constants
320 320
         $classSpecialFiles = Tdmcreate\Files\Classes\ClassSpecialFiles::getInstance();
321
-        $classSpecialFiles->write($module, '', $tables, ucfirst('constants') . '.php');
321
+        $classSpecialFiles->write($module, '', $tables, ucfirst('constants').'.php');
322 322
         $classSpecialFiles->className = 'Constants';
323 323
         $ret[] = $classSpecialFiles->renderConstants();
324 324
 
@@ -326,13 +326,13 @@  discard block
 block discarded – undo
326 326
         if (in_array(1, $tablePermissions)) {
327 327
             // Creation of classes
328 328
             $classSpecialFiles = Tdmcreate\Files\Classes\ClassSpecialFiles::getInstance();
329
-            $classSpecialFiles->write($module, '', null, ucfirst('permissions') . '.php');
329
+            $classSpecialFiles->write($module, '', null, ucfirst('permissions').'.php');
330 330
             $classSpecialFiles->className = 'Permissions';
331 331
             $ret[] = $classSpecialFiles->renderClass();
332 332
 
333 333
             // Creation of classhandlers
334 334
             $classSpecialFiles = Tdmcreate\Files\Classes\ClassSpecialFiles::getInstance();
335
-            $classSpecialFiles->write($module, '', $permTables, ucfirst('permissionshandler') . '.php');
335
+            $classSpecialFiles->write($module, '', $permTables, ucfirst('permissionshandler').'.php');
336 336
             $classSpecialFiles->className = 'Permissionshandler';
337 337
             $ret[] = $classSpecialFiles->renderPermissionsHandler();
338 338
 
@@ -373,19 +373,19 @@  discard block
 block discarded – undo
373 373
             $ret[] = $adminFooter->render();
374 374
             // Templates Admin About File
375 375
             $adminTemplatesAbout = Tdmcreate\Files\Templates\Admin\TemplatesAdminAbout::getInstance();
376
-            $adminTemplatesAbout->write($module, $moduleDirname . '_admin_about.tpl');
376
+            $adminTemplatesAbout->write($module, $moduleDirname.'_admin_about.tpl');
377 377
             $ret[] = $adminTemplatesAbout->render();
378 378
             // Templates Admin Index File
379 379
             $adminTemplatesIndex = Tdmcreate\Files\Templates\Admin\TemplatesAdminIndex::getInstance();
380
-            $adminTemplatesIndex->write($module, $moduleDirname . '_admin_index.tpl');
380
+            $adminTemplatesIndex->write($module, $moduleDirname.'_admin_index.tpl');
381 381
             $ret[] = $adminTemplatesIndex->render();
382 382
             // Templates Admin Footer File
383 383
             $adminTemplatesFooter = Tdmcreate\Files\Templates\Admin\TemplatesAdminFooter::getInstance();
384
-            $adminTemplatesFooter->write($module, $moduleDirname . '_admin_footer.tpl');
384
+            $adminTemplatesFooter->write($module, $moduleDirname.'_admin_footer.tpl');
385 385
             $ret[] = $adminTemplatesFooter->render();
386 386
             // Templates Admin Header File
387 387
             $adminTemplatesHeader = Tdmcreate\Files\Templates\Admin\TemplatesAdminHeader::getInstance();
388
-            $adminTemplatesHeader->write($module, $moduleDirname . '_admin_header.tpl');
388
+            $adminTemplatesHeader->write($module, $moduleDirname.'_admin_header.tpl');
389 389
             $ret[] = $adminTemplatesHeader->render();
390 390
             // Language Admin File
391 391
             $languageAdmin = Tdmcreate\Files\Language\LanguageAdmin::getInstance();
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
             $ret[] = $adminPermissions->render();
419 419
             // Templates Admin Permissions File
420 420
             $adminTemplatesPermissions = Tdmcreate\Files\Templates\Admin\TemplatesAdminPermissions::getInstance();
421
-            $adminTemplatesPermissions->write($module, $moduleDirname . '_admin_permissions.tpl');
421
+            $adminTemplatesPermissions->write($module, $moduleDirname.'_admin_permissions.tpl');
422 422
             $ret[] = $adminTemplatesPermissions->render();
423 423
         }
424 424
         // Creation of notifications files
@@ -489,15 +489,15 @@  discard block
 block discarded – undo
489 489
             // Creation of user template files
490 490
             // Templates Index File
491 491
             $userTemplatesIndex = Tdmcreate\Files\Templates\User\Index::getInstance();
492
-            $userTemplatesIndex->write($module, $table, $tables, $moduleDirname . '_index.tpl');
492
+            $userTemplatesIndex->write($module, $table, $tables, $moduleDirname.'_index.tpl');
493 493
             $ret[] = $userTemplatesIndex->render();
494 494
             // Templates Footer File
495 495
             $userTemplatesFooter = Tdmcreate\Files\Templates\User\Footer::getInstance();
496
-            $userTemplatesFooter->write($module, $table, $moduleDirname . '_footer.tpl');
496
+            $userTemplatesFooter->write($module, $table, $moduleDirname.'_footer.tpl');
497 497
             $ret[] = $userTemplatesFooter->render();
498 498
             // Templates Header File
499 499
             $userTemplatesHeader = Tdmcreate\Files\Templates\User\Header::getInstance();
500
-            $userTemplatesHeader->write($module, $moduleDirname . '_header.tpl');
500
+            $userTemplatesHeader->write($module, $moduleDirname.'_header.tpl');
501 501
             $ret[] = $userTemplatesHeader->render();
502 502
 
503 503
             // Creation of user files
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
                 $ret[] = $userBroken->render();
523 523
                 // User Templates Broken File
524 524
                 $userTemplatesBroken = Templates\User\Broken::getInstance();
525
-                $userTemplatesBroken->write($module, $table, $moduleDirname . '_broken.tpl');
525
+                $userTemplatesBroken->write($module, $table, $moduleDirname.'_broken.tpl');
526 526
                 $ret[] = $userTemplatesBroken->render();
527 527
             }
528 528
             // User Pdf File
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
                 $ret[] = $userPdf->render();
533 533
                 // User Templates Pdf File
534 534
                 $userTemplatesPdf = Tdmcreate\Files\Templates\User\Pdf::getInstance();
535
-                $userTemplatesPdf->write($module, $moduleDirname . '_pdf.tpl');
535
+                $userTemplatesPdf->write($module, $moduleDirname.'_pdf.tpl');
536 536
                 $ret[] = $userTemplatesPdf->render();
537 537
             }
538 538
             // User Print File
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
                 $ret[] = $userPrint->render();
543 543
                 // User Templates Print File
544 544
                 $userTemplatesPrint = Tdmcreate\Files\Templates\User\UserPrint::getInstance();
545
-                $userTemplatesPrint->write($module, $table, $moduleDirname . '_print.tpl');
545
+                $userTemplatesPrint->write($module, $table, $moduleDirname.'_print.tpl');
546 546
                 $ret[] = $userTemplatesPrint->render();
547 547
             }
548 548
             // User Rate File
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
                 $ret[] = $userRate->render();
554 554
                 // User Templates Rate File
555 555
                 $userTemplatesRate = Tdmcreate\Files\Templates\User\Rate::getInstance();
556
-                $userTemplatesRate->write($module, $table, $moduleDirname . '_rate.tpl');
556
+                $userTemplatesRate->write($module, $table, $moduleDirname.'_rate.tpl');
557 557
                 $ret[] = $userTemplatesRate->render();
558 558
             }
559 559
 
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
                 $ret[] = $userRss->render();
565 565
                 // User Templates Rss File
566 566
                 $userTemplatesRss = Tdmcreate\Files\Templates\User\Rss::getInstance();
567
-                $userTemplatesRss->write($module, $moduleDirname . '_rss.tpl');
567
+                $userTemplatesRss->write($module, $moduleDirname.'_rss.tpl');
568 568
                 $ret[] = $userTemplatesRss->render();
569 569
             }
570 570
             // User Single File
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
                 $ret[] = $userSingle->render();
575 575
                 // User Templates Single File
576 576
                 $userTemplatesSingle = Tdmcreate\Files\Templates\User\Single::getInstance();
577
-                $userTemplatesSingle->write($module, $table, $moduleDirname . '_single.tpl');
577
+                $userTemplatesSingle->write($module, $table, $moduleDirname.'_single.tpl');
578 578
                 $ret[] = $userTemplatesSingle->render();
579 579
             }
580 580
 
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
                 $ret[] = $userSubmit->render();
586 586
                 // User Templates Submit File
587 587
                 $userTemplatesSubmit = Tdmcreate\Files\Templates\User\Submit::getInstance();
588
-                $userTemplatesSubmit->write($module, $table, $moduleDirname . '_submit.tpl');
588
+                $userTemplatesSubmit->write($module, $table, $moduleDirname.'_submit.tpl');
589 589
                 $ret[] = $userTemplatesSubmit->render();
590 590
             }
591 591
             // User Visit File
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
             $ret[] = $languageMain->render();
615 615
             // User Templates Submit File
616 616
             $userTemplatesUserBreadcrumbs = Templates\User\Breadcrumbs::getInstance();
617
-            $userTemplatesUserBreadcrumbs->write($module, $moduleDirname . '_breadcrumbs.tpl');
617
+            $userTemplatesUserBreadcrumbs->write($module, $moduleDirname.'_breadcrumbs.tpl');
618 618
             $ret[] = $userTemplatesUserBreadcrumbs->render();
619 619
         }
620 620
         // Css Admin Styles File
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
         $moduleName = $module->getVar('mod_dirname');
666 666
         //$src_path   = XOOPS_ROOT_PATH . '/modules/tdmcreate/files';
667 667
         //$tmp_path   = XOOPS_UPLOAD_PATH . '/tdmcreate/temp';
668
-        $upl_path   = TDMC_UPLOAD_REPOSITORY_PATH . '/' . mb_strtolower($moduleName);
668
+        $upl_path   = TDMC_UPLOAD_REPOSITORY_PATH.'/'.mb_strtolower($moduleName);
669 669
 
670 670
         $patterns = [
671 671
             mb_strtolower('tdmcreate')          => mb_strtolower($moduleName),
@@ -678,7 +678,7 @@  discard block
 block discarded – undo
678 678
 
679 679
         /* clone complete missing folders */
680 680
         $cloneFolders[] = [
681
-            'src'   => TDMC_PATH . '/commonfiles',
681
+            'src'   => TDMC_PATH.'/commonfiles',
682 682
             'dst'   => $upl_path,
683 683
             'rcode' => true
684 684
         ];
@@ -688,10 +688,10 @@  discard block
 block discarded – undo
688 688
         unset($cloneFolders);
689 689
 
690 690
         /* create missing folders for common files */
691
-        $createFolders[] = $upl_path . '/testdata/' . $GLOBALS['xoopsConfig']['language'];
691
+        $createFolders[] = $upl_path.'/testdata/'.$GLOBALS['xoopsConfig']['language'];
692 692
         if ('english' !== $GLOBALS['xoopsConfig']['language']) {
693
-            $createFolders[] = $upl_path . '/testdata/english';
694
-            $createFolders[] = $upl_path . '/language/english';
693
+            $createFolders[] = $upl_path.'/testdata/english';
694
+            $createFolders[] = $upl_path.'/language/english';
695 695
         }
696 696
         foreach ($createFolders as $folder) {
697 697
             @mkdir($folder);
@@ -700,14 +700,14 @@  discard block
 block discarded – undo
700 700
 
701 701
         if ('english' !== $GLOBALS['xoopsConfig']['language']) {
702 702
             $cloneFolders[] = [
703
-                'src'   => TDMC_PATH . '/commonfiles/language/english',
704
-                'dst'   => $upl_path . '/language/' . $GLOBALS['xoopsConfig']['language'],
703
+                'src'   => TDMC_PATH.'/commonfiles/language/english',
704
+                'dst'   => $upl_path.'/language/'.$GLOBALS['xoopsConfig']['language'],
705 705
                 'rcode' => true
706 706
             ];
707 707
             //copy back all language files to english language folder
708 708
             $cloneFolders[] = [
709
-                'src'   => $upl_path . '/language/' . $GLOBALS['xoopsConfig']['language'],
710
-                'dst'   => $upl_path . '/language/english',
709
+                'src'   => $upl_path.'/language/'.$GLOBALS['xoopsConfig']['language'],
710
+                'dst'   => $upl_path.'/language/english',
711 711
                 'rcode' => false
712 712
             ];
713 713
             foreach ($cloneFolders as $folder) {
@@ -718,25 +718,25 @@  discard block
 block discarded – undo
718 718
 
719 719
         /* clone single missing files*/
720 720
         $cloneFiles[] = [
721
-            'src'   => TDMC_PATH . '/config/',
722
-            'dst'   => $upl_path . '/config/',
721
+            'src'   => TDMC_PATH.'/config/',
722
+            'dst'   => $upl_path.'/config/',
723 723
             'file'  => 'admin.yml',
724 724
             'rcode' => true
725 725
         ];
726 726
         $cloneFiles[] = [
727
-            'src'   => TDMC_PATH . '/config/',
728
-            'dst'   => $upl_path . '/config/',
727
+            'src'   => TDMC_PATH.'/config/',
728
+            'dst'   => $upl_path.'/config/',
729 729
             'file'  => 'icons.php',
730 730
             'rcode' => true
731 731
         ];
732 732
         $cloneFiles[] = [
733
-            'src'   => TDMC_PATH . '/config/',
734
-            'dst'   => $upl_path . '/config/',
733
+            'src'   => TDMC_PATH.'/config/',
734
+            'dst'   => $upl_path.'/config/',
735 735
             'file'  => 'paths.php',
736 736
             'rcode' => true
737 737
         ];
738 738
         foreach ($cloneFiles as $file) {
739
-            Tdmcreate\Files\CreateClone::cloneFile($file['src'] . $file['file'], $file['dst'] . $file['file'], $file['rcode'], $patKeys, $patValues);
739
+            Tdmcreate\Files\CreateClone::cloneFile($file['src'].$file['file'], $file['dst'].$file['file'], $file['rcode'], $patKeys, $patValues);
740 740
         }
741 741
         unset($cloneFiles);
742 742
     }
Please login to merge, or discard this patch.
class/Files/Config/ConfigConfig.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -94,17 +94,17 @@  discard block
 block discarded – undo
94 94
         $ret    .= $this->getSimpleString("XOOPS_UPLOAD_PATH . '/' . \$moduleDirName,", "\t\t");
95 95
         foreach (array_keys($tables) as $t) {
96 96
             $tableName = $tables[$t]->getVar('table_name');
97
-            $ret       .= $this->getSimpleString("XOOPS_UPLOAD_PATH . '/' . \$moduleDirName . '/{$tableName}',", "\t\t");
97
+            $ret .= $this->getSimpleString("XOOPS_UPLOAD_PATH . '/' . \$moduleDirName . '/{$tableName}',", "\t\t");
98 98
         }
99
-        $ret    .= $this->getSimpleString("XOOPS_UPLOAD_PATH . '/' . \$moduleDirName . '/images',", "\t\t");
99
+        $ret .= $this->getSimpleString("XOOPS_UPLOAD_PATH . '/' . \$moduleDirName . '/images',", "\t\t");
100 100
         foreach (array_keys($tables) as $t) {
101 101
             $tableName = $tables[$t]->getVar('table_name');
102
-            $ret       .= $this->getSimpleString("XOOPS_UPLOAD_PATH . '/' . \$moduleDirName . '/images/{$tableName}',", "\t\t");
102
+            $ret .= $this->getSimpleString("XOOPS_UPLOAD_PATH . '/' . \$moduleDirName . '/images/{$tableName}',", "\t\t");
103 103
         }
104
-        $ret    .= $this->getSimpleString("XOOPS_UPLOAD_PATH . '/' . \$moduleDirName . '/files',", "\t\t");
104
+        $ret .= $this->getSimpleString("XOOPS_UPLOAD_PATH . '/' . \$moduleDirName . '/files',", "\t\t");
105 105
         foreach (array_keys($tables) as $t) {
106 106
             $tableName = $tables[$t]->getVar('table_name');
107
-            $ret       .= $this->getSimpleString("XOOPS_UPLOAD_PATH . '/' . \$moduleDirName . '/files/{$tableName}',", "\t\t");
107
+            $ret .= $this->getSimpleString("XOOPS_UPLOAD_PATH . '/' . \$moduleDirName . '/files/{$tableName}',", "\t\t");
108 108
         }
109 109
         $ret    .= $this->getSimpleString("XOOPS_UPLOAD_PATH . '/' . \$moduleDirName . '/temp',", "\t\t");
110 110
         $ret    .= $this->getSimpleString("],", "\t");
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $ret    .= $this->getSimpleString("XOOPS_UPLOAD_PATH . '/' . \$moduleDirName . '/images',", "\t\t");
113 113
         foreach (array_keys($tables) as $t) {
114 114
             $tableName = $tables[$t]->getVar('table_name');
115
-            $ret       .= $this->getSimpleString("XOOPS_UPLOAD_PATH . '/' . \$moduleDirName . '/images/{$tableName}',", "\t\t");
115
+            $ret .= $this->getSimpleString("XOOPS_UPLOAD_PATH . '/' . \$moduleDirName . '/images/{$tableName}',", "\t\t");
116 116
         }
117 117
         $ret    .= $this->getSimpleString("],", "\t");
118 118
         $ret    .= $this->getSimpleString("'copyTestFolders'  => [", "\t");
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         $moduleDirname = $module->getVar('mod_dirname');
148 148
         $filename      = $this->getFileName();
149 149
         $content       = $this->getHeaderFilesComments($module);
150
-        $content       .= $this->getConfigCode();
150
+        $content .= $this->getConfigCode();
151 151
         $this->create($moduleDirname, 'config', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
152 152
 
153 153
         return $this->renderFile();
Please login to merge, or discard this patch.
class/Files/Classes/ClassHandlerFiles.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -175,15 +175,15 @@  discard block
 block discarded – undo
175 175
         $pc           = Tdmcreate\Files\CreatePhpCode::getInstance();
176 176
         $xc           = Tdmcreate\Files\CreateXoopsCode::getInstance();
177 177
         $ucfTableName = ucfirst($tableName);
178
-        $ret          = $pc->getPhpCodeCommentMultiLine(['Get Count ' . $ucfTableName => 'in the database', '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t");
178
+        $ret          = $pc->getPhpCodeCommentMultiLine(['Get Count '.$ucfTableName => 'in the database', '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t");
179 179
 
180
-        $critCount  = $xc->getXcCriteriaCompo('crCount' . $ucfTableName, "\t\t");
180
+        $critCount  = $xc->getXcCriteriaCompo('crCount'.$ucfTableName, "\t\t");
181 181
         $paramsCrit = "\$this->get{$ucfTableName}Criteria(\$crCount{$ucfTableName}, \$start, \$limit, \$sort, \$order)";
182
-        $critCount  .= $xc->getXcEqualsOperator('$crCount' . $ucfTableName, $paramsCrit, null, "\t\t");
182
+        $critCount  .= $xc->getXcEqualsOperator('$crCount'.$ucfTableName, $paramsCrit, null, "\t\t");
183 183
         $critCount  .= $this->getSimpleString("return parent::getCount(\$crCount{$ucfTableName});", "\t\t");
184 184
         $params     = "\$start = 0, \$limit = 0, \$sort = '{$fieldId} ASC, {$fieldMain}', \$order = 'ASC'";
185 185
 
186
-        $ret .= $pc->getPhpCodeFunction('getCount' . $ucfTableName, $params, $critCount, 'public ', false, "\t");
186
+        $ret .= $pc->getPhpCodeFunction('getCount'.$ucfTableName, $params, $critCount, 'public ', false, "\t");
187 187
 
188 188
         return $ret;
189 189
     }
@@ -202,15 +202,15 @@  discard block
 block discarded – undo
202 202
         $pc           = Tdmcreate\Files\CreatePhpCode::getInstance();
203 203
         $xc           = Tdmcreate\Files\CreateXoopsCode::getInstance();
204 204
         $ucfTableName = ucfirst($tableName);
205
-        $ret          = $pc->getPhpCodeCommentMultiLine(['Get All ' . $ucfTableName => 'in the database', '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'array'], "\t");
205
+        $ret          = $pc->getPhpCodeCommentMultiLine(['Get All '.$ucfTableName => 'in the database', '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'array'], "\t");
206 206
 
207
-        $critAll    = $xc->getXcCriteriaCompo('crAll' . $ucfTableName, "\t\t");
207
+        $critAll    = $xc->getXcCriteriaCompo('crAll'.$ucfTableName, "\t\t");
208 208
         $paramsCrit = "\$this->get{$ucfTableName}Criteria(\$crAll{$ucfTableName}, \$start, \$limit, \$sort, \$order)";
209
-        $critAll    .= $xc->getXcEqualsOperator('$crAll' . $ucfTableName, $paramsCrit, null, "\t\t");
209
+        $critAll    .= $xc->getXcEqualsOperator('$crAll'.$ucfTableName, $paramsCrit, null, "\t\t");
210 210
         $critAll    .= $this->getSimpleString("return parent::getAll(\$crAll{$ucfTableName});", "\t\t");
211 211
         $params     = "\$start = 0, \$limit = 0, \$sort = '{$fieldId} ASC, {$fieldMain}', \$order = 'ASC'";
212 212
 
213
-        $ret .= $pc->getPhpCodeFunction('getAll' . $ucfTableName, $params, $critAll, 'public ', false, "\t");
213
+        $ret .= $pc->getPhpCodeFunction('getAll'.$ucfTableName, $params, $critAll, 'public ', false, "\t");
214 214
 
215 215
         return $ret;
216 216
     }
@@ -246,19 +246,19 @@  discard block
 block discarded – undo
246 246
         $param2  = "\$GLOBALS['xoopsUser']->getGroups()";
247 247
         $param3  = "\$GLOBALS['xoopsModule']->getVar('mid')";
248 248
         $critAll .= $xc->getXcGetItemIds($lcfTopicTableName, 'grouppermHandler', $param1, $param2, $param3, "\t\t");
249
-        $critAll .= $xc->getXcCriteriaCompo('crAll' . $ucfTableName, "\t\t");
249
+        $critAll .= $xc->getXcCriteriaCompo('crAll'.$ucfTableName, "\t\t");
250 250
 
251 251
         if (false !== mb_strpos($fieldName, 'status')) {
252
-            $crit    = $xc->getXcCriteria('', "'{$fieldName}'", '0', "'!='", true);
253
-            $critAll .= $xc->getXcCriteriaAdd('crAll' . $ucfTableName, $crit, "\t\t");
252
+            $crit = $xc->getXcCriteria('', "'{$fieldName}'", '0', "'!='", true);
253
+            $critAll .= $xc->getXcCriteriaAdd('crAll'.$ucfTableName, $crit, "\t\t");
254 254
         }
255 255
         $paramsCritAll = "\$this->get{$ucfTableName}Criteria(\$crAll{$ucfTableName}, \$start, \$limit, \$sort, \$order)";
256
-        $critAll       .= $xc->getXcEqualsOperator('$crAll' . $ucfTableName, $paramsCritAll, null, "\t\t");
256
+        $critAll .= $xc->getXcEqualsOperator('$crAll'.$ucfTableName, $paramsCritAll, null, "\t\t");
257 257
 
258 258
         $critAll .= $this->getSimpleString("return parent::getAll(\$crAll{$ucfTableName});", "\t\t");
259
-        $params  = "\${$tableFieldName}Id, \$start = 0, \$limit = 0, \$sort = '{$fieldId} ASC, {$fieldMain}', \$order = 'ASC'";
259
+        $params = "\${$tableFieldName}Id, \$start = 0, \$limit = 0, \$sort = '{$fieldId} ASC, {$fieldMain}', \$order = 'ASC'";
260 260
 
261
-        $ret .= $pc->getPhpCodeFunction("getAll{$ucfTableName}By{$fieldNameDesc}Id" . $ucfTableName, $params, $critAll, 'public ', false, "\t");
261
+        $ret .= $pc->getPhpCodeFunction("getAll{$ucfTableName}By{$fieldNameDesc}Id".$ucfTableName, $params, $critAll, 'public ', false, "\t");
262 262
 
263 263
         return $ret;
264 264
     }
@@ -272,16 +272,16 @@  discard block
 block discarded – undo
272 272
     private function getClassCriteria($tableName)
273 273
     {
274 274
         $pc           = Tdmcreate\Files\CreatePhpCode::getInstance();
275
-		$xc           = Tdmcreate\Files\CreateXoopsCode::getInstance();
275
+		$xc = Tdmcreate\Files\CreateXoopsCode::getInstance();
276 276
         $ucfTableName = ucfirst($tableName);
277
-        $ret          = $pc->getPhpCodeCommentMultiLine(['Get' => 'Criteria ' . $ucfTableName, '@param       ' => "\$cr{$ucfTableName}", '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t");
277
+        $ret          = $pc->getPhpCodeCommentMultiLine(['Get' => 'Criteria '.$ucfTableName, '@param       ' => "\$cr{$ucfTableName}", '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t");
278 278
 
279 279
         $paramsAllCriteria = "\$cr{$ucfTableName}, \$start, \$limit, \$sort, \$order";
280 280
 
281
-        $critSets = $xc->getXcCriteriaSetStart('cr' . $ucfTableName, '$start', "\t\t");
282
-        $critSets .= $xc->getXcCriteriaSetLimit('cr' . $ucfTableName, '$limit', "\t\t");
283
-        $critSets .= $xc->getXcCriteriaSetSort('cr' . $ucfTableName, '$sort', "\t\t");
284
-        $critSets .= $xc->getXcCriteriaSetOrder('cr' . $ucfTableName, '$order', "\t\t");
281
+        $critSets = $xc->getXcCriteriaSetStart('cr'.$ucfTableName, '$start', "\t\t");
282
+        $critSets .= $xc->getXcCriteriaSetLimit('cr'.$ucfTableName, '$limit', "\t\t");
283
+        $critSets .= $xc->getXcCriteriaSetSort('cr'.$ucfTableName, '$sort', "\t\t");
284
+        $critSets .= $xc->getXcCriteriaSetOrder('cr'.$ucfTableName, '$order', "\t\t");
285 285
         $critSets .= $this->getSimpleString("return \$cr{$ucfTableName};", "\t\t");
286 286
 
287 287
         $ret .= $pc->getPhpCodeFunction("get{$ucfTableName}Criteria", $paramsAllCriteria, $critSets, 'private ', false, "\t");
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
         $ucfTableSoleName = ucfirst($tableSoleName);
306 306
         $ccTableSoleName  = $this->getCamelCase($tableSoleName, true);
307 307
 
308
-        $ret              = $pc->getPhpCodeCommentMultiLine(['Returns the' => $ucfTableSoleName . ' from id', '' => '', '@return' => 'string'], "\t");
308
+        $ret              = $pc->getPhpCodeCommentMultiLine(['Returns the' => $ucfTableSoleName.' from id', '' => '', '@return' => 'string'], "\t");
309 309
         $soleName         = $xc->getXcEqualsOperator("\${$tableSoleName}Id", "(int)( \${$tableSoleName}Id )", null, "\t\t");
310 310
         $soleName         .= $xc->getXcEqualsOperator("\${$tableSoleName}", "''", null, "\t\t");
311 311
         $contentIf        = $xc->getXcHandlerLine($tableName, "\t\t\t");
Please login to merge, or discard this patch.
class/Files/Includes/IncludeCommon.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -100,9 +100,9 @@  discard block
 block discarded – undo
100 100
         $moduleAuthorImage       = str_replace(' ', '', mb_strtolower($moduleAuthor));
101 101
 
102 102
         $contIf = $pc->getPhpCodeDefine('XOOPS_ICONS32_PATH', "XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32'", "\t");
103
-        $ret    = $pc->getPhpCodeConditions("!defined('XOOPS_ICONS32_PATH')", '','', $contIf, false);
103
+        $ret    = $pc->getPhpCodeConditions("!defined('XOOPS_ICONS32_PATH')", '', '', $contIf, false);
104 104
         $contIf = $pc->getPhpCodeDefine('XOOPS_ICONS32_URL', "XOOPS_URL . '/Frameworks/moduleclasses/icons/32'", "\t");
105
-        $ret    .= $pc->getPhpCodeConditions("!defined('XOOPS_ICONS32_URL')", '','', $contIf, false);
105
+        $ret    .= $pc->getPhpCodeConditions("!defined('XOOPS_ICONS32_URL')", '', '', $contIf, false);
106 106
         $ret    .= $this->getCommonDefines($moduleDirname, 'DIRNAME', "'{$moduleDirname}'");
107 107
         $ret    .= $this->getCommonDefines($moduleDirname, 'PATH', "XOOPS_ROOT_PATH.'/modules/'.{$stuModuleDirname}_DIRNAME");
108 108
         $ret    .= $this->getCommonDefines($moduleDirname, 'URL', "XOOPS_URL.'/modules/'.{$stuModuleDirname}_DIRNAME");
@@ -130,8 +130,8 @@  discard block
 block discarded – undo
130 130
 
131 131
         $img     = $hc->getHtmlImage('".$localLogo."', $moduleAuthorWebsiteName);
132 132
         $anchor  = $hc->getHtmlAnchor($moduleAuthorWebsiteUrl, $img, $moduleAuthorWebsiteName, '_blank', '', '', '', "\n");
133
-        $replace = $xc->getXcEqualsOperator('$copyright', '"' . $anchor . '"');
134
-        $ret     .= str_replace("\n", '', $replace) . PHP_EOL;
133
+        $replace = $xc->getXcEqualsOperator('$copyright', '"'.$anchor.'"');
134
+        $ret     .= str_replace("\n", '', $replace).PHP_EOL;
135 135
         $ret     .= $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/xoopsrequest', true);
136 136
         $ret     .= $pc->getPhpCodeIncludeDir("{$stuModuleDirname}_PATH", 'class/helper', true);
137 137
         $ret     .= $pc->getPhpCodeIncludeDir("{$stuModuleDirname}_PATH", 'include/functions', true);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         $moduleDirname = $module->getVar('mod_dirname');
151 151
         $filename      = $this->getFileName();
152 152
         $content       = $this->getHeaderFilesComments($module);
153
-        $content       .= $this->getCommonCode($module);
153
+        $content .= $this->getCommonCode($module);
154 154
         $this->create($moduleDirname, 'include', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
155 155
 
156 156
         return $this->renderFile();
Please login to merge, or discard this patch.