Passed
Push — master ( 0c230a...4674d5 )
by Goffy
38s queued 14s
created
class/files/sql/SqlFile.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
                     case 3:
198 198
                     case 4:
199 199
                     case 5:
200
-                        $type = $fieldTypeName . '(' . $fieldValue . ')';
200
+                        $type = $fieldTypeName.'('.$fieldValue.')';
201 201
                         if (empty($fieldDefault)) {
202 202
                             $default = "DEFAULT '0'";
203 203
                         } else {
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                     case 6:
208 208
                     case 7:
209 209
                     case 8:
210
-                        $type = $fieldTypeName . '(' . $fieldValue . ')';
210
+                        $type = $fieldTypeName.'('.$fieldValue.')';
211 211
                         if (empty($fieldDefault)) {
212 212
                             $default = "DEFAULT '0.00'"; // From MySQL 5.7 Manual
213 213
                         } else {
@@ -217,11 +217,11 @@  discard block
 block discarded – undo
217 217
                     case 9:
218 218
                     case 10:
219 219
                         $fValues = implode("', '", explode(',', str_replace(' ', '', $fieldValue)));
220
-                        $type = $fieldTypeName . '(\'' . $fValues . '\')'; // Used with comma separator
220
+                        $type = $fieldTypeName.'(\''.$fValues.'\')'; // Used with comma separator
221 221
                         $default = "DEFAULT '{$fieldDefault}'";
222 222
                         break;
223 223
                     case 11:
224
-                        $type = $fieldTypeName . '(' . $fieldValue . ')';
224
+                        $type = $fieldTypeName.'('.$fieldValue.')';
225 225
                         if (empty($fieldDefault)) {
226 226
                             $default = "DEFAULT '[email protected]'";
227 227
                         } else {
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
                         }
230 230
                         break;
231 231
                     case 12:
232
-                        $type = $fieldTypeName . '(' . $fieldValue . ')';
232
+                        $type = $fieldTypeName.'('.$fieldValue.')';
233 233
                         if (empty($fieldDefault)) {
234 234
                             $default = "DEFAULT 'http:\\'";
235 235
                         } else {
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
                         break;
239 239
                     case 13:
240 240
                     case 14:
241
-                        $type = $fieldTypeName . '(' . $fieldValue . ')';
241
+                        $type = $fieldTypeName.'('.$fieldValue.')';
242 242
                         $default = "DEFAULT '{$fieldDefault}'";
243 243
                         break;
244 244
                     case 15:
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
                     case 20:
253 253
                     case 21:
254 254
                     case 22:
255
-                        $type = $fieldTypeName . '(' . $fieldValue . ')';
255
+                        $type = $fieldTypeName.'('.$fieldValue.')';
256 256
                         $default = "DEFAULT '{$fieldDefault}'";
257 257
                         break;
258 258
                     case 23:
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
                         }
265 265
                         break;
266 266
                     default:
267
-                        $type = $fieldTypeName . '(' . $fieldValue . ')';
267
+                        $type = $fieldTypeName.'('.$fieldValue.')';
268 268
                         $default = "DEFAULT '{$fieldDefault}'";
269 269
                         break;
270 270
                 }
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
         // ================= COMMA ================= //
310 310
         for ($i = 0; $i < $j; ++$i) {
311 311
             if ($i != $j - 1) {
312
-                $row[] = $comma[$i] . ',';
312
+                $row[] = $comma[$i].',';
313 313
             } else {
314 314
                 $row[] = $comma[$i];
315 315
             }
@@ -423,9 +423,9 @@  discard block
 block discarded – undo
423 423
         // Comma issue
424 424
         for ($i = 1; $i <= $index; ++$i) {
425 425
             if ($i != $index - 1) {
426
-                $ret = $this->getComma(isset($comma[$i]), ',') . "\n";
426
+                $ret = $this->getComma(isset($comma[$i]), ',')."\n";
427 427
             } else {
428
-                $ret = $this->getComma(isset($comma[$i])) . "\n";
428
+                $ret = $this->getComma(isset($comma[$i]))."\n";
429 429
             }
430 430
         }
431 431
 
Please login to merge, or discard this patch.
class/files/classes/ClassFiles.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $ucfModuleDirname = ucfirst($moduleDirname);
170 170
         $ucfTableName = ucfirst($tableName);
171 171
         $ret = $pc->getPhpCodeDefined();
172
-        $ret .= $pc->getPhpCodeCommentMultiLine(['Class Object' => $ucfModuleDirname . $ucfTableName]);
172
+        $ret .= $pc->getPhpCodeCommentMultiLine(['Class Object' => $ucfModuleDirname.$ucfTableName]);
173 173
         $cCl = '';
174 174
 
175 175
         $fieldInForm = [];
@@ -184,9 +184,9 @@  discard block
 block discarded – undo
184 184
             $rpFieldName = $this->getRightString($fieldName);
185 185
             if (in_array(5, $fieldElementId, true)) {
186 186
                 if (count($rpFieldName) % 5) {
187
-                    $optionsFieldName[] = "'" . $rpFieldName . "'";
187
+                    $optionsFieldName[] = "'".$rpFieldName."'";
188 188
                 } else {
189
-                    $optionsFieldName[] = "'" . $rpFieldName . "'\n";
189
+                    $optionsFieldName[] = "'".$rpFieldName."'\n";
190 190
                 }
191 191
             }
192 192
             if ((0 == $f) && (1 == $table->getVar('table_autoincrement'))) {
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         }
222 222
         unset($fieldElementId);
223 223
 
224
-        $ret .= $pc->getPhpCodeClass($ucfModuleDirname . $ucfTableName, $cCl, 'XoopsObject');
224
+        $ret .= $pc->getPhpCodeClass($ucfModuleDirname.$ucfTableName, $cCl, 'XoopsObject');
225 225
 
226 226
         return $ret;
227 227
     }
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         $getInsertedId = $xc->getXcEqualsOperator('$newInsertedId', "\$GLOBALS['xoopsDB']->getInsertId()", null, false, "\t\t");
244 244
         $getInsertedId .= $this->getSimpleString('return $newInsertedId;', "\t\t");
245 245
 
246
-        $ret .= $pc->getPhpCodeFunction('getNewInsertedId' . $ucfTableName, '', $getInsertedId, 'public ', false, "\t");
246
+        $ret .= $pc->getPhpCodeFunction('getNewInsertedId'.$ucfTableName, '', $getInsertedId, 'public ', false, "\t");
247 247
 
248 248
         return $ret;
249 249
     }
@@ -284,12 +284,12 @@  discard block
 block discarded – undo
284 284
         if (1 != $tableCategory/* && (1 == $tablePermissions)*/) {
285 285
             $getForm .= $pc->getPhpCodeCommentLine('Permissions for', 'uploader', "\t\t");
286 286
             $getForm .= $xc->getXcEqualsOperator('$gpermHandler', "xoops_getHandler('groupperm')", null, true, "\t\t");
287
-            $getForm .= $pc->getPhpCodeTernaryOperator('groups', 'is_object(' . $xUser . ')', $xUser . '->getGroups()', 'XOOPS_GROUP_ANONYMOUS', "\t\t");
288
-            $checkRight = $xc->getXcCheckRight('$gpermHandler', $permString = '', 32, '$groups', $xModule . '->getVar(\'mid\')', true);
287
+            $getForm .= $pc->getPhpCodeTernaryOperator('groups', 'is_object('.$xUser.')', $xUser.'->getGroups()', 'XOOPS_GROUP_ANONYMOUS', "\t\t");
288
+            $checkRight = $xc->getXcCheckRight('$gpermHandler', $permString = '', 32, '$groups', $xModule.'->getVar(\'mid\')', true);
289 289
             $ternaryOperator = $pc->getPhpCodeTernaryOperator('permissionUpload', $checkRight, 'true', 'false', "\t\t\t\t");
290 290
             $permissionUpload = $xc->getXcEqualsOperator('$permissionUpload', 'true', null, false, "\t\t\t\t");
291 291
             $ternOperator = $pc->getPhpCodeRemoveCarriageReturn($ternaryOperator, '', "\r");
292
-            $if = $pc->getPhpCodeConditions('!' . $xUser . '->isAdmin(' . $xModule . '->mid())', '', '', $ternaryOperator, $permissionUpload, "\t\t\t");
292
+            $if = $pc->getPhpCodeConditions('!'.$xUser.'->isAdmin('.$xModule.'->mid())', '', '', $ternaryOperator, $permissionUpload, "\t\t\t");
293 293
             $getForm .= $pc->getPhpCodeConditions($xUser, '', '', $if, $ternOperator, "\t\t");
294 294
         }
295 295
         $getForm .= $pc->getPhpCodeCommentLine('Title', '', "\t\t");
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
         $getForm .= $cc->getClassAddElement('form', "new XoopsFormButtonTray('', _SUBMIT, 'submit', '', false)");
313 313
         $getForm .= $this->getSimpleString('return $form;', "\t\t");
314 314
 
315
-        $ret .= $pc->getPhpCodeFunction('getForm' . $ucfTableName, '$action = false', $getForm, 'public ', false, "\t");
315
+        $ret .= $pc->getPhpCodeFunction('getForm'.$ucfTableName, '$action = false', $getForm, 'public ', false, "\t");
316 316
 
317 317
         return $ret;
318 318
     }
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
         }
434 434
         $getValues .= $this->getSimpleString('return $ret;', "\t\t");
435 435
 
436
-        $ret .= $pc->getPhpCodeFunction('getValues' . $ucfTableName, '$keys = null, $format = null, $maxDepth = null', $getValues, 'public ', false, "\t");
436
+        $ret .= $pc->getPhpCodeFunction('getValues'.$ucfTableName, '$keys = null, $format = null, $maxDepth = null', $getValues, 'public ', false, "\t");
437 437
 
438 438
         return $ret;
439 439
     }
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
         $getToArray .= $pc->getPhpCodeForeach('vars', true, false, 'var', $foreach, "\t\t");
