Passed
Push — master ( dc1f79...43726e )
by Goffy
02:26
created
include/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,10 +61,10 @@
 block discarded – undo
61 61
     }
62 62
     $aboutRes = '';
63 63
     $istart = strpos($about, $paypalform[0], 1);
64
-    $iend = strpos($about, $paypalform[5], $istart + 1) + strlen($paypalform[5]) - 1;
65
-    $aboutRes .= substr($about, 0, $istart - 1);
64
+    $iend = strpos($about, $paypalform[5], $istart+1)+strlen($paypalform[5])-1;
65
+    $aboutRes .= substr($about, 0, $istart-1);
66 66
     $aboutRes .= implode("\n", $donationform);
67
-    $aboutRes .= substr($about, $iend + 1, strlen($about) - $iend - 1);
67
+    $aboutRes .= substr($about, $iend+1, strlen($about)-$iend-1);
68 68
 
69 69
     return $aboutRes;
70 70
 }
Please login to merge, or discard this patch.
class/logoGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 //include_once XOOPS_ROOT_PATH . '/modules/TDMCreate/include/common.php';
26 26
 
27 27
 if (function_exists($_GET['f'])) { // get function name and parameter  $_GET['f']($_GET["p"]);
28
-    include_once __DIR__ . '/logoGenerator.php';
28
+    include_once __DIR__.'/logoGenerator.php';
29 29
     $ret = logoGenerator::createLogo($_GET['iconName'], $_GET['caption']);
30 30
     phpFunction($ret);
31 31
 } else {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         // Write text
85 85
         $textColor = imagecolorallocate($imageModule, 0, 0, 0);
86
-        $spaceToBorder = (92 - strlen($moduleName) * 7.5) / 2;
86
+        $spaceToBorder = (92-strlen($moduleName) * 7.5) / 2;
87 87
         imagefttext($imageModule, 8.5, 0, $spaceToBorder, 45, $textColor, $font, $moduleName, []);
88 88
 
89 89
         imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32);
Please login to merge, or discard this patch.
class/building.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
             if (('.' !== $file) && ('..' !== $file)) {
112 112
                 if (is_dir($src.'/'.$file)) {
113 113
                     // Copy the directory itself
114
-                    $this->copyDir($src . '/' . $file, $dst . '/' . $file);
114
+                    $this->copyDir($src.'/'.$file, $dst.'/'.$file);
115 115
                 } else {
116 116
                     // Make sure you copy the current script
117 117
                     copy($src.'/'.$file, $dst.'/'.$file);
Please login to merge, or discard this patch.
class/files/admin/AdminXoopsCode.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         $ret .= $xCodeImageList->getXcMediaUploader('uploader', $xRootPath, $moduleDirname, $t);
165 165
         $post = $pCodeImageList->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST').'[0]';
166 166
         $fetchMedia = $this->getAxcFetchMedia('uploader', $post);
167
-        $ifelse = $t."\t//" . $this->getAxcSetPrefix('uploader', "{$fieldName}_") . ";\n";
167
+        $ifelse = $t."\t//".$this->getAxcSetPrefix('uploader', "{$fieldName}_").";\n";
168 168
         $ifelse .= $t."\t//{$fetchMedia};\n";
169 169
         $contentElseInt = $xCodeImageList->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t."\t\t");
170 170
         $contentIf = $xCodeImageList->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t."\t\t");
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         $ifelse = $pCodeUploadImage->getPhpCodePregFunzions('extension', $expr, '', $file, 'replace', false, $t."\t");
203 203
 
204 204
         $ifelse .= $t."\t\$imgName = str_replace(' ', '', \$_POST['{$fieldMain}']).'.'.\$extension;\n";
205
-        $ifelse .= $this->getAxcSetPrefix('uploader', '$imgName', $t . "\t") . ";\n";
205
+        $ifelse .= $this->getAxcSetPrefix('uploader', '$imgName', $t."\t").";\n";
206 206
         $ifelse .= $t."\t{$fetchMedia};\n";