461 461
         $getToArray .= $this->getSimpleString('return $ret;', "\t\t");
462 462
 
463
-        $ret .= $pc->getPhpCodeFunction('toArray' . $ucfTableName, '', $getToArray, 'public ', false, "\t");
463
+        $ret .= $pc->getPhpCodeFunction('toArray'.$ucfTableName, '', $getToArray, 'public ', false, "\t");
464 464
 
465 465
         return $ret;
466 466
     }
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
 
498 498
         $getOptions .= $this->getSimpleString('return $ret;', "\t\t");
499 499
 
500
-        $ret .= $pc->getPhpCodeFunction('getOptions' . $ucfTableName, '', $getOptions, 'public ', false, "\t");
500
+        $ret .= $pc->getPhpCodeFunction('getOptions'.$ucfTableName, '', $getOptions, 'public ', false, "\t");
501 501
 
502 502
         return $ret;
503 503
     }
@@ -526,8 +526,8 @@  discard block
 block discarded – undo
526 526
         $ucfModuleDirname = ucfirst($moduleDirname);
527 527
         $ucfTableName = ucfirst($tableName);
528 528
         $ucfTableSoleName = ucfirst($tableSoleName);
529
-        $ucfModuleTable = $ucfModuleDirname . $ucfTableName;
530
-        $multiLineCom = ['Class Object Handler' => $ucfModuleDirname . $ucfTableName];
529
+        $ucfModuleTable = $ucfModuleDirname.$ucfTableName;
530
+        $multiLineCom = ['Class Object Handler' => $ucfModuleDirname.$ucfTableName];
531 531
         $ret = $pc->getPhpCodeCommentMultiLine($multiLineCom);
532 532
 
533 533
         $cClh = $pc->getPhpCodeCommentMultiLine(['Constructor' => '', '' => '', '@param' => 'null|XoopsDatabase $db'], "\t");
@@ -613,15 +613,15 @@  discard block
 block discarded – undo
613 613
         $xc = TDMCreateXoopsCode::getInstance();
614 614
         $cc = ClassXoopsCode::getInstance();
615 615
         $ucfTableName = ucfirst($tableName);
616
-        $ret = $pc->getPhpCodeCommentMultiLine(['Get Count ' . $ucfTableName => 'in the database', '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t");
616
+        $ret = $pc->getPhpCodeCommentMultiLine(['Get Count '.$ucfTableName => 'in the database', '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t");
617 617
 
618
-        $critCount = $cc->getClassCriteriaCompo('crCount' . $ucfTableName, "\t\t");
618
+        $critCount = $cc->getClassCriteriaCompo('crCount'.$ucfTableName, "\t\t");
619 619
         $paramsCrit = "\$this->get{$ucfTableName}Criteria(\$crCount{$ucfTableName}, \$start, \$limit, \$sort, \$order)";
620
-        $critCount .= $xc->getXcEqualsOperator('$crCount' . $ucfTableName, $paramsCrit, null, false, "\t\t");
620
+        $critCount .= $xc->getXcEqualsOperator('$crCount'.$ucfTableName, $paramsCrit, null, false, "\t\t");
621 621
         $critCount .= $this->getSimpleString("return parent::getCount(\$crCount{$ucfTableName});", "\t\t");
622 622
         $params = "\$start = 0, \$limit = 0, \$sort = '{$fieldId} ASC, {$fieldMain}', \$order = 'ASC'";
623 623
 
624
-        $ret .= $pc->getPhpCodeFunction('getCount' . $ucfTableName, $params, $critCount, 'public ', false, "\t");
624
+        $ret .= $pc->getPhpCodeFunction('getCount'.$ucfTableName, $params, $critCount, 'public ', false, "\t");
625 625
 
626 626
         return $ret;
627 627
     }
@@ -641,15 +641,15 @@  discard block
 block discarded – undo
641 641
         $xc = TDMCreateXoopsCode::getInstance();
642 642
         $cc = ClassXoopsCode::getInstance();
643 643
         $ucfTableName = ucfirst($tableName);
644
-        $ret = $pc->getPhpCodeCommentMultiLine(['Get All ' . $ucfTableName => 'in the database', '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'array'], "\t");
644
+        $ret = $pc->getPhpCodeCommentMultiLine(['Get All '.$ucfTableName => 'in the database', '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'array'], "\t");
645 645
 
646
-        $critAll = $cc->getClassCriteriaCompo('crAll' . $ucfTableName, "\t\t");
646
+        $critAll = $cc->getClassCriteriaCompo('crAll'.$ucfTableName, "\t\t");
647 647
         $paramsCrit = "\$this->get{$ucfTableName}Criteria(\$crAll{$ucfTableName}, \$start, \$limit, \$sort, \$order)";
648
-        $critAll .= $xc->getXcEqualsOperator('$crAll' . $ucfTableName, $paramsCrit, null, false, "\t\t");
648
+        $critAll .= $xc->getXcEqualsOperator('$crAll'.$ucfTableName, $paramsCrit, null, false, "\t\t");
649 649
         $critAll .= $this->getSimpleString("return parent::getAll(\$crAll{$ucfTableName});", "\t\t");
650 650
         $params = "\$start = 0, \$limit = 0, \$sort = '{$fieldId} ASC, {$fieldMain}', \$order = 'ASC'";
651 651
 
652
-        $ret .= $pc->getPhpCodeFunction('getAll' . $ucfTableName, $params, $critAll, 'public ', false, "\t");
652
+        $ret .= $pc->getPhpCodeFunction('getAll'.$ucfTableName, $params, $critAll, 'public ', false, "\t");
653 653
 
654 654
         return $ret;
655 655
     }
@@ -690,19 +690,19 @@  discard block
 block discarded – undo
690 690
         $param2 = "\$GLOBALS['xoopsUser']->getGroups()";
691 691
         $param3 = "\$GLOBALS['xoopsModule']->getVar('mid')";
692 692
         $critAll .= $xc->getXcGetItemIds($lcfTopicTableName, 'gpermHandler', $param1, $param2, $param3, "\t\t");
693
-        $critAll .= $cc->getClassCriteriaCompo('crAll' . $ucfTableName, "\t\t");
693
+        $critAll .= $cc->getClassCriteriaCompo('crAll'.$ucfTableName, "\t\t");
694 694
 
695 695
         if (false !== mb_strpos($fieldName, 'status')) {
696 696
             $crit = $cc->getClassCriteria('', "'{$fieldName}'", '0', "'!='", true);
697
-            $critAll .= $cc->getClassAdd('crAll' . $ucfTableName, $crit, "\t\t");
697
+            $critAll .= $cc->getClassAdd('crAll'.$ucfTableName, $crit, "\t\t");
698 698
         }
699 699
         $paramsCritAll = "\$this->get{$ucfTableName}Criteria(\$crAll{$ucfTableName}, \$start, \$limit, \$sort, \$order)";
700
-        $critAll .= $xc->getXcEqualsOperator('$crAll' . $ucfTableName, $paramsCritAll, null, false, "\t\t");
700
+        $critAll .= $xc->getXcEqualsOperator('$crAll'.$ucfTableName, $paramsCritAll, null, false, "\t\t");
701 701
 
702 702
         $critAll .= $this->getSimpleString("return parent::getAll(\$crAll{$ucfTableName});", "\t\t");
703 703
         $params = "\${$tableFieldName}Id, \$start = 0, \$limit = 0, \$sort = '{$fieldId} ASC, {$fieldMain}', \$order = 'ASC'";
704 704
 
705
-        $ret .= $pc->getPhpCodeFunction("getAll{$ucfTableName}By{$fieldNameDesc}Id" . $ucfTableName, $params, $critAll, 'public ', false, "\t");
705
+        $ret .= $pc->getPhpCodeFunction("getAll{$ucfTableName}By{$fieldNameDesc}Id".$ucfTableName, $params, $critAll, 'public ', false, "\t");
706 706
 
707 707
         return $ret;
708 708
     }
@@ -718,14 +718,14 @@  discard block
 block discarded – undo
718 718
         $pc = TDMCreatePhpCode::getInstance();
719 719
         $cc = ClassXoopsCode::getInstance();
720 720
         $ucfTableName = ucfirst($tableName);
721
-        $ret = $pc->getPhpCodeCommentMultiLine(['Get' => 'Criteria ' . $ucfTableName, '@param       ' => "\$cr{$ucfTableName}", '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t");
721
+        $ret = $pc->getPhpCodeCommentMultiLine(['Get' => 'Criteria '.$ucfTableName, '@param       ' => "\$cr{$ucfTableName}", '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t");
722 722
 
723 723
         $paramsAllCriteria = "\$cr{$ucfTableName}, \$start, \$limit, \$sort, \$order";
724 724
 
725
-        $critSets = $cc->getClassSetStart('cr' . $ucfTableName, 'start', "\t\t");
726
-        $critSets .= $cc->getClassSetLimit('cr' . $ucfTableName, 'limit', "\t\t");
727
-        $critSets .= $cc->getClassSetSort('cr' . $ucfTableName, 'sort', "\t\t");
728
-        $critSets .= $cc->getClassSetOrder('cr' . $ucfTableName, 'order', "\t\t");
725
+        $critSets = $cc->getClassSetStart('cr'.$ucfTableName, 'start', "\t\t");
726
+        $critSets .= $cc->getClassSetLimit('cr'.$ucfTableName, 'limit', "\t\t");
727
+        $critSets .= $cc->getClassSetSort('cr'.$ucfTableName, 'sort', "\t\t");
728
+        $critSets .= $cc->getClassSetOrder('cr'.$ucfTableName, 'order', "\t\t");
729 729
         $critSets .= $this->getSimpleString("return \$cr{$ucfTableName};", "\t\t");
730 730
 
731 731
         $ret .= $pc->getPhpCodeFunction("get{$ucfTableName}Criteria", $paramsAllCriteria, $critSets, 'private ', false, "\t");
@@ -750,7 +750,7 @@  discard block
 block discarded – undo
750 750
         $tableSoleName = $table->getVar('table_solename');
751 751
         $ucfTableSoleName = ucfirst($tableSoleName);
752 752
         $ccTableSoleName = $this->getCamelCase($tableSoleName, true);
753
-        $ret = $pc->getPhpCodeCommentMultiLine(['Returns the' => $ucfTableSoleName . ' from id', '' => '', '@return' => 'string'], "\t");
753
+        $ret = $pc->getPhpCodeCommentMultiLine(['Returns the' => $ucfTableSoleName.' from id', '' => '', '@return' => 'string'], "\t");
754 754
         $soleName = $xc->getXcEqualsOperator("\${$tableSoleName}Id", "(int)( \${$tableSoleName}Id )", null, false, "\t\t");
755 755
         $soleName .= $xc->getXcEqualsOperator("\${$tableSoleName}", "''", null, false, "\t\t");
756 756
 
Please login to merge, or discard this patch.
class/files/classes/ClassFormElements.php 1 patch
Spacing   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
             $ret = $pc->getPhpCodeCommentLine('Form Text', $ucfFieldName, "\t\t");
76 76
             $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', "'{$fieldDefault}'", "\$this->getVar('{$fieldName}')", "\t\t");
77 77
             $formText = $cc->getClassXoopsFormText('', $language, $fieldName, 20, 150, "{$ccFieldName}", true);
78
-            $ret .= $cc->getClassAddElement('form', $formText . $required);
78
+            $ret .= $cc->getClassAddElement('form', $formText.$required);
79 79
         } else {
80 80
             $ret = $pc->getPhpCodeCommentLine('Form Text', $ucfFieldName, "\t\t");
81 81
             $formText = $cc->getClassXoopsFormText('', $language, $fieldName, 50, 255, "this->getVar('{$fieldName}')", true);
82
-            $ret .= $cc->getClassAddElement('form', $formText . $required);
82
+            $ret .= $cc->getClassAddElement('form', $formText.$required);
83 83
         }
84 84
 
85 85
         return $ret;
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         $ucfFieldName = $tf->getCamelCase($fieldName, true);
103 103
         $ret = $pc->getPhpCodeCommentLine('Form Text Area', $ucfFieldName, "\t\t");
104 104
         $formTextArea = $cc->getClassXoopsFormTextArea('', $language, $fieldName, 4, 47, true);
105
-        $ret .= $cc->getClassAddElement('form', $formTextArea . $required);
105
+        $ret .= $cc->getClassAddElement('form', $formTextArea.$required);
106 106
 
107 107
         return $ret;
108 108
     }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
         $ret = $pc->getPhpCodeCommentLine('Form editor', $ucfFieldName, "\t\t");
130 130
         $ret .= $pc->getPhpCodeArray('editorConfigs', null, false, "\t\t");
131
-        $getConfig = $xc->getXcGetConfig($moduleDirname, 'editor_' . $rpFieldName);
131
+        $getConfig = $xc->getXcGetConfig($moduleDirname, 'editor_'.$rpFieldName);
132 132
         $configs = [
133 133
             'name' => "'{$fieldName}'", 'value' => "\$this->getVar('{$fieldName}', 'e')", 'rows' => 5, 'cols' => 40,
134 134
             'width' => "'100%'", 'height' => "'400px'", 'editor' => $getConfig,
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             $ret .= $xc->getXcEqualsOperator("\$editorConfigs['{$c}']", $d, null, false, "\t\t");
138 138
         }
139 139
         $formEditor = $cc->getClassXoopsFormEditor('', $language, $fieldName, 'editorConfigs', true);
140
-        $ret .= $cc->getClassAddElement('form', $formEditor . $required);
140
+        $ret .= $cc->getClassAddElement('form', $formEditor.$required);
141 141
 
142 142
         return $ret;
143 143
     }
@@ -163,20 +163,20 @@  discard block
 block discarded – undo
163 163
         $ccFieldName = $tf->getCamelCase($fieldName, false, true);
164 164
         $t = "\t\t";
165 165
         if (in_array(5, $fieldElementId, true) > 1) {
166
-            $ret = $pc->getPhpCodeCommentLine('Form Check Box', 'List Options ' . $ucfFieldName, $t);
166
+            $ret = $pc->getPhpCodeCommentLine('Form Check Box', 'List Options '.$ucfFieldName, $t);
167 167
             $ret .= $xc->getXcEqualsOperator('$checkOption', '$this->getOptions()');
168
-            $foreach = $cc->getClassXoopsFormCheckBox('check' . $ucfFieldName, '<hr />', $tableSoleName . '_option', '$checkOption', false, $t);
169
-            $foreach .= $cc->getClassSetDescription('check' . $ucfFieldName, "{$language}{$stuTableSoleName}_OPTIONS_DESC", $t);
170
-            $foreach .= $cc->getClassAddOption('check' . $ucfFieldName, "\$option, {$language}{$stuTableSoleName}_ . strtoupper(\$option)", $t . "\t");
168
+            $foreach = $cc->getClassXoopsFormCheckBox('check'.$ucfFieldName, '<hr />', $tableSoleName.'_option', '$checkOption', false, $t);
169
+            $foreach .= $cc->getClassSetDescription('check'.$ucfFieldName, "{$language}{$stuTableSoleName}_OPTIONS_DESC", $t);
170
+            $foreach .= $cc->getClassAddOption('check'.$ucfFieldName, "\$option, {$language}{$stuTableSoleName}_ . strtoupper(\$option)", $t."\t");
171 171
             $ret .= $pc->getPhpCodeForeach("{$tableName}All", false, false, 'option', $foreach, $t);
172 172
             $intElem = "\$check{$ucfFieldName}{$required}";
173 173
             $ret .= $cc->getClassAddElement('form', $intElem, $t);
174 174
         } else {
175 175
             $ret = $pc->getPhpCodeCommentLine('Form Check Box', $ucfFieldName, $t);
176 176
             $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', 0, "\$this->getVar('{$fieldName}')", $t);
177
-            $ret .= $cc->getClassXoopsFormCheckBox('check' . $ucfFieldName, "{$language}", $fieldName, "\${$ccFieldName}", false, $t);
177
+            $ret .= $cc->getClassXoopsFormCheckBox('check'.$ucfFieldName, "{$language}", $fieldName, "\${$ccFieldName}", false, $t);
178 178
             $option = "1, {$language}";
179
-            $ret .= $cc->getClassAddOption('check' . $ucfFieldName, $option, $t);
179
+            $ret .= $cc->getClassAddOption('check'.$ucfFieldName, $option, $t);
180 180
             $intElem = "\$check{$ucfFieldName}{$required}";
181 181
             $ret .= $cc->getClassAddElement('form', $intElem, $t);
182 182
         }
@@ -224,16 +224,16 @@  discard block
 block discarded – undo
224 224
         $cc = ClassXoopsCode::getInstance();
225 225
         $stuTableName = mb_strtoupper($tableName);
226 226
         $rpFieldName = $tf->getRightString($fieldName);
227
-        $stuSoleName = mb_strtoupper($tableSoleName . '_' . $rpFieldName);
227
+        $stuSoleName = mb_strtoupper($tableSoleName.'_'.$rpFieldName);
228 228
         $ucfFieldName = $tf->getCamelCase($fieldName, true);
229 229
         $ccFieldName = $tf->getCamelCase($fieldName, false, true);
230 230
         $t = "\t\t";
231
-        $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files ' . $ucfFieldName, $t);
232
-        $ret .= $xc->getXcEqualsOperator('$get' . $ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t);
233
-        $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get' . $ucfFieldName, '$get' . $ucfFieldName, "'blank.gif'", $t);
231
+        $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files '.$ucfFieldName, $t);
232
+        $ret .= $xc->getXcEqualsOperator('$get'.$ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t);
233
+        $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get'.$ucfFieldName, '$get'.$ucfFieldName, "'blank.gif'", $t);
234 234
         $ret .= $xc->getXcEqualsOperator('$imageDirectory', "'/Frameworks/moduleclasses/icons/32'", null, false, $t);
235
-        $ret .= $cc->getClassXoopsFormElementTray('imageTray', $language . $stuSoleName, '<br>', $t);
236
-        $sprintf = $pc->getPhpCodeSprintf($language . 'FORM_IMAGE_PATH', '".{$imageDirectory}/"');
235
+        $ret .= $cc->getClassXoopsFormElementTray('imageTray', $language.$stuSoleName, '<br>', $t);
236
+        $sprintf = $pc->getPhpCodeSprintf($language.'FORM_IMAGE_PATH', '".{$imageDirectory}/"');
237 237
         $ret .= $cc->getClassXoopsFormSelect('imageSelect', $sprintf, $fieldName, $ccFieldName, 5, 'false', false, $t);
238 238
         $ret .= $xc->getXcXoopsImgListArray('imageArray', 'XOOPS_ROOT_PATH . $imageDirectory', $t);
239 239
         $contForeach = $cc->getClassAddOption('imageSelect', '"{$image1}", $image1', "\t");
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
         $ret .= $pc->getPhpCodeCommentLine('Form', 'File', $t);
248 248
         $ret .= $cc->getClassXoopsFormElementTray('fileSelectTray', "''", '<br>', $t);
249 249
         $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize');
250
-        $xoopsFormFile = $cc->getClassXoopsFormFile('', $language . 'FORM_IMAGE_LIST_' . $stuTableName, 'attachedfile', $getConfig, true, '');
250
+        $xoopsFormFile = $cc->getClassXoopsFormFile('', $language.'FORM_IMAGE_LIST_'.$stuTableName, 'attachedfile', $getConfig, true, '');
251 251
         $ret .= $cc->getClassAddElement('fileSelectTray', $xoopsFormFile, $t);
252 252
         $xoopsFormLabel1 = $cc->getClassXoopsFormLabel('', "''", null, true, $t);
253 253
         $ret .= $cc->getClassAddElement('fileSelectTray', $xoopsFormLabel1, $t);
@@ -276,12 +276,12 @@  discard block
 block discarded – undo
276 276
         $ccFieldName = $tf->getCamelCase($fieldName, false, true);
277 277
         $ucfFieldName = $tf->getCamelCase($fieldName, true);
278 278
         $t = "\t\t\t";
279
-        $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files ' . $ucfFieldName, "\t\t");
280
-        $contentIf = $xc->getXcEqualsOperator('$get' . $ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t);
281
-        $contentIf .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get' . $ucfFieldName, '$get' . $ucfFieldName, "'blank.gif'", $t);
279
+        $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files '.$ucfFieldName, "\t\t");
280
+        $contentIf = $xc->getXcEqualsOperator('$get'.$ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t);
281
+        $contentIf .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get'.$ucfFieldName, '$get'.$ucfFieldName, "'blank.gif'", $t);
282 282
         $contentIf .= $xc->getXcEqualsOperator('$uploadDirectory', "'/uploads/{$moduleDirname}/images/shots'", null, false, $t);
283
-        $contentIf .= $cc->getClassXoopsFormElementTray('imageTray', $language . 'FORM_IMAGE', '<br>', $t);
284
-        $sprintf = $pc->getPhpCodeSprintf($language . 'FORM_PATH', '".{$uploadDirectory}/"');
283
+        $contentIf .= $cc->getClassXoopsFormElementTray('imageTray', $language.'FORM_IMAGE', '<br>', $t);
284
+        $sprintf = $pc->getPhpCodeSprintf($language.'FORM_PATH', '".{$uploadDirectory}/"');
285 285
         $contentIf .= $cc->getClassXoopsFormSelect('imageSelect', $sprintf, 'selected_image', "\${$moduleDirname}ShotImage", 5, 'false', false, $t);
286 286
         $contentIf .= $xc->getXcXoopsImgListArray('imageArray', 'XOOPS_ROOT_PATH . $uploadDirectory', $t);
287 287
         $contForeach = $cc->getClassAddOption('imageSelect', '"{$image1}", $image1', "\t");
@@ -295,8 +295,8 @@  discard block
 block discarded – undo
295 295
         $contentIf .= $pc->getPhpCodeCommentLine('Form', 'File', "\t\t");
296 296
         $contentIf .= $cc->getClassXoopsFormElementTray('fileSelectTray', "''", '<br>', $t);
297 297
         $getConfigFile = $xc->getXcGetConfig($moduleDirname, 'maxuploadsize');
298
-        $xoopsFormFile = $cc->getClassXoopsFormFile('', $language . '_FORM_UPLOAD', 'attachedimage', $getConfigFile, true, '');
299
-        $contentIf1 = $cc->getClassAddElement('fileSelectTray', $xoopsFormFile . $required, $t . "\t");
298
+        $xoopsFormFile = $cc->getClassXoopsFormFile('', $language.'_FORM_UPLOAD', 'attachedimage', $getConfigFile, true, '');
299
+        $contentIf1 = $cc->getClassAddElement('fileSelectTray', $xoopsFormFile.$required, $t."\t");
300 300
 
301 301
         $contentIf .= $cc->getClassAddElement('imageTray', '$fileSelectTray', $t);
302 302
         $contentIf .= $cc->getClassAddElement('form', "\$imageTray{$required}", $t);
@@ -327,14 +327,14 @@  discard block
 block discarded – undo
327 327
         $cc = ClassXoopsCode::getInstance();
328 328
         $ucfFieldName = $tf->getCamelCase($fieldName, true);
329 329
         $t = "\t\t";
330
-        $ret = $pc->getPhpCodeCommentLine('Form Url', 'Text File ' . $ucfFieldName, $t);
330
+        $ret = $pc->getPhpCodeCommentLine('Form Url', 'Text File '.$ucfFieldName, $t);
331 331
         $ret .= $cc->getClassXoopsFormElementTray('formUrlFile', '_OPTIONS', '<br><br>', $t);
332 332
         $ret .= $pc->getPhpCodeTernaryOperator('formUrl', '$this->isNew()', "'{$fieldDefault}'", "\$this->getVar('{$fieldName}')", $t);
333 333
         $ret .= $cc->getClassXoopsFormText('formText', $language, $fieldName, 75, 255, 'formUrl', false, $t);
334
-        $ret .= $cc->getClassAddElement('formUrlFile', '$formText' . $required, $t);
334
+        $ret .= $cc->getClassAddElement('formUrlFile', '$formText'.$required, $t);
335 335
         $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize');
336
-        $xoopsFormFile = $cc->getClassXoopsFormFile('', $language . 'UPLOAD', 'attachedfile', $getConfig, true, '');
337
-        $ret .= $cc->getClassAddElement('formUrlFile', $xoopsFormFile . $required, $t);
336
+        $xoopsFormFile = $cc->getClassXoopsFormFile('', $language.'UPLOAD', 'attachedfile', $getConfig, true, '');
337
+        $ret .= $cc->getClassAddElement('formUrlFile', $xoopsFormFile.$required, $t);
338 338
         $ret .= $cc->getClassAddElement('form', '$formUrlFile', $t);
339 339
 
340 340
         return $ret;
@@ -362,12 +362,12 @@  discard block
 block discarded – undo
362 362
         $ucfFieldName = $tf->getCamelCase($fieldName, true);
363 363
         $ccFieldName = $tf->getCamelCase($fieldName, false, true);
364 364
         $t = "\t\t";
365
-        $ret = $pc->getPhpCodeCommentLine('Form Upload', 'Image ' . $ucfFieldName, $t);
366
-        $ret .= $xc->getXcEqualsOperator('$get' . $ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t);
367
-        $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get' . $ucfFieldName, '$get' . $ucfFieldName, "'blank.gif'", $t);
365
+        $ret = $pc->getPhpCodeCommentLine('Form Upload', 'Image '.$ucfFieldName, $t);
366
+        $ret .= $xc->getXcEqualsOperator('$get'.$ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t);
367
+        $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get'.$ucfFieldName, '$get'.$ucfFieldName, "'blank.gif'", $t);
368 368
         $ret .= $xc->getXcEqualsOperator('$imageDirectory', "'/uploads/{$moduleDirname}/images/{$tableName}'", null, false, $t);
369 369
         $ret .= $cc->getClassXoopsFormElementTray('imageTray', '_OPTIONS', '<br>', $t);
370
-        $sprintf = $pc->getPhpCodeSprintf($language . 'FORM_IMAGE_PATH', '".{$imageDirectory}/"');
370
+        $sprintf = $pc->getPhpCodeSprintf($language.'FORM_IMAGE_PATH', '".{$imageDirectory}/"');
371 371
         $ret .= $cc->getClassXoopsFormSelect('imageSelect', $sprintf, $fieldName, $ccFieldName, 5, 'false', false, $t);
372 372
         $ret .= $xc->getXcXoopsImgListArray('imageArray', 'XOOPS_ROOT_PATH . $imageDirectory', $t);
373 373
         $contForeach = $cc->getClassAddOption('imageSelect', '"{$image1}", $image1', "\t");
@@ -378,10 +378,10 @@  discard block
 block discarded – undo
378 378
         $paramLabel = "\"<br><img src='\".XOOPS_URL.\"/\".\$imageDirectory.\"/\".\${$ccFieldName}.\"' name='image1' id='image1' alt='' style='max-width:100px' />\"";
379 379
         $xoopsFormLabel = $cc->getClassXoopsFormLabel('', "''", $paramLabel, true, '');
380 380
         $ret .= $cc->getClassAddElement('imageTray', $xoopsFormLabel, $t);
381
-        $ret .= $pc->getPhpCodeCommentLine('Form', 'File ' . $ucfFieldName, $t);
381
+        $ret .= $pc->getPhpCodeCommentLine('Form', 'File '.$ucfFieldName, $t);
382 382
         $ret .= $cc->getClassXoopsFormElementTray('fileSelectTray', "''", '<br>', $t);
383 383
         $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize');
384
-        $xoopsFormFile = $cc->getClassXoopsFormFile('', $language . 'FORM_UPLOAD_IMAGE_' . $stuTableName, 'attachedfile', $getConfig, true, '');
384
+        $xoopsFormFile = $cc->getClassXoopsFormFile('', $language.'FORM_UPLOAD_IMAGE_'.$stuTableName, 'attachedfile', $getConfig, true, '');
385 385
         $ret .= $cc->getClassAddElement('fileSelectTray', $xoopsFormFile, $t);
386 386
         $xoopsFormLabel1 = $cc->getClassXoopsFormLabel('', "''", null, true);
387 387
         $ret .= $cc->getClassAddElement('fileSelectTray', $xoopsFormLabel1, $t);
@@ -411,9 +411,9 @@  discard block
 block discarded – undo
411 411
         $ucfFieldName = $tf->getCamelCase($fieldName, true);
412 412
         $stuTableName = mb_strtoupper($tableName);
413 413
         $t = "\t\t";
414
-        $ret = $pc->getPhpCodeCommentLine('Form', 'File ' . $ucfFieldName, $t);
414
+        $ret = $pc->getPhpCodeCommentLine('Form', 'File '.$ucfFieldName, $t);
415 415
         $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize');
416
-        $xoopsFormFile = $cc->getClassXoopsFormFile('', $language . '_' . $stuTableName, $fieldName, $getConfig, true, '');
416
+        $xoopsFormFile = $cc->getClassXoopsFormFile('', $language.'_'.$stuTableName, $fieldName, $getConfig, true, '');
417 417
         $ret .= $cc->getClassAddElement('form', $xoopsFormFile, $t);
418 418
 
419 419
         return $ret;
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
         $cc = ClassXoopsCode::getInstance();
438 438
         $ucfFieldName = $tf->getCamelCase($fieldName, true);
439 439
         $t = "\t\t";
440
-        $ret = $pc->getPhpCodeCommentLine('Form Color', 'Picker ' . $ucfFieldName, $t);
440
+        $ret = $pc->getPhpCodeCommentLine('Form Color', 'Picker '.$ucfFieldName, $t);
441 441
         $getVar = $xc->getXcGetVar('', 'this', $fieldName, true);
442 442
         $xoopsFormFile = $cc->getClassXoopsFormColorPicker('', $language, $fieldName, $getVar, true, '');
443 443
         $ret .= $cc->getClassAddElement('form', $xoopsFormFile, $t);
@@ -467,10 +467,10 @@  discard block
 block discarded – undo
467 467
         $t = "\t\t";
468 468
         $ret = $pc->getPhpCodeCommentLine($ucfTableName, 'handler', $t);
469 469
         $ret .= $xc->getXoopsHandlerLine($moduleDirname, $tableName, $t);
470
-        $ret .= $pc->getPhpCodeCommentLine('Form', 'Select ' . $ucfTableName, $t);
471
-        $ret .= $cc->getClassXoopsFormSelect($ccFieldName . 'Select', $language, $fieldName, "this->getVar('{$fieldName}')", null, '', false, $t);
472
-        $ret .= $cc->getClassAddOption($ccFieldName . 'Select', "'Empty'", $t);
473
-        $ret .= $cc->getClassAddOptionArray($ccFieldName . 'Select', "\${$tableName}Handler->getList()", $t);
470
+        $ret .= $pc->getPhpCodeCommentLine('Form', 'Select '.$ucfTableName, $t);
471
+        $ret .= $cc->getClassXoopsFormSelect($ccFieldName.'Select', $language, $fieldName, "this->getVar('{$fieldName}')", null, '', false, $t);
472
+        $ret .= $cc->getClassAddOption($ccFieldName.'Select', "'Empty'", $t);
473
+        $ret .= $cc->getClassAddOptionArray($ccFieldName.'Select', "\${$tableName}Handler->getList()", $t);
474 474
         $ret .= $cc->getClassAddElement('form', "\${$ccFieldName}Select{$required}", $t);
475 475
 
476 476
         return $ret;
@@ -493,10 +493,10 @@  discard block
 block discarded – undo
493 493
         $cc = ClassXoopsCode::getInstance();
494 494
         $ucfFieldName = $tf->getCamelCase($fieldName, true);
495 495
         $t = "\t\t";
496
-        $ret = $pc->getPhpCodeCommentLine('Form Select', 'User ' . $ucfFieldName, $t);
496
+        $ret = $pc->getPhpCodeCommentLine('Form Select', 'User '.$ucfFieldName, $t);
497 497
         $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize');
498 498
         $xoopsSelectUser = $cc->getClassXoopsFormSelectUser('', $language, $fieldName, 'false', $fieldName, true, $t);
499
-        $ret .= $cc->getClassAddElement('form', $xoopsSelectUser . $required, $t);
499
+        $ret .= $cc->getClassAddElement('form', $xoopsSelectUser.$required, $t);
500 500
 
501 501
         return $ret;
502 502
     }
@@ -518,10 +518,10 @@  discard block
 block discarded – undo
518 518
         $ccFieldName = $tf->getCamelCase($fieldName, false, true);
519 519
         $ucfFieldName = $tf->getCamelCase($fieldName, true);
520 520
         $t = "\t\t";
521
-        $ret = $pc->getPhpCodeCommentLine('Form Radio', 'Yes/No ' . $ucfFieldName, $t);
521
+        $ret = $pc->getPhpCodeCommentLine('Form Radio', 'Yes/No '.$ucfFieldName, $t);
522 522
         $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', 0, "\$this->getVar('{$fieldName}')", $t);
523 523
         $xoopsRadioYN = $cc->getClassXoopsFormRadioYN('', $language, $fieldName, $ccFieldName, true, $t);
524
-        $ret .= $cc->getClassAddElement('form', $xoopsRadioYN . $required, $t);
524
+        $ret .= $cc->getClassAddElement('form', $xoopsRadioYN.$required, $t);
525 525
 
526 526
         return $ret;
527 527
     }
@@ -543,10 +543,10 @@  discard block
 block discarded – undo
543 543
         $t = "\t\t";
544 544
         $ccFieldName = $tf->getCamelCase($fieldName, false, true);
545 545
         $ucfFieldName = $tf->getCamelCase($fieldName, true);
546
-        $ret = $pc->getPhpCodeCommentLine('Form Text', 'Date Select ' . $ucfFieldName, $t);
546
+        $ret = $pc->getPhpCodeCommentLine('Form Text', 'Date Select '.$ucfFieldName, $t);
547 547
         $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', 0, "\$this->getVar('{$fieldName}')", $t);
548 548
         $xoopsTextDateSelect = $cc->getClassXoopsFormTextDateSelect('', $language, $fieldName, $fieldName, $ccFieldName, true, $t);
549
-        $ret .= $cc->getClassAddElement('form', $xoopsTextDateSelect . $required, $t);
549
+        $ret .= $cc->getClassAddElement('form', $xoopsTextDateSelect.$required, $t);
550 550
 
551 551
         return $ret;
552 552
     }
@@ -578,8 +578,8 @@  discard block
 block discarded – undo
578 578
             $ret = $pc->getPhpCodeCommentLine('Form Table', $rpFieldelementName, $t);
579 579
             $ccFieldName = $tf->getCamelCase($fieldName, false, true);
580 580
             $ret .= $xc->getXoopsHandlerLine($moduleDirname, $rpFieldelementName, $t);
581
-            $ret .= $cc->getClassXoopsFormSelect($ccFieldName . 'Select', $language, $fieldName, "this->getVar('{$fieldName}')", null, '', false, $t);
582
-            $ret .= $cc->getClassAddOptionArray($ccFieldName . 'Select', "\${$rpFieldelementName}Handler->getList()", $t);
581
+            $ret .= $cc->getClassXoopsFormSelect($ccFieldName.'Select', $language, $fieldName, "this->getVar('{$fieldName}')", null, '', false, $t);
582
+            $ret .= $cc->getClassAddOptionArray($ccFieldName.'Select', "\${$rpFieldelementName}Handler->getList()", $t);
583 583
             $ret .= $cc->getClassAddElement('form', "\${$ccFieldName}Select{$required}", $t);
584 584
         }
585 585
 
@@ -611,13 +611,13 @@  discard block
 block discarded – undo
611 611
         $ret = $pc->getPhpCodeCommentLine('Form Table', $ucfTopicTableName, $t);
612 612
         $ret .= $xc->getXoopsHandlerLine($moduleDirname, $stlTopicTableName, $t);
613 613
         $ret .= $cc->getClassCriteriaCompo('criteria', $t);
614
-        $ret .= $xc->getXcClearHandlerCount($stlTopicTableName . 'Count', $stlTopicTableName, '$criteria', $t);
615
-        $contIf = $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/tree', true, false, 'include', $t . "\t");
616
-        $contIf .= $xc->getXcClearHandlerAll($stlTopicTableName . 'All', $stlTopicTableName, '$criteria', $t . "\t");
617
-        $contIf .= $cc->getClassXoopsObjectTree($stlTopicTableName . 'Tree', $stlTopicTableName . 'All', $fieldId, $fieldPid, $t . "\t");
618
-        $contIf .= $cc->getClassXoopsMakeSelBox($ccFieldPid, $stlTopicTableName . 'Tree', $fieldPid, $fieldMain, '--', $fieldPid, $t . "\t");
614
+        $ret .= $xc->getXcClearHandlerCount($stlTopicTableName.'Count', $stlTopicTableName, '$criteria', $t);
615
+        $contIf = $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/tree', true, false, 'include', $t."\t");
616
+        $contIf .= $xc->getXcClearHandlerAll($stlTopicTableName.'All', $stlTopicTableName, '$criteria', $t."\t");
617
+        $contIf .= $cc->getClassXoopsObjectTree($stlTopicTableName.'Tree', $stlTopicTableName.'All', $fieldId, $fieldPid, $t."\t");
618
+        $contIf .= $cc->getClassXoopsMakeSelBox($ccFieldPid, $stlTopicTableName.'Tree', $fieldPid, $fieldMain, '--', $fieldPid, $t."\t");
619 619
         $formLabel = $cc->getClassXoopsFormLabel('', $language, "\${$ccFieldPid}", true, '');
620
-        $contIf .= $cc->getClassAddElement('form', $formLabel, $t . "\t");
620
+        $contIf .= $cc->getClassAddElement('form', $formLabel, $t."\t");
621 621
         $ret .= $pc->getPhpCodeConditions("\${$stlTopicTableName}Count", null, null, $contIf, false, $t);
622 622
         $ret .= $pc->getPhpCodeUnset('criteria', $t);
623 623
 
@@ -642,11 +642,11 @@  discard block
 block discarded – undo
642 642
         $ret = $pc->getPhpCodeCommentLine('Use tag', 'module', $t);
643 643
         $isDir = $pc->getPhpCodeIsDir("XOOPS_ROOT_PATH . '/modules/tag'");
644 644
         $ret .= $pc->getPhpCodeTernaryOperator('dirTag', $isDir, 'true', 'false', $t);
645
-        $paramIf = '(' . $xc->getXcGetConfig($moduleDirname, 'usetag') . ' == 1)';
646
-        $condIf = $pc->getPhpCodeTernaryOperator('tagId', '$this->isNew()', '0', "\$this->getVar('{$fieldId}')", $t . "\t");
647
-        $condIf .= $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'modules/tag/include/formtag', true, false, $type = 'include', $t . "\t");
645
+        $paramIf = '('.$xc->getXcGetConfig($moduleDirname, 'usetag').' == 1)';
646
+        $condIf = $pc->getPhpCodeTernaryOperator('tagId', '$this->isNew()', '0', "\$this->getVar('{$fieldId}')", $t."\t");
647
+        $condIf .= $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'modules/tag/include/formtag', true, false, $type = 'include', $t."\t");
648 648
         $paramElem = $cc->getClassXoopsFormTag('', 'tag', 60, 255, 'tagId', 0, true, '');