207 207
         $contentElseInt = $xCodeUploadImage->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t."\t\t");
208 208
         $contentIf = $xCodeUploadImage->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t."\t\t");
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     public function getAxcUploadFileSetVar($moduleDirname, $tableName, $fieldName, $formatUrl = false, $t = '')
228 228
     {
229 229
         $stuModuleDirname = strtoupper($moduleDirname);
230
-        $ret = $this->getAxcImageFileSetVar($moduleDirname, $stuModuleDirname . '_UPLOAD_FILES_PATH', $tableName, $fieldName, $formatUrl, $t);
230
+        $ret = $this->getAxcImageFileSetVar($moduleDirname, $stuModuleDirname.'_UPLOAD_FILES_PATH', $tableName, $fieldName, $formatUrl, $t);
231 231
 
232 232
         return $ret;
233 233
     }
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
         } else {
259 259
             $files = '/files';
260 260
             $ret .= $pCodeFileSetVar->getPhpCodeCommentLine('Set Var', $fieldName, $t);
261
-            $ifelse .= $t."\t//" . $this->getAxcSetPrefix('uploader', "'{$fieldName}_'") . ";\n";
261
+            $ifelse .= $t."\t//".$this->getAxcSetPrefix('uploader', "'{$fieldName}_'").";\n";
262 262
             $ifelse .= $t."\t//{$fetchMedia};\n";
263 263
         }
264 264
         $ret .= $pCodeFileSetVar->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/uploader', true, false, '', $t);
Please login to merge, or discard this patch.
class/files/admin/AdminPages.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -147,11 +147,11 @@  discard block
 block discarded – undo
147 147
 
148 148
         $ret            .= $pc->getPhpCodeCommentLine('Table view', $tableName, $t);
149 149
         $contentForeach = $xc->getXcGetValues($tableName, $tableSoleName, 'i', false, "\t");
150
-        $contentForeach .= $xc->getXcXoopsTplAppend("{$tableName}_list", "\${$tableSoleName}", $t . "\t\t");
151
-        $contentForeach .= $pc->getPhpCodeUnset($tableSoleName, $t . "\t\t");
152
-        $condIf         = $pc->getPhpCodeForeach("{$tableName}All", true, false, 'i', $contentForeach, $t . "\t");
153
-        $condIf         .= $xc->getXcPageNav($tableName, $t . "\t");
154
-        $condElse       = $xc->getXcTplAssign('error', "{$language}THEREARENT_{$stuTableName}", true, $t . "\t");
150
+        $contentForeach .= $xc->getXcXoopsTplAppend("{$tableName}_list", "\${$tableSoleName}", $t."\t\t");
151
+        $contentForeach .= $pc->getPhpCodeUnset($tableSoleName, $t."\t\t");
152
+        $condIf         = $pc->getPhpCodeForeach("{$tableName}All", true, false, 'i', $contentForeach, $t."\t");
153
+        $condIf         .= $xc->getXcPageNav($tableName, $t."\t");
154
+        $condElse       = $xc->getXcTplAssign('error', "{$language}THEREARENT_{$stuTableName}", true, $t."\t");
155 155
         $ret            .= $pc->getPhpCodeConditions("\${$tableName}Count", ' > ', '0', $condIf, $condElse, $t);
156 156
 
157 157
         return $ret;
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         $stuTableName = strtoupper($tableName);
176 176
         $ret          = $axc->getAdminTemplateMain($moduleDirname, $tableName);
177 177
         $navigation   = $axc->getAdminDisplayNavigation($tableName);
178
-        $ret          .= $xc->getXcTplAssign('navigation', $navigation, true, $t);
178
+        $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t);
179 179
 