649
-        $condIf .= $cc->getClassAddElement('form', $paramElem . $required, $t . "\t");
649
+        $condIf .= $cc->getClassAddElement('form', $paramElem.$required, $t."\t");
650 650
         $ret .= $pc->getPhpCodeConditions($paramIf, ' && ', '$dirTag', $condIf, false, $t);
651 651
 
652 652
         return $ret;
@@ -686,7 +686,7 @@  discard block
 block discarded – undo
686 686
                 $fieldId = $fieldName;
687 687
             }
688 688
             $rpFieldName = $tf->getRightString($fieldName);
689
-            $language = $languageFunct . mb_strtoupper($tableSoleName) . '_' . mb_strtoupper($rpFieldName);
689
+            $language = $languageFunct.mb_strtoupper($tableSoleName).'_'.mb_strtoupper($rpFieldName);
690 690
             $required = (1 == $fields[$f]->getVar('field_required')) ? ', true' : '';
691 691
 
692 692
             $fieldElements = $tc->getHandler('fieldelements')->get($fieldElement);
Please login to merge, or discard this patch.
class/files/templates/admin/TemplatesAdminPages.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     private function getTemplatesAdminPagesHeader($moduleDirname)
73 73
     {
74 74
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
75
-        $ret = $hc->getHtmlComment('Header') . PHP_EOL;
75
+        $ret = $hc->getHtmlComment('Header').PHP_EOL;
76 76
         $ret .= $hc->getSmartyIncludeFile($moduleDirname, 'header', true);
77 77
 
78 78
         return $ret;
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     {
91 91
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
92 92
         $th = '';
93
-        $langHeadId = mb_strtoupper($tableSoleName) . '_ID';
93
+        $langHeadId = mb_strtoupper($tableSoleName).'_ID';
94 94
         if (1 == $tableAutoincrement) {
95 95
             $lang = $hc->getSmartyConst($language, $langHeadId);
96 96
             $th .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, false, "\t\t\t");
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         foreach (array_keys($fields) as $f) {
99 99
             $fieldName = $fields[$f]->getVar('field_name');
100 100
             $rpFieldName = $this->getRightString($fieldName);
101
-            $langFieldName = mb_strtoupper($tableSoleName) . '_' . mb_strtoupper($rpFieldName);
101
+            $langFieldName = mb_strtoupper($tableSoleName).'_'.mb_strtoupper($rpFieldName);
102 102
             if (1 == $fields[$f]->getVar('field_inlist')) {
103 103
                 $lang = $hc->getSmartyConst($language, $langFieldName);
104 104
                 $th .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, false, "\t\t\t");
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
         $lang = $hc->getSmartyConst($language, 'FORM_ACTION');
109 109
         $th .= $hc->getHtmlTag('th', ['class' => 'center width5'], $lang, false, false, "\t\t\t");
110
-        $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th) . PHP_EOL;
110
+        $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th).PHP_EOL;
111 111
         $ret = $hc->getHtmlTag('thead', [], $tr);
112 112
 
113 113
         return $ret;
@@ -155,12 +155,12 @@  discard block
 block discarded – undo
155 155
                         $src = $hc->getSmartyNoSimbol('xoModuleIcons32');
156 156
                         $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
157 157
                         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false);