180 180
         if (in_array(1, $fieldInForm)) {
181 181
             $ret .= $axc->getAdminItemButton($language, $tableName, $stuTableName, '', 'list', $t);
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
         $ret     = $pc->getPhpCodeCommentLine('Permission to', $perm, "\t\t\t");
208 208
         $content = $xc->getXcAddRight('gpermHandler', "{$moduleDirname}_{$perm}", '$permId', '$onegroupId', "\$GLOBALS['xoopsModule']->getVar('mid')", false, "\t");
209 209
         $foreach = $pc->getPhpCodeForeach("_POST['groups_{$perm}']", false, false, 'onegroupId', $content, "\t\t\t\t");
210
-        $ret     .= $pc->getPhpCodeConditions("isset(\$_POST['groups_{$perm}'])", null, null, $foreach, false, "\t\t\t");
210
+        $ret .= $pc->getPhpCodeConditions("isset(\$_POST['groups_{$perm}'])", null, null, $foreach, false, "\t\t\t");
211 211
 
212 212
         return $ret;
213 213
     }
@@ -236,11 +236,11 @@  discard block
 block discarded – undo
236 236
         $xoopsSecurityCheck = $xc->getXcSecurityCheck('!');
237 237
         $securityError      = $xc->getXcSecurityErrors();
238 238
         $implode            = $pc->getPhpCodeImplode(',', $securityError);
239
-        $redirectError      = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t . "\t");
240
-        $ret                .= $pc->getPhpCodeConditions($xoopsSecurityCheck, '', '', $redirectError, false, $t);
239
+        $redirectError      = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t."\t");
240
+        $ret .= $pc->getPhpCodeConditions($xoopsSecurityCheck, '', '', $redirectError, false, $t);
241 241
 
242 242
         $isset       = $pc->getPhpCodeIsset($ccFieldId);
243
-        $contentIf   = $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName . 'Handler', false, $t . "\t");
243
+        $contentIf   = $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName.'Handler', false, $t."\t");
244 244
         $contentElse = $xc->getXcObjHandlerCreate($tableName, "\t\t\t");
245 245
         $ret         .= $pc->getPhpCodeConditions($isset, '', '', $contentIf, $contentElse, $t);
246 246
         $ret         .= $pc->getPhpCodeCommentLine('Set Vars', null, "\t\t");
@@ -282,20 +282,20 @@  discard block
 block discarded – undo
282 282
                 }
283 283
             }
284 284
         }
285
-        $ret           .= $pc->getPhpCodeCommentLine('Insert Data', null, "\t\t");
285
+        $ret .= $pc->getPhpCodeCommentLine('Insert Data', null, "\t\t");
286 286
         $insert        = $xc->getXcInsert($tableName, $tableName, 'Obj');
287 287
         $contentInsert = '';
288 288
         if (1 == $tableCategory) {
289 289
             $ucfTableName  = ucfirst($tableName);
290
-            $contentInsert = $xc->getXcEqualsOperator('$newCatId', "\${$tableName}Obj->getNewInsertedId{$ucfTableName}()", null, false, $t . "\t");
290
+            $contentInsert = $xc->getXcEqualsOperator('$newCatId', "\${$tableName}Obj->getNewInsertedId{$ucfTableName}()", null, false, $t."\t");
291 291
             $ucfFieldId    = $this->getCamelCase($fieldId, true);
292
-            $contentInsert .= $pc->getPhpCodeTernaryOperator('permId', "isset(\$_REQUEST['{$fieldId}'])", "\${$ccFieldId}", "\$new{$ucfFieldId}", $t . "\t");
293
-            $contentInsert .= $xc->getXcEqualsOperator('$gpermHandler', "xoops_gethandler('groupperm')", null, false, $t . "\t");
294
-            $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId);
295
-            $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId, 'submit');
296
-            $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId, 'approve');
292
+            $contentInsert .= $pc->getPhpCodeTernaryOperator('permId', "isset(\$_REQUEST['{$fieldId}'])", "\${$ccFieldId}", "\$new{$ucfFieldId}", $t."\t");
293
+            $contentInsert .= $xc->getXcEqualsOperator('$gpermHandler', "xoops_gethandler('groupperm')", null, false, $t."\t");
294
+            $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId);
295
+            $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId, 'submit');
296
+            $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId, 'approve');
297 297
         }
298
-        $contentInsert .= $xc->getXcRedirectHeader($tableName . '', '?op=list', '2', "{$language}FORM_OK", true, $t . "\t");
298
+        $contentInsert .= $xc->getXcRedirectHeader($tableName.'', '?op=list', '2', "{$language}FORM_OK", true, $t."\t");
299 299
         $ret           .= $pc->getPhpCodeConditions($insert, '', '', $contentInsert, false, $t);
300 300
         $ret           .= $pc->getPhpCodeCommentLine('Get Form', null, "\t\t");
301 301
         $ret           .= $xc->getXcTplAssign('error', "\${$tableName}Obj->getHtmlErrors()", true, $t);
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 
333 333
         $ret        = $axc->getAdminTemplateMain($moduleDirname, $tableName);
334 334
         $navigation = $axc->getAdminDisplayNavigation($tableName);
335
-        $ret        .= $xc->getXcTplAssign('navigation', $navigation, true, $t);
335
+        $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t);
336 336
 
337 337
         if (in_array(1, $fieldInForm)) {
338 338
             $ret .= $axc->getAdminItemButton($language, $tableName, $stuTableSoleName, '?op=new', 'add', $t);
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
             $ret .= $xc->getXcTplAssign('buttons', '$adminObject->displayButton(\'left\')', true, $t);
341 341
         }
342 342
         $ret .= $pc->getPhpCodeCommentLine('Get Form', null, "\t\t");
343
-        $ret .= $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName . 'Handler', false, $t);
343
+        $ret .= $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName.'Handler', false, $t);
344 344
         $ret .= $xc->getXcGetForm('form', $tableName, 'Obj', $t);
345 345
         $ret .= $xc->getXcTplAssign('form', '$form->render()', true, $t);
346 346
 
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
         }
405 405
         $delete = $this->getAdminPagesDelete($tableName, $language, $fieldId, $fieldMain, "\t\t");
406 406
 
407
-        $cases   = [
407
+        $cases = [
408 408
             'list'   => [$list],
409 409
             'new'    => [$new],
410 410
             'save'   => [$save],
Please login to merge, or discard this patch.
class/files/user/UserPdf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@
 block discarded – undo
206 206
         $ret .= $this->phpcode->getPhpCodeCommentLine('Pdf Filename');
207 207
         $ret .= $this->phpcode->getPhpCodeCommentLine('Output');
208 208
         $ret .= $this->xc->getXcTplAssign('pdfoutput', "\$pdf->Output('{$tableName}.pdf', 'I')");
209
-        $ret .= $this->xc->getXcTplDisplay($moduleDirname . "_pdf.tpl", '', false);
209
+        $ret .= $this->xc->getXcTplDisplay($moduleDirname."_pdf.tpl", '', false);
210 210
 
211 211
         return $ret;
212 212
     }
Please login to merge, or discard this patch.
class/files/TDMCreateXoopsCode.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
         $pTopic = TDMCreatePhpCode::getInstance();
475 475
         $ret = $pTopic->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t);
476 476
         $fieldParent = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, '');
477
-        $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic . 'Handler', false, $t);
477
+        $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic.'Handler', false, $t);
478 478
         $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t);
479 479
 
480 480
         return $ret;
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
     {
497 497
         $pParentTopic = TDMCreatePhpCode::getInstance();
498 498
         $parentTopic = $pParentTopic->getPhpCodeCommentLine('Get', $tableNameTopic.' Handler', $t."\t");
499
-        $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t . "\t");
499
+        $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t."\t");
500 500
         $elseGroups = $this->getXcEqualsOperator('$groups', 'XOOPS_GROUP_ANONYMOUS');
501 501
         $ret = $pParentTopic->getPhpCodeConditions("!isset(\${$tableNameTopic}Handler", '', '', $parentTopic, $elseGroups);