158
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n\t" . $img);
158
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n\t".$img);
159 159
                         break;
160 160
                     case 13:
161
-                        $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
161
+                        $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
162 162
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
163
-                        $img = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, false);
163
+                        $img = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, false);
164 164
                         $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, false, "\t\t");
165 165
                         break;
166 166
                     default:
@@ -176,19 +176,19 @@  discard block
 block discarded – undo
176 176
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
177 177
         $src = $hc->getSmartyNoSimbol('xoModuleIcons16 edit.png');
178 178
         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false);
179
-        $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&amp;{$fieldId}=" . $double, 'title' => $lang], "\n\t" . $img);
179
+        $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&amp;{$fieldId}=".$double, 'title' => $lang], "\n\t".$img);
180 180
         $lang = $hc->getSmartyConst('', '_DELETE');
181 181
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
182 182
         $src = $hc->getSmartyNoSimbol('xoModuleIcons16 delete.png');
183 183
         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false);
184
-        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&amp;{$fieldId}=" . $double, 'title' => $lang], "\n\t" . $img);
185
-        $td .= $hc->getHtmlTag('td', ['class' => 'center  width5'], "\n" . $anchor);
184
+        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&amp;{$fieldId}=".$double, 'title' => $lang], "\n\t".$img);
185
+        $td .= $hc->getHtmlTag('td', ['class' => 'center  width5'], "\n".$anchor);
186 186
         $cycle = $hc->getSmartyNoSimbol('cycle values=\'odd, even\'');