502 502
         $ret .= $this->getXcGetVarFromID("\${$lpFieldName}['{$rpFieldName}']", $tableNameTopic, $tableSoleNameTopic, $tableName, $fieldNameParent, $t);
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
         $pVarFromID = TDMCreatePhpCode::getInstance();
520 520
         $ret = $pVarFromID->getPhpCodeCommentLine('Get Var', $fieldName, $t);
521 521
         $getVarFromID = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldName, true, '');
522
-        $rightGet = $this->getXcAnchorFunction($anchor . 'Handler', 'get' . $var . 'FromId', $getVarFromID);
522
+        $rightGet = $this->getXcAnchorFunction($anchor.'Handler', 'get'.$var.'FromId', $getVarFromID);
523 523
         $ret .= $this->getXcEqualsOperator($left, $rightGet, null, false, $t);
524 524
 
525 525
         return $ret;
@@ -849,7 +849,7 @@  discard block
 block discarded – undo
849 849
         if ($usedoublequotes) {
850 850
             return "{$t}\$GLOBALS['xoopsTpl']->display(\"db:{$displayTpl}\");\n";
851 851
         } else {
852
-            return "{$t}\$GLOBALS['xoopsTpl']->display('db:" . $displayTpl . "');\n";
852
+            return "{$t}\$GLOBALS['xoopsTpl']->display('db:".$displayTpl."');\n";
853 853
         }
854 854
     }
855 855
 
@@ -1091,7 +1091,7 @@  discard block
 block discarded – undo
1091 1091
         $phpCodeSecurity = TDMCreatePhpCode::getInstance();
1092 1092
         $securityError = $this->getXcSecurityErrors();
1093 1093
         $implode = $phpCodeSecurity->getPhpCodeImplode(',', $securityError);
1094
-        $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '', 3, $implode, $t);
1094
+        $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '', 3, $implode, $t);
1095 1095
         $securityCheck = $this->getXcSecurityCheck();
1096 1096
 
1097 1097
         return $phpCodeSecurity->getPhpCodeConditions('!'.$securityCheck, '', '', $content, $t);
@@ -1107,7 +1107,7 @@  discard block
 block discarded – undo
1107 1107
     public function getXcInsertData($tableName, $language, $t = '')
1108 1108
     {
1109 1109
         $phpCodeInsertData = TDMCreatePhpCode::getInstance();
1110
-        $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK");
1110
+        $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK");
1111 1111
         $handlerInsert = $this->getXcHandler($tableName, $tableName, false, true, false, 'Obj');
1112 1112
 
1113 1113
         return $phpCodeInsertData->getPhpCodeConditions($handlerInsert, '', '', $content, $t);
@@ -1154,7 +1154,7 @@  discard block
 block discarded – undo
1154 1154
         $phpXoopsConfirm = TDMCreatePhpCode::getInstance();
1155 1155
         $array = "array('ok' => 1, '{$fieldId}' => \${$ccFieldId}, 'op' => '{$options}')";
1156 1156
         $server = $phpXoopsConfirm->getPhpCodeGlobalsVariables('REQUEST_URI', 'SERVER');
1157
-        $getVar = $this->getXcGetVar('', $tableName . 'Obj', $fieldMain, true, '');
1157
+        $getVar = $this->getXcGetVar('', $tableName.'Obj', $fieldMain, true, '');
1158 1158
         $sprintf = $phpXoopsConfirm->getPhpCodeSprintf($language.'FORM_SURE_'.$stuOptions, $getVar);
1159 1159
         $ret = "{$t}xoops_confirm({$array}, {$server}, {$sprintf});\n";
1160 1160
 
@@ -1328,7 +1328,7 @@  discard block
 block discarded – undo
1328 1328
     {
1329 1329
         $ret = TDMCreatePhpCode::getInstance()->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t);
1330 1330
         $paramGet = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, '');
1331
-        $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic . 'Handler', false, $t);
1331
+        $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic.'Handler', false, $t);
1332 1332
         $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t);
1333 1333
 
1334 1334
         return $ret;