187 187
         $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td);
188
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr);
188
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr);
189 189
         $tbody = $hc->getHtmlTag('tbody', [], $foreach);
190 190
 
191
-        return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody);
191
+        return $hc->getSmartyConditions($tableName.'_count', '', '', $tbody);
192 192
     }
193 193
 
194 194
     /**
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
         $div = $hc->getHtmlTag('div', ['class' => 'xo-pagenav floatright'], $single);
230 230
         $div .= $hc->getHtmlTag('div', ['class' => 'clear spacer'], '');
231 231
         $htmlTable .= $hc->getSmartyConditions('pagenav', '', '', $div);
232
-        $ifList = $hc->getSmartyConditions($tableName . '_list', '', '', $htmlTable);
232
+        $ifList = $hc->getSmartyConditions($tableName.'_list', '', '', $htmlTable);
233 233
         $single = $hc->getSmartySingleVar('form');
234 234
         $divComm = $hc->getHtmlComment('Display navigation');
235 235
         //$divComm .= $hc->getHtmlTag('div', array('class' => 'errorMsg'), $single);
Please login to merge, or discard this patch.
class/files/templates/blocks/TemplatesBlocks.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -80,11 +80,11 @@  discard block
 block discarded – undo
80 80
             $fieldName = $fields[$f]->getVar('field_name');
81 81
             $stuFieldName = mb_strtoupper($fieldName);
82 82
             $lang = $hc->getSmartyConst($language, $stuFieldName);
83
-            $th .= $hc->getHtmlTableHead($lang, 'center') . PHP_EOL;
83
+            $th .= $hc->getHtmlTableHead($lang, 'center').PHP_EOL;
84 84
         }
85
-        $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL;
85
+        $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL;
86 86
 
87
-        return $hc->getHtmlTableThead($tr) . PHP_EOL;
87
+        return $hc->getHtmlTableThead($tr).PHP_EOL;
88 88
     }
89 89
 
90 90
     /**
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         $td = '';
105 105
         if (1 == $tableAutoincrement) {
106 106
             $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
107
-            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double) . PHP_EOL;
107
+            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double).PHP_EOL;
108 108
         }
109 109
         $fields = $this->getTableFields($tableMid, $tableId);
110 110
         foreach (array_keys($fields) as $f) {
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                         // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">...
123 123
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
124 124
                         $span = $hc->getHtmlTag('span', [], $double);
125
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span) . PHP_EOL;
125
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span).PHP_EOL;
126 126
                         /*$ret .= <<<EOT
127 127
                     <td class="center"><span style="background-color: #<{\$list.{$rpFieldName}}>;">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>\n
128 128
 EOT;*/
@@ -131,18 +131,18 @@  discard block
 block discarded – undo
131 131
                         $src = $hc->getSmartyNoSimbol('xoModuleIcons32');
132 132
                         $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
133 133
                         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true);
134
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img) . PHP_EOL;
134
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img).PHP_EOL;
135 135
                         break;
136 136
                     case 13:
137
-                        $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
137
+                        $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
138 138
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
139
-                        $img = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName], '', true);
140
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img) . PHP_EOL;
139
+                        $img = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName], '', true);
140
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img).PHP_EOL;
141 141
                         break;
142 142
                     default:
143 143
                         if (0 != $f) {
144 144
                             $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
145
-                            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double) . PHP_EOL;
145
+                            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double).PHP_EOL;
146 146
                         }
147 147
                         break;
148 148
                 }
@@ -152,19 +152,19 @@  discard block
 block discarded – undo
152 152
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
153 153
         $src = $hc->getSmartyNoSimbol('xoModuleIcons32 edit.png');
154 154
         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true);
155
-        $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&amp;{$fieldId}=" . $double, 'title' => $lang], $img) . PHP_EOL;
155
+        $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&amp;{$fieldId}=".$double, 'title' => $lang], $img).PHP_EOL;
156 156
         $lang = $hc->getSmartyConst('', '_DELETE');
157 157
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
158 158
         $src = $hc->getSmartyNoSimbol('xoModuleIcons32 delete.png');
159
-        $img = $hc->getHtmlTag('img', ['src' => $src . $double, 'alt' => $tableName], '', true);
160
-        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&amp;{$fieldId}=" . $double, 'title' => $lang], $img) . PHP_EOL;
161
-        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n" . $anchor) . PHP_EOL;
159
+        $img = $hc->getHtmlTag('img', ['src' => $src.$double, 'alt' => $tableName], '', true);
160
+        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&amp;{$fieldId}=".$double, 'title' => $lang], $img).PHP_EOL;
161
+        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n".$anchor).PHP_EOL;
162 162
         $cycle = $hc->getSmartyNoSimbol('cycle values="odd, even"');
163
-        $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td) . PHP_EOL;
164
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr) . PHP_EOL;
165
-        $tbody = $hc->getHtmlTag('tbody', [], $foreach) . PHP_EOL;
163
+        $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td).PHP_EOL;
164
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr).PHP_EOL;
165
+        $tbody = $hc->getHtmlTag('tbody', [], $foreach).PHP_EOL;
166 166
 