@@ -1416,18 +1416,18 @@  discard block
 block discarded – undo
1416 1416
                 $fieldMain = $fieldName;
1417 1417
             }
1418 1418
             if ((5 == $fieldElement) || (6 == $fieldElement)) {
1419
-                $ret .= $t . $this->getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName);
1419
+                $ret .= $t.$this->getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName);
1420 1420
             } elseif (13 == $fieldElement) {
1421 1421
                 $ret .= $axCodeSaveElements->getAxcUploadImageSetVar($moduleDirname, $tableName, $fieldName, $fieldMain);
1422 1422
             } elseif (14 == $fieldElement) {
1423 1423
                 $ret .= $axCodeSaveElements->getAxcUploadFileSetVar($moduleDirname, $tableName, $fieldName);
1424 1424
             } elseif (15 == $fieldElement) {
1425
-                $ret .= $t . $this->getXcTextDateSelectSetVar($tableName, $tableSoleName, $fieldName);
1425
+                $ret .= $t.$this->getXcTextDateSelectSetVar($tableName, $tableSoleName, $fieldName);
1426 1426
             } else {
1427 1427
                 if ((0 != $f) && 1 == $tableAutoincrement) {
1428
-                    $ret .= $t . $this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1428
+                    $ret .= $t.$this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1429 1429
                 } elseif ((0 == $f) && 0 == $tableAutoincrement) {
1430
-                    $ret .= $t . $this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1430
+                    $ret .= $t.$this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1431 1431
                 }
1432 1432
             }
1433 1433
         }
@@ -1449,7 +1449,7 @@  discard block
 block discarded – undo
1449 1449
         $ret = $phpCodePageNav->getPhpCodeCommentLine('Display Navigation', null, $t);
1450 1450
         $condition = $phpCodePageNav->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/pagenav', true, false, 'include', $t."\t");
1451 1451
         $condition .= $classXCode->getClassXoopsPageNav('pagenav', $tableName.'Count', 'limit', 'start', 'start', "'op=list&limit=' . \$limit", false, $t."\t");
1452
-        $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t . "\t");
1452
+        $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t."\t");
1453 1453
         $ret .= $phpCodePageNav->getPhpCodeConditions("\${$tableName}Count", ' > ', '$limit', $condition, false, $t);
1454 1454
 
1455 1455
         return $ret;
Please login to merge, or discard this patch.
class/files/language/LanguageDefines.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
         if ($usedoubleqoute) {
93 93
             $ret = $this->phpcode->getPhpCodeDefine("{$language}{$defined}", "\"{$description}\"");
94 94
         } else {
95
-            $ret = $this->phpcode->getPhpCodeDefine("{$language}{$defined}", "'" . $description . "'");
95
+            $ret = $this->phpcode->getPhpCodeDefine("{$language}{$defined}", "'".$description."'");
96 96
         }
97 97
         return $ret;
98 98
     }
Please login to merge, or discard this patch.
class/files/classes/ClassFiles.php 1 patch
Spacing   +6 added lines, -6 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 = [];
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
         $ucfTableName = ucfirst($tableName);
528 528
         $ucfTableSoleName = ucfirst($tableSoleName);
529 529
         $ucfModuleTable = $ucfModuleDirname.$ucfTableName;
530
-        $multiLineCom = ['Class Object Handler' => $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,7 +613,7 @@  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 618
         $critCount = $cc->getClassCriteriaCompo('crCount'.$ucfTableName, "\t\t");
619 619
         $paramsCrit = "\$this->get{$ucfTableName}Criteria(\$crCount{$ucfTableName}, \$start, \$limit, \$sort, \$order)";
@@ -641,7 +641,7 @@  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 646
         $critAll = $cc->getClassCriteriaCompo('crAll'.$ucfTableName, "\t\t");
647 647
         $paramsCrit = "\$this->get{$ucfTableName}Criteria(\$crAll{$ucfTableName}, \$start, \$limit, \$sort, \$order)";
@@ -718,7 +718,7 @@  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
 
@@ -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.