167
-        return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody) . PHP_EOL;
167
+        return $hc->getSmartyConditions($tableName.'_count', '', '', $tbody).PHP_EOL;
168 168
     }
169 169
 
170 170
     /**
@@ -174,10 +174,10 @@  discard block
 block discarded – undo
174 174
     private function getTemplatesBlocksTableTfoot()
175 175
     {
176 176
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
177
-        $td = $hc->getHtmlTag('td', [], '&nbsp;') . PHP_EOL;
178
-        $tr = $hc->getHtmlTag('tr', [], $td) . PHP_EOL;
177
+        $td = $hc->getHtmlTag('td', [], '&nbsp;').PHP_EOL;
178
+        $tr = $hc->getHtmlTag('tr', [], $td).PHP_EOL;
179 179
 
180
-        return $hc->getHtmlTag('tfoot', [], $tr) . PHP_EOL;
180
+        return $hc->getHtmlTag('tfoot', [], $tr).PHP_EOL;
181 181
     }
182 182
 
183 183
     /**
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
         $tbody .= $this->getTemplatesBlocksTableTfoot();
200 200
         $single = $hc->getSmartySingleVar('table_type');
201 201
 
202
-        return $hc->getHtmlTable($tbody, 'table table-' . $single) . PHP_EOL;
202
+        return $hc->getHtmlTable($tbody, 'table table-'.$single).PHP_EOL;
203 203
     }
204 204
 
205 205
     /**
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserPages.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     {
74 74
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
75 75
 
76
-        return $hc->getSmartyIncludeFile($moduleDirname, 'header') . PHP_EOL;
76
+        return $hc->getSmartyIncludeFile($moduleDirname, 'header').PHP_EOL;
77 77
     }
78 78
 
79 79
     /**
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $tbody .= $this->getTemplatesUserPagesTableTfoot();
93 93
         $single = $hc->getSmartySingleVar('table_type');
94 94
 
95
-        return $hc->getHtmlTable($tbody, 'table table-' . $single) . PHP_EOL;
95
+        return $hc->getHtmlTable($tbody, 'table table-'.$single).PHP_EOL;
96 96
     }
97 97
 
98 98
     /**
@@ -106,11 +106,11 @@  discard block
 block discarded – undo
106 106
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
107 107
         $stuTableName = mb_strtoupper($tableName);
108 108
         $single = $hc->getSmartySingleVar('divideby');
109
-        $lang = $hc->getSmartyConst($language, $stuTableName . '_TITLE');
110
-        $th = $hc->getHtmlTableHead($lang, '', $single) . PHP_EOL;
111
-        $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL;
109
+        $lang = $hc->getSmartyConst($language, $stuTableName.'_TITLE');
110
+        $th = $hc->getHtmlTableHead($lang, '', $single).PHP_EOL;
111
+        $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL;
112 112
 
113
-        return $hc->getHtmlTableThead($tr) . PHP_EOL;
113
+        return $hc->getHtmlTableThead($tr).PHP_EOL;
114 114
     }
115 115
 
116 116
     /**
@@ -126,14 +126,14 @@  discard block
 block discarded – undo
126 126
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
127 127
         $single = $hc->getSmartySingleVar('panel_type');
128 128
         $include = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName);
129
-        $div = $hc->getHtmlDiv($include, 'panel panel-' . $single);
130
-        $cont = $hc->getHtmlTableData($div) . PHP_EOL;
131
-        $html = $hc->getHtmlEmpty('</tr><tr>') . PHP_EOL;
132
-        $cont .= $hc->getSmartyConditions($tableSoleName . '.count', ' is div by ', '$divideby', $html) . PHP_EOL;
133
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont) . PHP_EOL;
134
-        $tr = $hc->getHtmlTableRow($foreach) . PHP_EOL;
135
-
136
-        return $hc->getHtmlTableTbody($tr) . PHP_EOL;
129
+        $div = $hc->getHtmlDiv($include, 'panel panel-'.$single);
130
+        $cont = $hc->getHtmlTableData($div).PHP_EOL;
131
+        $html = $hc->getHtmlEmpty('</tr><tr>').PHP_EOL;
132
+        $cont .= $hc->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$divideby', $html).PHP_EOL;
133
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont).PHP_EOL;
134
+        $tr = $hc->getHtmlTableRow($foreach).PHP_EOL;
135
+
136
+        return $hc->getHtmlTableTbody($tr).PHP_EOL;
137 137
     }
138 138
 
139 139
     /**
@@ -144,10 +144,10 @@  discard block
 block discarded – undo
144 144
     private function getTemplatesUserPagesTableTfoot()
145 145
     {
146 146
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
147
-        $td = $hc->getHtmlTableData('&nbsp;') . PHP_EOL;
148
-        $tr = $hc->getHtmlTableRow($td) . PHP_EOL;
147
+        $td = $hc->getHtmlTableData('&nbsp;').PHP_EOL;
148
+        $tr = $hc->getHtmlTableRow($td).PHP_EOL;
149 149
 
150
-        return $hc->getHtmlTableTfoot($tr) . PHP_EOL;
150
+        return $hc->getHtmlTableTfoot($tr).PHP_EOL;
151 151
     }
152 152
 
153 153
     /**
@@ -161,10 +161,10 @@  discard block
 block discarded – undo
161 161
     private function getTemplatesUserPages($moduleDirname, $tableName, $tableSoleName, $language)
162 162
     {
163 163
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
164
-        $table = $this->getTemplatesUserPagesTable($moduleDirname, $tableName, $tableSoleName, $language) . PHP_EOL;
165
-        $div = $hc->getHtmlDiv($table, 'table-responsive') . PHP_EOL;
164
+        $table = $this->getTemplatesUserPagesTable($moduleDirname, $tableName, $tableSoleName, $language).PHP_EOL;
165
+        $div = $hc->getHtmlDiv($table, 'table-responsive').PHP_EOL;
166 166
 
167
-        return $hc->getSmartyConditions($tableName, ' > ', '0', $div, false, true, true) . PHP_EOL;
167
+        return $hc->getSmartyConditions($tableName, ' > ', '0', $div, false, true, true).PHP_EOL;
168 168
     }
169 169
 
170 170
     /**
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserCategoriesList.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -243,35 +243,35 @@
 block discarded – undo
243 243
                         case 2:
244 244
                             $rpFieldName = $this->getRightString($fieldName);
245 245
                             $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
246
-                            $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-2') . PHP_EOL;
246
+                            $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-2').PHP_EOL;
247 247
                             break;
248 248
                         case 3:
249 249
                         case 4:
250 250
                             $rpFieldName = $this->getRightString($fieldName);
251 251
                             $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
252
-                            $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-3 justify') . PHP_EOL;
252
+                            $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-3 justify').PHP_EOL;
253 253
                             break;
254 254
                         case 10:
255 255
                             $rpFieldName = $this->getRightString($fieldName);
256 256
                             $singleVar = $hc->getSmartySingleVar('xoops_icons32_url');
257 257
                             $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
258
-                            $img = $hc->getHtmlImage($singleVar . '/' . $doubleVar, "{$tableName}");
259
-                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3') . PHP_EOL;
258
+                            $img = $hc->getHtmlImage($singleVar.'/'.$doubleVar, "{$tableName}");
259
+                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3').PHP_EOL;
260 260
                             unset($img);
261 261
                             break;
262 262
                         case 13:
263 263
                             $rpFieldName = $this->getRightString($fieldName);
264
-                            $singleVar = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
264
+                            $singleVar = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
265 265
                             $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
266
-                            $img = $hc->getHtmlImage($singleVar . "/images/{$tableName}/" . $doubleVar, "{$tableName}");
267
-                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3') . PHP_EOL;
266
+                            $img = $hc->getHtmlImage($singleVar."/images/{$tableName}/".$doubleVar, "{$tableName}");
267
+                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3').PHP_EOL;
268 268
                             unset($img);
269 269
                             break;
270 270
                     }
271 271
                 }
272 272
             }
273 273
         }
274
-        $ret .= $hc->getHtmlDiv($retElem, 'panel-body') . PHP_EOL;
274
+        $ret .= $hc->getHtmlDiv($retElem, 'panel-body').PHP_EOL;
275 275
 
276 276
         return $ret;
277 277
     }
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserCategories.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     {
74 74
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
75 75
 
76
-        return $hc->getSmartyIncludeFile($moduleDirname, 'header') . PHP_EOL;
76
+        return $hc->getSmartyIncludeFile($moduleDirname, 'header').PHP_EOL;
77 77
     }
78 78
 
79 79
     /**
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $table = $this->getTemplatesAdminPagesTableThead($tableName, $language);
92 92
         $table .= $this->getTemplatesAdminPagesTableTBody($moduleDirname, $tableName, $tableSoleName, $language);
93 93
 
94
-        return $hc->getHtmlTable($table, 'table table-' . $single) . PHP_EOL;
94
+        return $hc->getHtmlTable($table, 'table table-'.$single).PHP_EOL;
95 95
     }
96 96
 
97 97
     /**
@@ -104,12 +104,12 @@  discard block
 block discarded – undo
104 104
     {
105 105
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
106 106
         $stuTableName = mb_strtoupper($tableName);
107
-        $lang = $hc->getSmartyConst($language, $stuTableName . '_TITLE');
107
+        $lang = $hc->getSmartyConst($language, $stuTableName.'_TITLE');
108 108
         $single = $hc->getSmartySingleVar('numb_col');
109
-        $th = $hc->getHtmlTableHead($lang, '', $single) . PHP_EOL;
110
-        $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL;
109
+        $th = $hc->getHtmlTableHead($lang, '', $single).PHP_EOL;
110
+        $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL;
111 111
 
112
-        return $hc->getHtmlTableThead($tr) . PHP_EOL;
112
+        return $hc->getHtmlTableThead($tr).PHP_EOL;
113 113
     }
114 114
 
115 115
     /**
@@ -125,14 +125,14 @@  discard block
 block discarded – undo
125 125
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
126 126
         $single = $hc->getSmartySingleVar('panel_type');
127 127
         $include = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName);
128
-        $div = $hc->getHtmlDiv($include, 'panel panel-' . $single);
129
-        $cont = $hc->getHtmlTableData($div) . PHP_EOL;
130
-        $html = $hc->getHtmlEmpty('</tr><tr>') . PHP_EOL;
131
-        $cont .= $hc->getSmartyConditions($tableSoleName . '.count', ' is div by ', '$divideby', $html) . PHP_EOL;
132
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont) . PHP_EOL;
133
-        $tr = $hc->getHtmlTableRow($foreach) . PHP_EOL;
134
-
135
-        return $hc->getHtmlTableTbody($tr) . PHP_EOL;
128
+        $div = $hc->getHtmlDiv($include, 'panel panel-'.$single);
129
+        $cont = $hc->getHtmlTableData($div).PHP_EOL;
130
+        $html = $hc->getHtmlEmpty('</tr><tr>').PHP_EOL;
131
+        $cont .= $hc->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$divideby', $html).PHP_EOL;
132
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont).PHP_EOL;
133
+        $tr = $hc->getHtmlTableRow($foreach).PHP_EOL;
134
+
135
+        return $hc->getHtmlTableTbody($tr).PHP_EOL;
136 136
     }
137 137
 
138 138
     /**
@@ -142,10 +142,10 @@  discard block
 block discarded – undo
142 142
     private function getTemplatesUserCategoriesTfoot()
143 143
     {
144 144
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
145
-        $td = $hc->getHtmlTableData('&nbsp;') . PHP_EOL;
146
-        $tr = $hc->getHtmlTableRow($td) . PHP_EOL;
145
+        $td = $hc->getHtmlTableData('&nbsp;').PHP_EOL;
146
+        $tr = $hc->getHtmlTableRow($td).PHP_EOL;
147 147
 
148
-        return $hc->getHtmlTableTfoot($tr) . PHP_EOL;
148
+        return $hc->getHtmlTableTfoot($tr).PHP_EOL;
149 149
     }
150 150
 
151 151
     /**
@@ -159,10 +159,10 @@  discard block
 block discarded – undo
159 159
     private function getTemplatesUserCategories($moduleDirname, $tableName, $tableSoleName, $language)
160 160
     {
161 161
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
162
-        $tab = $this->getTemplatesUserCategoriesTable($moduleDirname, $tableName, $tableSoleName, $language) . PHP_EOL;
163
-        $div = $hc->getHtmlDiv($tab, 'table-responsive') . PHP_EOL;
162
+        $tab = $this->getTemplatesUserCategoriesTable($moduleDirname, $tableName, $tableSoleName, $language).PHP_EOL;
163
+        $div = $hc->getHtmlDiv($tab, 'table-responsive').PHP_EOL;
164 164
 
165
-        return $hc->getSmartyConditions($tableName, ' gt ', '0', $div, false, true) . PHP_EOL;
165
+        return $hc->getSmartyConditions($tableName, ' gt ', '0', $div, false, true).PHP_EOL;
166 166
     }
167 167
 
168 168
     /**
@@ -190,16 +190,16 @@  discard block
 block discarded – undo
190 190
 </div>\n
191 191
 EOT;*/
192 192
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
193
-        $incl = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName) . PHP_EOL;
194
-        $html = $hc->getHtmlEmpty('<br>') . PHP_EOL;
195
-        $incl .= $hc->getSmartyConditions($tableSoleName . '.count', ' is div by ', '$numb_col', $html) . PHP_EOL;
196
-        $const = $hc->getSmartyConst($language, $stuTableName . '_TITLE');
197
-        $div = $hc->getHtmlDiv($const, 'panel-heading') . PHP_EOL;
198
-        $cont = $hc->getHtmlDiv($incl, 'panel panel-body') . PHP_EOL;
199
-        $div .= $hc->getSmartyForeach($tableSoleName, $tableName, $cont) . PHP_EOL;
193
+        $incl = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName).PHP_EOL;
194
+        $html = $hc->getHtmlEmpty('<br>').PHP_EOL;
195
+        $incl .= $hc->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$numb_col', $html).PHP_EOL;
196
+        $const = $hc->getSmartyConst($language, $stuTableName.'_TITLE');
197
+        $div = $hc->getHtmlDiv($const, 'panel-heading').PHP_EOL;
198
+        $cont = $hc->getHtmlDiv($incl, 'panel panel-body').PHP_EOL;
199
+        $div .= $hc->getSmartyForeach($tableSoleName, $tableName, $cont).PHP_EOL;
200 200
         $panelType = $hc->getSmartySingleVar('panel_type');
201 201
 
202
-        return $hc->getHtmlDiv($div, 'panel panel-' . $panelType) . PHP_EOL;
202
+        return $hc->getHtmlDiv($div, 'panel panel-'.$panelType).PHP_EOL;
203 203
     }
204 204
 
205 205
     /**
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserBroken.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -95,12 +95,12 @@  discard block
 block discarded – undo
95 95
             $stuFieldName = mb_strtoupper($fieldName);
96 96
             if ((1 == $tableAutoincrement) || (1 == $fields[$f]->getVar('field_user'))) {
97 97
                 $const = $hc->getSmartyConst($language, $stuFieldName);
98
-                $th .= $hc->getHtmlTag('th', ['class' => 'center'], $const) . PHP_EOL;
98
+                $th .= $hc->getHtmlTag('th', ['class' => 'center'], $const).PHP_EOL;
99 99
             }
100 100
         }
101
-        $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th) . PHP_EOL;
101
+        $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th).PHP_EOL;
102 102
 
103
-        return $hc->getHtmlTag('thead', ['class' => 'outer'], $tr) . PHP_EOL;
103
+        return $hc->getHtmlTag('thead', ['class' => 'outer'], $tr).PHP_EOL;
104 104
     }
105 105
 
106 106
     /**
@@ -126,27 +126,27 @@  discard block
 block discarded – undo
126 126
             if ((1 == $tableAutoincrement) || (1 == $fields[$f]->getVar('field_user'))) {
127 127
                 switch ($fieldElement) {
128 128
                     case 9:
129
-                        $span = $hc->getHtmlSpan("<{\${$moduleDirname}_upload_url}>/images/{$tableName}/<{\${$tableSoleName}.{$rpFieldName}}>", "#<{\${$tableSoleName}.{$rpFieldName}}>") . PHP_EOL;
130
-                        $ret .= $hc->getHtmlTableData($span, 'center') . PHP_EOL;
129
+                        $span = $hc->getHtmlSpan("<{\${$moduleDirname}_upload_url}>/images/{$tableName}/<{\${$tableSoleName}.{$rpFieldName}}>", "#<{\${$tableSoleName}.{$rpFieldName}}>").PHP_EOL;
130
+                        $ret .= $hc->getHtmlTableData($span, 'center').PHP_EOL;
131 131
                         break;
132 132
                     case 10:
133 133
                         $img = $hc->getHtmlImage("<{xoModuleIcons32}><{\${$tableSoleName}.{$rpFieldName}}>", $tableName);
134
-                        $ret .= $hc->getHtmlTableData($img, 'center') . PHP_EOL;
134
+                        $ret .= $hc->getHtmlTableData($img, 'center').PHP_EOL;
135 135
                         break;
136 136
                     case 13:
137 137
                         $img = $hc->getHtmlImage("<{\${$moduleDirname}_upload_url}>/images/{$tableName}/<{\${$tableSoleName}.{$rpFieldName}}>", $tableName);
138
-                        $ret .= $hc->getHtmlTableData($img, 'center') . PHP_EOL;
138
+                        $ret .= $hc->getHtmlTableData($img, 'center').PHP_EOL;
139 139
                         break;
140 140
                     default:
141
-                        $ret .= $hc->getHtmlTableData("<{\${$tableSoleName}.{$rpFieldName}}>", 'center') . PHP_EOL;
141
+                        $ret .= $hc->getHtmlTableData("<{\${$tableSoleName}.{$rpFieldName}}>", 'center').PHP_EOL;
142 142
                         break;
143 143
                 }
144 144
             }
145 145
         }
146
-        $row = $hc->getHtmlTableRow($ret, '<{cycle values="odd, even"}>') . PHP_EOL;
147
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $row) . PHP_EOL;
146
+        $row = $hc->getHtmlTableRow($ret, '<{cycle values="odd, even"}>').PHP_EOL;
147
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $row).PHP_EOL;
148 148
 
149
-        return $hc->getHtmlTableTbody($foreach) . PHP_EOL;
149
+        return $hc->getHtmlTableTbody($foreach).PHP_EOL;
150 150
     }
151 151
 
152 152
     /**
@@ -179,10 +179,10 @@  discard block
 block discarded – undo
179 179
         $tableSoleName = $table->getVar('table_solename');
180 180
         $tableAutoincrement = $table->getVar('table_autoincrement');
181 181
         $language = $this->getLanguage($moduleDirname, 'MA');
182
-        $content = $this->getTemplatesUserBrokenFileHeader($moduleDirname) . PHP_EOL;
182
+        $content = $this->getTemplatesUserBrokenFileHeader($moduleDirname).PHP_EOL;
183 183
         $contentTable = $this->getTemplatesUserBrokenTableHead($tableMid, $tableId, $tableAutoincrement, $language);
184 184
         $contentTable .= $this->getTemplatesUserBrokenBody($moduleDirname, $tableMid, $tableId, $tableName, $tableSoleName, $tableAutoincrement, $language);
185
-        $content .= $hc->getHtmlTable($contentTable, 'table table-bordered') . PHP_EOL;
185
+        $content .= $hc->getHtmlTable($contentTable, 'table table-bordered').PHP_EOL;
186 186
         $content .= $this->getTemplatesUserBrokenFileFooter($moduleDirname);
187 187
 
188 188
         $this->create($moduleDirname, 'templates', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
Please login to merge, or discard this patch.