Passed
Pull Request — master (#144)
by Michael
03:10
created
class/LogoGenerator.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
23 23
  *
24 24
  * @version         $Id: LogoGenerator.php 12258 2014-01-02 09:33:29Z timgno $
25 25
  */
26
-include_once dirname(dirname(dirname(__DIR__))) . '/mainfile.php';
26
+include_once dirname(dirname(dirname(__DIR__))).'/mainfile.php';
27 27
 //include_once XOOPS_ROOT_PATH . '/modules/TDMCreate/include/common.php';
28 28
 
29 29
 if (function_exists($_GET['f'])) { // get function name and parameter  $_GET['f']($_GET["p"]);
30
-    include_once __DIR__ . '/LogoGenerator.php';
30
+    include_once __DIR__.'/LogoGenerator.php';
31 31
     $ret = LogoGenerator::createLogo($_GET['iconName'], $_GET['caption']);
32 32
     phpFunction($ret);
33 33
 } else {
@@ -66,15 +66,15 @@  discard block
 block discarded – undo
66 66
         }
67 67
 
68 68
         $dirname = 'tdmcreate';
69
-        $iconFileName = XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32/' . basename($logoIcon);
69
+        $iconFileName = XOOPS_ROOT_PATH.'/Frameworks/moduleclasses/icons/32/'.basename($logoIcon);
70 70
 
71 71
         //$dirFonts = TDMC_PATH . "/assets/fonts";
72 72
         //$dirLogos = TDMC_PATH . "/assets/images/logos";
73
-        $dirFonts = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/assets/fonts';
74
-        $dirLogos = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/assets/images/logos';
73
+        $dirFonts = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/assets/fonts';
74
+        $dirLogos = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/assets/images/logos';
75 75
 
76
-        if (!file_exists($imageBase = $dirLogos . '/empty.png') ||
77
-            !file_exists($font = $dirFonts . '/VeraBd.ttf') ||
76
+        if (!file_exists($imageBase = $dirLogos.'/empty.png') ||
77
+            !file_exists($font = $dirFonts.'/VeraBd.ttf') ||
78 78
             !file_exists($iconFile = $iconFileName)) {
79 79
             return false;
80 80
         }
@@ -90,13 +90,13 @@  discard block
 block discarded – undo
90 90
         imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32);
91 91
 
92 92
         //$targetImage = TDMC_UPLOAD_IMGMOD_URL . "/" . $moduleName . "_logo.png";
93
-        $targetImage = '/uploads/' . $dirname . '/images/modules/' . $moduleName . '_logo.png';
93
+        $targetImage = '/uploads/'.$dirname.'/images/modules/'.$moduleName.'_logo.png';
94 94
 
95
-        imagepng($imageModule, XOOPS_ROOT_PATH . $targetImage);
95
+        imagepng($imageModule, XOOPS_ROOT_PATH.$targetImage);
96 96
 
97 97
         imagedestroy($imageModule);
98 98
         imagedestroy($imageIcon);
99 99
 
100
-        return XOOPS_URL . $targetImage;
100
+        return XOOPS_URL.$targetImage;
101 101
     }
102 102
 }
Please login to merge, or discard this patch.
class/Building.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $form->addElement($mod_select, true);
71 71
 
72 72
         $form->addElement(new \XoopsFormHidden('op', 'build'));
73
-        $form->addElement(new \XoopsFormButton(_REQUIRED . ' <sup class="red bold">*</sup>', 'submit', _SUBMIT, 'submit'));
73
+        $form->addElement(new \XoopsFormButton(_REQUIRED.' <sup class="red bold">*</sup>', 'submit', _SUBMIT, 'submit'));
74 74
 
75 75
         return $form;
76 76
     }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     public function clearDir($dir, $pattern = '*')
83 83
     {
84 84
         // Find all files and folders matching pattern
85
-        $files = glob($dir . "/$pattern");
85
+        $files = glob($dir."/$pattern");
86 86
         // Interate thorugh the files and folders
87 87
         foreach ($files as $file) {
88 88
             // if it's a directory then re-call clearDir function to delete files inside this directory
@@ -109,12 +109,12 @@  discard block
 block discarded – undo
109 109
         }
110 110
         while (false !== ($file = readdir($dir))) {
111 111
             if (('.' !== $file) && ('..' !== $file)) {
112
-                if (is_dir($src . '/' . $file)) {
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
-                    copy($src . '/' . $file, $dst . '/' . $file);
117
+                    copy($src.'/'.$file, $dst.'/'.$file);
118 118
                 }
119 119
             }
120 120
         }
Please login to merge, or discard this patch.
class/Tables.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -181,18 +181,18 @@  discard block
 block discarded – undo
181 181
         $tableImage = $getTableImage ?: 'blank.gif';
182 182
         $icons32Directory = '/Frameworks/moduleclasses/icons/32';
183 183
         $uploadsDirectory = '/uploads/tdmcreate/images/tables';
184
-        $iconsDirectory = is_dir(XOOPS_ROOT_PATH . $icons32Directory) ? $icons32Directory : $uploadsDirectory;
184
+        $iconsDirectory = is_dir(XOOPS_ROOT_PATH.$icons32Directory) ? $icons32Directory : $uploadsDirectory;
185 185
 
186 186
         $imgtray1 = new \XoopsFormElementTray(_AM_TDMCREATE_TABLE_IMAGE, '<br>');
187 187
         $imgpath1 = sprintf(_AM_TDMCREATE_FORMIMAGE_PATH, ".{$iconsDirectory}/");
188 188
         $imageSelect1 = new \XoopsFormSelect($imgpath1, 'table_image', $tableImage, 10);
189
-        $imageArray1 = \XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH . $iconsDirectory);
189
+        $imageArray1 = \XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH.$iconsDirectory);
190 190
         foreach ($imageArray1 as $image1) {
191 191
             $imageSelect1->addOption($image1, $image1);
192 192
         }
193
-        $imageSelect1->setExtra("onchange='showImgSelected(\"image1\", \"table_image\", \"" . $iconsDirectory . '", "", "' . XOOPS_URL . "\")'");
193
+        $imageSelect1->setExtra("onchange='showImgSelected(\"image1\", \"table_image\", \"".$iconsDirectory.'", "", "'.XOOPS_URL."\")'");
194 194
         $imgtray1->addElement($imageSelect1, false);
195
-        $imgtray1->addElement(new \XoopsFormLabel('', "<br><img src='" . XOOPS_URL . '/' . $iconsDirectory . '/' . $tableImage . "' name='image1' id='image1' alt='' />"));
195
+        $imgtray1->addElement(new \XoopsFormLabel('', "<br><img src='".XOOPS_URL.'/'.$iconsDirectory.'/'.$tableImage."' name='image1' id='image1' alt='' />"));
196 196
         $fileseltray1 = new \XoopsFormElementTray('', '<br>');
197 197
         $fileseltray1->addElement(new \XoopsFormFile(_AM_TDMCREATE_FORMUPLOAD, 'attachedfile', $helper->getConfig('maxsize')));
198 198
         $fileseltray1->addElement(new \XoopsFormLabel(''));
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         $checkbox = new \XoopsFormCheckbox(' ', 'table_option', $this->getOptionsTables(), '<br>');
217 217
         $checkbox->setDescription(_AM_TDMCREATE_OPTIONS_DESC);
218 218
         foreach ($this->options as $option) {
219
-            $checkbox->addOption($option, self::getDefinedLanguage('_AM_TDMCREATE_TABLE_' . mb_strtoupper($option)));
219
+            $checkbox->addOption($option, self::getDefinedLanguage('_AM_TDMCREATE_TABLE_'.mb_strtoupper($option)));
220 220
         }
221 221
         $optionsTray->addElement($checkbox);
222 222
 
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 
225 225
         $form->addElement($optionsTray);
226 226
 
227
-        $buttonTray = new \XoopsFormElementTray(_REQUIRED . ' <sup class="red bold">*</sup>', '');
227
+        $buttonTray = new \XoopsFormElementTray(_REQUIRED.' <sup class="red bold">*</sup>', '');
228 228
         $buttonTray->addElement(new \XoopsFormHidden('op', 'save'));
229 229
         $buttonTray->addElement(new \XoopsFormHidden('table_id', ($isNew ? 0 : $this->getVar('table_id'))));
230 230
         $buttonTray->addElement(new \XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
     {
274 274
         $retTable = [];
275 275
         foreach ($this->options as $option) {
276
-            if (1 == $this->getVar('table_' . $option)) {
276
+            if (1 == $this->getVar('table_'.$option)) {
277 277
                 $retTable[] = $option;
278 278
             }
279 279
         }
Please login to merge, or discard this patch.
class/Files/Sql/SqlFile.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                     case 3:
201 201
                     case 4:
202 202
                     case 5:
203
-                        $type = $fieldTypeName . '(' . $fieldValue . ')';
203
+                        $type = $fieldTypeName.'('.$fieldValue.')';
204 204
                         if (empty($fieldDefault)) {
205 205
                             $default = "DEFAULT '0'";
206 206
                         } else {
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
                     case 6:
211 211
                     case 7:
212 212
                     case 8:
213
-                        $type = $fieldTypeName . '(' . $fieldValue . ')';
213
+                        $type = $fieldTypeName.'('.$fieldValue.')';
214 214
                         if (empty($fieldDefault)) {
215 215
                             $default = "DEFAULT '0.00'"; // From MySQL 5.7 Manual
216 216
                         } else {
@@ -220,11 +220,11 @@  discard block
 block discarded – undo
220 220
                     case 9:
221 221
                     case 10:
222 222
                         $fValues = str_replace(',', "', '", str_replace(' ', '', $fieldValue));
223
-                        $type = $fieldTypeName . '(\'' . $fValues . '\')'; // Used with comma separator
223
+                        $type = $fieldTypeName.'(\''.$fValues.'\')'; // Used with comma separator
224 224
                         $default = "DEFAULT '{$fieldDefault}'";
225 225
                         break;
226 226
                     case 11:
227
-                        $type = $fieldTypeName . '(' . $fieldValue . ')';
227
+                        $type = $fieldTypeName.'('.$fieldValue.')';
228 228
                         if (empty($fieldDefault)) {
229 229
                             $default = "DEFAULT '[email protected]'";
230 230
                         } else {
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
                         }
233 233
                         break;
234 234
                     case 12:
235
-                        $type = $fieldTypeName . '(' . $fieldValue . ')';
235
+                        $type = $fieldTypeName.'('.$fieldValue.')';
236 236
                         if (empty($fieldDefault)) {
237 237
                             $default = "DEFAULT 'http:\\'";
238 238
                         } else {
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
                         break;
242 242
                     case 13:
243 243
                     case 14:
244
-                        $type = $fieldTypeName . '(' . $fieldValue . ')';
244
+                        $type = $fieldTypeName.'('.$fieldValue.')';
245 245
                         $default = "DEFAULT '{$fieldDefault}'";
246 246
                         break;
247 247
                     case 15:
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
                     case 20:
256 256
                     case 21:
257 257
                     case 22:
258
-                        $type = $fieldTypeName . '(' . $fieldValue . ')';
258
+                        $type = $fieldTypeName.'('.$fieldValue.')';
259 259
                         $default = "DEFAULT '{$fieldDefault}'";
260 260
                         break;
261 261
                     case 23:
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
                         }
268 268
                         break;
269 269
                     default:
270
-                        $type = $fieldTypeName . '(' . $fieldValue . ')';
270
+                        $type = $fieldTypeName.'('.$fieldValue.')';
271 271
                         $default = "DEFAULT '{$fieldDefault}'";
272 272
                         break;
273 273
                 }
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
         // ================= COMMA ================= //
313 313
         for ($i = 0; $i < $j; ++$i) {
314 314
             if ($i != $j - 1) {
315
-                $row[] = $comma[$i] . ',';
315
+                $row[] = $comma[$i].',';
316 316
             } else {
317 317
                 $row[] = $comma[$i];
318 318
             }
@@ -426,9 +426,9 @@  discard block
 block discarded – undo
426 426
         // Comma issue
427 427
         for ($i = 1; $i <= $index; ++$i) {
428 428
             if ($i != $index - 1) {
429
-                $ret = $this->getComma(isset($comma[$i]), ',') . "\n";
429
+                $ret = $this->getComma(isset($comma[$i]), ',')."\n";
430 430
             } else {
431
-                $ret = $this->getComma(isset($comma[$i])) . "\n";
431
+                $ret = $this->getComma(isset($comma[$i]))."\n";
432 432
             }
433 433
         }
434 434
 
Please login to merge, or discard this patch.
class/Files/User/UserXoopsCode.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     {
75 75
         $pCodeAddMeta = Tdmcreate\Files\CreatePhpCode::getInstance();
76 76
         $stuTableName = mb_strtoupper($tableName);
77
-        $stripTags = $pCodeAddMeta->getPhpCodeStripTags('', $language . $stuTableName, true);
77
+        $stripTags = $pCodeAddMeta->getPhpCodeStripTags('', $language.$stuTableName, true);
78 78
 
79 79
         return "{$t}\$GLOBALS['xoTheme']->addMeta( 'meta', '{$type}', {$stripTags});\n";
80 80
     }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         $stuModuleDirname = mb_strtoupper($moduleDirname);
142 142
         $ret = $pCodeHeaderFile->getPhpCodeCommentLine('Breadcrumbs');
143 143
         $ret .= $pCodeHeaderFile->getPhpCodeArray('xoBreadcrumbs', null, false, '');
144
-        $titleLink = ["'title'" => $language . 'TITLE', "'link'" => "{$stuModuleDirname}_URL . '/'"];
144
+        $titleLink = ["'title'" => $language.'TITLE', "'link'" => "{$stuModuleDirname}_URL . '/'"];
145 145
         $ret .= $pCodeHeaderFile->getPhpCodeArray('xoBreadcrumbs[]', $titleLink, false, '');
146 146
 
147 147
         return $ret;
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     public function getUserModVersion($eleArray, $descriptions, $name = null, $index = null, $num = false, $t = '')
178 178
     {
179 179
         $ret = '';
180
-        $mv = $t . '$modversion';
180
+        $mv = $t.'$modversion';
181 181
         if (!is_array($descriptions)) {
182 182
             $descs = [$descriptions];
183 183
         } else {
@@ -187,13 +187,13 @@  discard block
 block discarded – undo
187 187
             $one = (null === $name) ? $key : $name;
188 188
             $two = (null === $index) ? $key : $index;
189 189
             if (1 === $eleArray) {
190
-                $ret .= $mv . "['{$one}'] = {$desc};\n";
190
+                $ret .= $mv."['{$one}'] = {$desc};\n";
191 191
             } elseif (2 === $eleArray) {
192
-                $ret .= $mv . "['{$one}'][{$two}] = {$desc};\n";
192
+                $ret .= $mv."['{$one}'][{$two}] = {$desc};\n";
193 193
             } elseif (3 === $eleArray) {
194
-                $ret .= $mv . "['{$one}'][{$two}]['{$key}'] = {$desc};\n";
194
+                $ret .= $mv."['{$one}'][{$two}]['{$key}'] = {$desc};\n";
195 195
             } elseif (4 === $eleArray) {
196
-                $ret .= $mv . "['{$one}'][{$two}][{$num}]['{$key}'] = {$desc};\n";
196
+                $ret .= $mv."['{$one}'][{$two}][{$num}]['{$key}'] = {$desc};\n";
197 197
             }
198 198
         }
199 199
 
Please login to merge, or discard this patch.
class/Files/User/UserSubmit.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -110,18 +110,18 @@  discard block
 block discarded – undo
110 110
         $pc = Tdmcreate\Files\CreatePhpCode::getInstance();
111 111
         $uc = UserXoopsCode::getInstance();
112 112
         $ret = $pc->getPhpCodeCommentLine('Navigation');
113
-        $ret .= $xc->getXcEqualsOperator('$navigation', "{$language}SUBMIT_PROPOSER", '', false, $t . "\t");
114
-        $ret .= $xc->getXcTplAssign('navigation', '$navigation', true, $t . "\t");
115
-        $ret .= $pc->getPhpCodeCommentLine('Title of page', null, $t . "\t");
116
-        $ret .= $xc->getXcEqualsOperator('$title', "{$language}SUBMIT_PROPOSER . '&nbsp;-&nbsp;'", '', false, $t . "\t");
117
-        $ret .= $xc->getXcEqualsOperator('$title', "\$GLOBALS['xoopsModule']->name()", '.', false, $t . "\t");
118
-        $ret .= $xc->getXcTplAssign('xoops_pagetitle', '$title', true, $t . "\t");
119
-        $ret .= $pc->getPhpCodeCommentLine('Description', null, $t . "\t");
120
-        $ret .= $uc->getUserAddMeta('description', $language, 'SUBMIT_PROPOSER', $t . "\t");
121
-        $ret .= $pc->getPhpCodeCommentLine('Form Create', null, $t . "\t");
122
-        $ret .= $xc->getXcObjHandlerCreate($tableName, $t . "\t");
123
-        $ret .= $xc->getXcGetForm('form', $tableName, 'Obj', $t . "\t");
124
-        $ret .= $xc->getXcTplAssign('form', '$form->render()', true, $t . "\t");
113
+        $ret .= $xc->getXcEqualsOperator('$navigation', "{$language}SUBMIT_PROPOSER", '', false, $t."\t");
114
+        $ret .= $xc->getXcTplAssign('navigation', '$navigation', true, $t."\t");
115
+        $ret .= $pc->getPhpCodeCommentLine('Title of page', null, $t."\t");
116
+        $ret .= $xc->getXcEqualsOperator('$title', "{$language}SUBMIT_PROPOSER . '&nbsp;-&nbsp;'", '', false, $t."\t");
117
+        $ret .= $xc->getXcEqualsOperator('$title', "\$GLOBALS['xoopsModule']->name()", '.', false, $t."\t");
118
+        $ret .= $xc->getXcTplAssign('xoops_pagetitle', '$title', true, $t."\t");
119
+        $ret .= $pc->getPhpCodeCommentLine('Description', null, $t."\t");
120
+        $ret .= $uc->getUserAddMeta('description', $language, 'SUBMIT_PROPOSER', $t."\t");
121
+        $ret .= $pc->getPhpCodeCommentLine('Form Create', null, $t."\t");
122
+        $ret .= $xc->getXcObjHandlerCreate($tableName, $t."\t");
123
+        $ret .= $xc->getXcGetForm('form', $tableName, 'Obj', $t."\t");
124
+        $ret .= $xc->getXcTplAssign('form', '$form->render()', true, $t."\t");
125 125
 
126 126
         return $ret;
127 127
     }
@@ -147,8 +147,8 @@  discard block
 block discarded – undo
147 147
         $xoopsSecurityCheck = $xc->getXcSecurityCheck();
148 148
         $securityError = $xc->getXcSecurityErrors();
149 149
         $implode = $pc->getPhpCodeImplode(',', $securityError);
150
-        $redirectError = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t . "\t");
151
-        $ret .= $pc->getPhpCodeConditions('!' . $xoopsSecurityCheck, '', '', $redirectError, false, $t);
150
+        $redirectError = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t."\t");
151
+        $ret .= $pc->getPhpCodeConditions('!'.$xoopsSecurityCheck, '', '', $redirectError, false, $t);
152 152
         $ret .= $xc->getXcObjHandlerCreate($tableName, $t);
153 153
         $autoincrement = in_array(1, $tableAutoincrement) ? $tableAutoincrement : 0;
154 154
         if (in_array(1, $tableSubmit)) {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         }
157 157
         $ret .= $pc->getPhpCodeCommentLine('Insert Data', null, $t);
158 158
         $insert = $xc->getXcInsert($tableName, $tableName, 'Obj', 'Handler');
159
-        $confirmOk = $xc->getXcRedirectHeader('index', '', '2', "{$language}FORM_OK", true, $t . "\t");
159
+        $confirmOk = $xc->getXcRedirectHeader('index', '', '2', "{$language}FORM_OK", true, $t."\t");
160 160
         $ret .= $pc->getPhpCodeConditions($insert, '', '', $confirmOk, false, $t);
161 161
 
162 162
         $ret .= $pc->getPhpCodeCommentLine('Get Form Error', null, $t);
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         $fields = $this->getTableFields($tableMid, $tableId);
205 205
         $cases = [
206 206
             'form' => [$this->getUserSubmitForm($tableName, $language, $t)],
207
-            'save' => [$this->getUserSubmitSave($moduleDirname, $fields, $tableName, $tableSoleName, $tableSubmit, $tableAutoincrement, $language, $t . "\t")],
207
+            'save' => [$this->getUserSubmitSave($moduleDirname, $fields, $tableName, $tableSoleName, $tableSubmit, $tableAutoincrement, $language, $t."\t")],
208 208
         ];
209 209
 
210 210
         return $xc->getXcSwitch('op', $cases, true, false, $t);
Please login to merge, or discard this patch.
class/Files/admin/AdminXoopsCode.php 1 patch
Spacing   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -71,11 +71,11 @@  discard block
 block discarded – undo
71 71
     public function getAdminItemButton($language, $tableName, $stuTableSoleName, $op = '?op=new', $type = 'add', $t = '')
72 72
     {
73 73
         $stuType = mb_strtoupper($type);
74
-        $aM = $t . '$adminObject->addItemButton(';
74
+        $aM = $t.'$adminObject->addItemButton(';
75 75
         if ('add' === $type) {
76
-            $ret = $aM . "{$language}ADD_{$stuTableSoleName}, '{$tableName}.php{$op}', '{$type}');\n";
76
+            $ret = $aM."{$language}ADD_{$stuTableSoleName}, '{$tableName}.php{$op}', '{$type}');\n";
77 77
         } else {
78
-            $ret = $aM . "{$language}{$stuTableSoleName}_{$stuType}, '{$tableName}.php{$op}', '{$type}');\n";
78
+            $ret = $aM."{$language}{$stuTableSoleName}_{$stuType}, '{$tableName}.php{$op}', '{$type}');\n";
79 79
         }
80 80
 
81 81
         return $ret;
@@ -117,11 +117,11 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function getAxcAddInfoBoxLine($language, $label = '', $var = '', $t = '')
119 119
     {
120
-        $aMenu = $t . '$adminObject->addInfoBoxLine(sprintf(';
120
+        $aMenu = $t.'$adminObject->addInfoBoxLine(sprintf(';
121 121
         if ('' != $var) {
122
-            $ret = $aMenu . " '<label>'.{$label}.'</label>', {$var}));\n";
122
+            $ret = $aMenu." '<label>'.{$label}.'</label>', {$var}));\n";
123 123
         } else {
124
-            $ret = $aMenu . " '<label>'.{$label}.'</label>'));\n";
124
+            $ret = $aMenu." '<label>'.{$label}.'</label>'));\n";
125 125
         }
126 126
 
127 127
         return $ret;
@@ -138,11 +138,11 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function getAxcAddConfigBoxLine($language, $label = '', $var = '', $t = '')
140 140
     {
141
-        $aMenu = $t . '$adminObject->addConfigBoxLine(';
141
+        $aMenu = $t.'$adminObject->addConfigBoxLine(';
142 142
         if ('' != $var) {
143
-            $ret = $aMenu . "{$language}, '{$label}', {$var});\n";
143
+            $ret = $aMenu."{$language}, '{$label}', {$var});\n";
144 144
         } else {
145
-            $ret = $aMenu . "{$language}, '{$label}');\n";
145
+            $ret = $aMenu."{$language}, '{$label}');\n";
146 146
         }
147 147
 
148 148
         return $ret;
@@ -164,15 +164,15 @@  discard block
 block discarded – undo
164 164
         $ret .= $pCodeImageList->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/uploader', true, false, '', $t);
165 165
         $xRootPath = "XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/icons/32'";
166 166
         $ret .= $xCodeImageList->getXcMediaUploader('uploader', $xRootPath, $moduleDirname, $t);
167
-        $post = $pCodeImageList->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST') . '[0]';
167
+        $post = $pCodeImageList->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST').'[0]';
168 168
         $fetchMedia = $this->getAxcFetchMedia('uploader', $post);
169
-        $ifelse = $t . "\t//" . $this->getAxcSetPrefix('uploader', "{$fieldName}_") . ";\n";
170
-        $ifelse .= $t . "\t//{$fetchMedia};\n";
171
-        $contentElseInt = $xCodeImageList->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t . "\t\t");
172
-        $contentIf = $xCodeImageList->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t . "\t\t");
173
-        $contentIf .= $xCodeImageList->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t . "\t\t");
174
-        $ifelse .= $pCodeImageList->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t . "\t");
175
-        $contentElseExt = $xCodeImageList->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t . "\t");
169
+        $ifelse = $t."\t//".$this->getAxcSetPrefix('uploader', "{$fieldName}_").";\n";
170
+        $ifelse .= $t."\t//{$fetchMedia};\n";
171
+        $contentElseInt = $xCodeImageList->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t."\t\t");
172
+        $contentIf = $xCodeImageList->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t."\t\t");
173
+        $contentIf .= $xCodeImageList->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t."\t\t");
174
+        $ifelse .= $pCodeImageList->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t."\t");
175
+        $contentElseExt = $xCodeImageList->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t."\t");
176 176
 
177 177
         $ret .= $pCodeImageList->getPhpCodeConditions($fetchMedia, '', '', $ifelse, $contentElseExt, $t);
178 178
 
@@ -196,21 +196,21 @@  discard block
 block discarded – undo
196 196
         $ret = $pCodeUploadImage->getPhpCodeCommentLine('Set Var', $fieldName, $t);
197 197
         $ret .= $pCodeUploadImage->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/uploader', true, false, '', $t);
198 198
         $xUploadImage = "{$stuModuleDirname}_UPLOAD_IMAGE_PATH";
199
-        $ret .= $xCodeUploadImage->getXcMediaUploader('uploader', $xUploadImage . ".'/{$tableName}/'", $moduleDirname, $t);
200
-        $post = $pCodeUploadImage->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST') . '[0]';
199
+        $ret .= $xCodeUploadImage->getXcMediaUploader('uploader', $xUploadImage.".'/{$tableName}/'", $moduleDirname, $t);
200
+        $post = $pCodeUploadImage->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST').'[0]';
201 201
         $fetchMedia = $this->getAxcFetchMedia('uploader', $post);
202
-        $file = $pCodeUploadImage->getPhpCodeGlobalsVariables('attachedfile', 'FILES') . "['name']";
202
+        $file = $pCodeUploadImage->getPhpCodeGlobalsVariables('attachedfile', 'FILES')."['name']";
203 203
         $expr = '/^.+\.([^.]+)$/sU';
204
-        $ifelse = $pCodeUploadImage->getPhpCodePregFunzions('extension', $expr, '', $file, 'replace', false, $t . "\t");
204
+        $ifelse = $pCodeUploadImage->getPhpCodePregFunzions('extension', $expr, '', $file, 'replace', false, $t."\t");
205 205
 
206
-        $ifelse .= $t . "\t\$imgName = str_replace(' ', '', \$_POST['{$fieldMain}']).'.'.\$extension;\n";
207
-        $ifelse .= $this->getAxcSetPrefix('uploader', '$imgName', $t . "\t") . ";\n";
208
-        $ifelse .= $t . "\t{$fetchMedia};\n";
209
-        $contentElseInt = $xCodeUploadImage->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t . "\t\t");
210
-        $contentIf = $xCodeUploadImage->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t . "\t\t");
211
-        $contentIf .= $xCodeUploadImage->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t . "\t\t");
212
-        $ifelse .= $pCodeUploadImage->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t . "\t");
213
-        $contentElseExt = $xCodeUploadImage->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t . "\t");
206
+        $ifelse .= $t."\t\$imgName = str_replace(' ', '', \$_POST['{$fieldMain}']).'.'.\$extension;\n";
207
+        $ifelse .= $this->getAxcSetPrefix('uploader', '$imgName', $t."\t").";\n";
208
+        $ifelse .= $t."\t{$fetchMedia};\n";
209
+        $contentElseInt = $xCodeUploadImage->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t."\t\t");
210
+        $contentIf = $xCodeUploadImage->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t."\t\t");
211
+        $contentIf .= $xCodeUploadImage->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t."\t\t");
212
+        $ifelse .= $pCodeUploadImage->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElseInt, $t."\t");
213
+        $contentElseExt = $xCodeUploadImage->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']", $t."\t");
214 214
 
215 215
         $ret .= $pCodeUploadImage->getPhpCodeConditions($fetchMedia, '', '', $ifelse, $contentElseExt, $t);
216 216
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
     public function getAxcUploadFileSetVar($moduleDirname, $tableName, $fieldName, $formatUrl = false, $t = '')
230 230
     {
231 231
         $stuModuleDirname = mb_strtoupper($moduleDirname);
232
-        $ret = $this->getAxcImageFileSetVar($moduleDirname, $stuModuleDirname . '_UPLOAD_FILES_PATH', $tableName, $fieldName, $formatUrl, $t);
232
+        $ret = $this->getAxcImageFileSetVar($moduleDirname, $stuModuleDirname.'_UPLOAD_FILES_PATH', $tableName, $fieldName, $formatUrl, $t);
233 233
 
234 234
         return $ret;
235 235
     }
@@ -251,26 +251,26 @@  discard block
 block discarded – undo
251 251
         $ret = '';
252 252
         $ifelse = '';
253 253
         $files = '';
254
-        $post = $pCodeFileSetVar->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST') . '[0]';
254
+        $post = $pCodeFileSetVar->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST').'[0]';
255 255
         $fetchMedia = $this->getAxcFetchMedia('uploader', $post);
256 256
         if ($formatUrl) {
257 257
             $ret .= $xCodeFileSetVar->getXcSetVar($tableName, $fieldName, "formatUrl(\$_REQUEST['{$fieldName}'])", $t);
258 258
             $ret .= $pCodeFileSetVar->getPhpCodeCommentLine('Set Var', $fieldName, $t);
259
-            $ifelse .= $t . "\t\t{$fetchMedia};\n";
259
+            $ifelse .= $t."\t\t{$fetchMedia};\n";
260 260
         } else {
261 261
             $files = '/files';
262 262
             $ret .= $pCodeFileSetVar->getPhpCodeCommentLine('Set Var', $fieldName, $t);
263
-            $ifelse .= $t . "\t//" . $this->getAxcSetPrefix('uploader', "'{$fieldName}_'") . ";\n";
264
-            $ifelse .= $t . "\t//{$fetchMedia};\n";
263
+            $ifelse .= $t."\t//".$this->getAxcSetPrefix('uploader', "'{$fieldName}_'").";\n";
264
+            $ifelse .= $t."\t//{$fetchMedia};\n";
265 265
         }
266 266
         $ret .= $pCodeFileSetVar->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/uploader', true, false, '', $t);
267
-        $ret .= $xCodeFileSetVar->getXcMediaUploader('uploader', $dirname . ".'/{$tableName}{$files}'", $moduleDirname, $t);
268
-        $contentElse = $xCodeFileSetVar->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t . "\t\t");
269
-        $contentIf = $xCodeFileSetVar->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t . "\t\t");
270
-        $contentIf .= $xCodeFileSetVar->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t . "\t\t");
271
-        $ifelse .= $pCodeFileSetVar->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElse, $t . "\t");
267
+        $ret .= $xCodeFileSetVar->getXcMediaUploader('uploader', $dirname.".'/{$tableName}{$files}'", $moduleDirname, $t);
268
+        $contentElse = $xCodeFileSetVar->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t."\t\t");
269
+        $contentIf = $xCodeFileSetVar->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t."\t\t");
270
+        $contentIf .= $xCodeFileSetVar->getXcRedirectHeader('javascript:history.go(-1)', '', '3', '$errors', true, $t."\t\t");
271
+        $ifelse .= $pCodeFileSetVar->getPhpCodeConditions('!$uploader->upload()', '', '', $contentIf, $contentElse, $t."\t");
272 272
 
273
-        $ret .= $pCodeFileSetVar->getPhpCodeConditions($fetchMedia, '', '', $t . "\t" . $fetchMedia . ";\n", $ifelse, $t);
273
+        $ret .= $pCodeFileSetVar->getPhpCodeConditions($fetchMedia, '', '', $t."\t".$fetchMedia.";\n", $ifelse, $t);
274 274
 
275 275
         return $ret;
276 276
     }
@@ -382,24 +382,24 @@  discard block
 block discarded – undo
382 382
         $phpCodeCaseDelete = Tdmcreate\Files\CreatePhpCode::getInstance();
383 383
         $xCodeCaseDelete = Tdmcreate\Files\CreateXoopsCode::getInstance();
384 384
         $ccFieldId = Tdmcreate\Files\CreateFile::getInstance()->getCamelCase($fieldId, false, true);
385
-        $ret = $xCodeCaseDelete->getXcGet($tableName, $ccFieldId, 'Obj', $tableName . 'Handler');
385
+        $ret = $xCodeCaseDelete->getXcGet($tableName, $ccFieldId, 'Obj', $tableName.'Handler');
386 386
 
387 387
         $reqOk = "_REQUEST['ok']";
388 388
         $isset = $phpCodeCaseDelete->getPhpCodeIsset($reqOk);
389 389
         $xoopsSecurityCheck = $xCodeCaseDelete->getXcSecurityCheck();
390 390
         $xoopsSecurityErrors = $xCodeCaseDelete->getXcSecurityErrors();
391 391
         $implode = $phpCodeCaseDelete->getPhpCodeImplode(', ', $xoopsSecurityErrors);
392
-        $redirectHeaderErrors = $xCodeCaseDelete->getXcRedirectHeader($tableName, '', '3', $implode, true, $t . "\t\t");
392
+        $redirectHeaderErrors = $xCodeCaseDelete->getXcRedirectHeader($tableName, '', '3', $implode, true, $t."\t\t");
393 393
 
394 394
         $delete = $xCodeCaseDelete->getXcDelete($tableName, $tableName, 'Obj', 'Handler');
395
-        $condition = $phpCodeCaseDelete->getPhpCodeConditions('!' . $xoopsSecurityCheck, '', '', $redirectHeaderErrors, false, $t . "\t");
395
+        $condition = $phpCodeCaseDelete->getPhpCodeConditions('!'.$xoopsSecurityCheck, '', '', $redirectHeaderErrors, false, $t."\t");
396 396
 
397
-        $redirectHeaderLanguage = $xCodeCaseDelete->getXcRedirectHeader($tableName, '', '3', "{$language}FORM_DELETE_OK", true, $t . "\t\t");
397
+        $redirectHeaderLanguage = $xCodeCaseDelete->getXcRedirectHeader($tableName, '', '3', "{$language}FORM_DELETE_OK", true, $t."\t\t");
398 398
         $htmlErrors = $xCodeCaseDelete->getXcHtmlErrors($tableName, true);
399
-        $internalElse = $xCodeCaseDelete->getXcTplAssign('error', $htmlErrors, true, $t . "\t\t");
400
-        $condition .= $phpCodeCaseDelete->getPhpCodeConditions($delete, '', '', $redirectHeaderLanguage, $internalElse, $t . "\t");
399
+        $internalElse = $xCodeCaseDelete->getXcTplAssign('error', $htmlErrors, true, $t."\t\t");
400
+        $condition .= $phpCodeCaseDelete->getPhpCodeConditions($delete, '', '', $redirectHeaderLanguage, $internalElse, $t."\t");
401 401
 
402
-        $mainElse = $xCodeCaseDelete->getXcXoopsConfirm($tableName, $language, $fieldId, $fieldMain, 'delete', $t . "\t");
402
+        $mainElse = $xCodeCaseDelete->getXcXoopsConfirm($tableName, $language, $fieldId, $fieldMain, 'delete', $t."\t");
403 403
         $ret .= $phpCodeCaseDelete->getPhpCodeConditions($isset, ' && ', "1 == \${$reqOk}", $condition, $mainElse, $t);
404 404
 
405 405
         return $ret;
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
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
             $fieldName = $fields[$f]->getVar('field_name');
84 84
             $stuFieldName = mb_strtoupper($fieldName);
85 85
             $lang = $hc->getSmartyConst($language, $stuFieldName);
86
-            $th .= $hc->getHtmlTableHead($lang, 'center') . PHP_EOL;
86
+            $th .= $hc->getHtmlTableHead($lang, 'center').PHP_EOL;
87 87
         }
88
-        $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL;
88
+        $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL;
89 89
 
90
-        return $hc->getHtmlTableThead($tr) . PHP_EOL;
90
+        return $hc->getHtmlTableThead($tr).PHP_EOL;
91 91
     }
92 92
 
93 93
     /**
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         $td = '';
108 108
         if (1 == $tableAutoincrement) {
109 109
             $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
110
-            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double) . PHP_EOL;
110
+            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double).PHP_EOL;
111 111
         }
112 112
         $fields = $this->getTableFields($tableMid, $tableId);
113 113
         foreach (array_keys($fields) as $f) {
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                         // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">...
126 126
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
127 127
                         $span = $hc->getHtmlTag('span', [], $double);
128
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span) . PHP_EOL;
128
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span).PHP_EOL;
129 129
                         /*$ret .= <<<EOT
130 130
                     <td class="center"><span style="background-color: #<{\$list.{$rpFieldName}}>;">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>\n
131 131
 EOT;*/
@@ -134,18 +134,18 @@  discard block
 block discarded – undo
134 134
                         $src = $hc->getSmartyNoSimbol('xoModuleIcons32');
135 135
                         $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
136 136
                         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true);
137
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img) . PHP_EOL;
137
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img).PHP_EOL;
138 138
                         break;
139 139
                     case 13:
140
-                        $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
140
+                        $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
141 141
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
142
-                        $img = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName], '', true);
143
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img) . PHP_EOL;
142
+                        $img = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName], '', true);
143
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img).PHP_EOL;
144 144
                         break;
145 145
                     default:
146 146
                         if (0 != $f) {
147 147
                             $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
148
-                            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double) . PHP_EOL;
148
+                            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double).PHP_EOL;
149 149
                         }
150 150
                         break;
151 151
                 }
@@ -155,19 +155,19 @@  discard block
 block discarded – undo
155 155
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
156 156
         $src = $hc->getSmartyNoSimbol('xoModuleIcons32 edit.png');
157 157
         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true);
158
-        $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&amp;{$fieldId}=" . $double, 'title' => $lang], $img) . PHP_EOL;
158
+        $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&amp;{$fieldId}=".$double, 'title' => $lang], $img).PHP_EOL;
159 159
         $lang = $hc->getSmartyConst('', '_DELETE');
160 160
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
161 161
         $src = $hc->getSmartyNoSimbol('xoModuleIcons32 delete.png');
162
-        $img = $hc->getHtmlTag('img', ['src' => $src . $double, 'alt' => $tableName], '', true);
163
-        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&amp;{$fieldId}=" . $double, 'title' => $lang], $img) . PHP_EOL;
164
-        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n" . $anchor) . PHP_EOL;
162
+        $img = $hc->getHtmlTag('img', ['src' => $src.$double, 'alt' => $tableName], '', true);
163
+        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&amp;{$fieldId}=".$double, 'title' => $lang], $img).PHP_EOL;
164
+        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n".$anchor).PHP_EOL;
165 165
         $cycle = $hc->getSmartyNoSimbol('cycle values="odd, even"');
166
-        $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td) . PHP_EOL;
167
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr) . PHP_EOL;
168
-        $tbody = $hc->getHtmlTag('tbody', [], $foreach) . PHP_EOL;
166
+        $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td).PHP_EOL;
167
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr).PHP_EOL;
168
+        $tbody = $hc->getHtmlTag('tbody', [], $foreach).PHP_EOL;
169 169
 
170
-        return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody) . PHP_EOL;
170
+        return $hc->getSmartyConditions($tableName.'_count', '', '', $tbody).PHP_EOL;
171 171
     }
172 172
 
173 173
     /**
@@ -177,10 +177,10 @@  discard block
 block discarded – undo
177 177
     private function getTemplatesBlocksTableTfoot()
178 178
     {
179 179
         $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
180
-        $td = $hc->getHtmlTag('td', [], '&nbsp;') . PHP_EOL;
181
-        $tr = $hc->getHtmlTag('tr', [], $td) . PHP_EOL;
180
+        $td = $hc->getHtmlTag('td', [], '&nbsp;').PHP_EOL;
181
+        $tr = $hc->getHtmlTag('tr', [], $td).PHP_EOL;
182 182
 
183
-        return $hc->getHtmlTag('tfoot', [], $tr) . PHP_EOL;
183
+        return $hc->getHtmlTag('tfoot', [], $tr).PHP_EOL;
184 184
     }
185 185
 
186 186
     /**
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         $tbody .= $this->getTemplatesBlocksTableTfoot();
203 203
         $single = $hc->getSmartySingleVar('table_type');
204 204
 
205
-        return $hc->getHtmlTable($tbody, 'table table-' . $single) . PHP_EOL;
205
+        return $hc->getHtmlTable($tbody, 'table table-'.$single).PHP_EOL;
206 206
     }
207 207
 
208 208
     /**
Please login to merge, or discard this patch.
class/Files/Templates/user/Index.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     {
79 79
         $hc = Tdmcreate\Files\CreateSmartyCode::getInstance();
80 80
 
81
-        return $hc->getSmartyIncludeFile($moduleDirname, 'header') . PHP_EOL;
81
+        return $hc->getSmartyIncludeFile($moduleDirname, 'header').PHP_EOL;
82 82
     }
83 83
 
84 84
     /**
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $table = $this->getTemplatesUserIndexTableThead($tableName, $language);
97 97
         $table .= $this->getTemplatesUserIndexTableTBody($moduleDirname, $tableName, $tableSoleName, $language);
98 98
 
99
-        return $hc->getHtmlTable($table, 'table table-' . $single) . PHP_EOL;
99
+        return $hc->getHtmlTable($table, 'table table-'.$single).PHP_EOL;
100 100
     }
101 101
 
102 102
     /**
@@ -111,10 +111,10 @@  discard block
 block discarded – undo
111 111
         $stuTableName = mb_strtoupper($tableName);
112 112
         $lang = $hc->getSmartyConst($language, $stuTableName);
113 113
         $col = $hc->getSmartySingleVar('numb_col');
114
-        $th = $hc->getHtmlTableHead($lang, '', $col) . PHP_EOL;
115
-        $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL;
114
+        $th = $hc->getHtmlTableHead($lang, '', $col).PHP_EOL;
115
+        $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL;
116 116
 
117
-        return $hc->getHtmlTableThead($tr) . PHP_EOL;
117
+        return $hc->getHtmlTableThead($tr).PHP_EOL;
118 118
     }
119 119
 
120 120
     /**
@@ -130,14 +130,14 @@  discard block
 block discarded – undo
130 130
         $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
131 131
         $type = $hc->getSmartySingleVar('panel_type');
132 132
         $include = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName);
133
-        $div = $hc->getHtmlDiv($include, 'panel panel-' . $type);
134
-        $cont = $hc->getHtmlTableData($div) . PHP_EOL;
135
-        $html = $hc->getHtmlEmpty('</tr><tr>') . PHP_EOL;
136
-        $cont .= $hc->getSmartyConditions($tableSoleName . '.count', ' is div by ', '$divideby', $html) . PHP_EOL;
137
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont) . PHP_EOL;
138
-        $tr = $hc->getHtmlTableRow($foreach) . PHP_EOL;
133
+        $div = $hc->getHtmlDiv($include, 'panel panel-'.$type);
134
+        $cont = $hc->getHtmlTableData($div).PHP_EOL;
135
+        $html = $hc->getHtmlEmpty('</tr><tr>').PHP_EOL;
136
+        $cont .= $hc->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$divideby', $html).PHP_EOL;
137
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont).PHP_EOL;
138
+        $tr = $hc->getHtmlTableRow($foreach).PHP_EOL;
139 139
 
140
-        return $hc->getHtmlTableTbody($tr) . PHP_EOL;
140
+        return $hc->getHtmlTableTbody($tr).PHP_EOL;
141 141
     }
142 142
 
143 143
     /**
@@ -147,10 +147,10 @@  discard block
 block discarded – undo
147 147
     private function getTemplatesUserIndexTableTfoot()
148 148
     {
149 149
         $hc = Tdmcreate\Files\CreateHtmlCode::getInstance();
150
-        $td = $hc->getHtmlTableData('&nbsp;') . PHP_EOL;
151
-        $tr = $hc->getHtmlTableRow($td) . PHP_EOL;
150
+        $td = $hc->getHtmlTableData('&nbsp;').PHP_EOL;
151
+        $tr = $hc->getHtmlTableRow($td).PHP_EOL;
152 152
 
153
-        return $hc->getHtmlTableTfoot($tr) . PHP_EOL;
153
+        return $hc->getHtmlTableTfoot($tr).PHP_EOL;
154 154
     }
155 155
 
156 156
     /**
@@ -251,10 +251,10 @@  discard block
 block discarded – undo
251 251
         $single = $hc->getSmartySingleVar('table_type');
252 252
         $table = $this->getTemplatesUserIndexTableThead($tableName, $language);
253 253
         $table .= $this->getTemplatesUserIndexTableTBody($moduleDirname, $tableName, $tableSoleName, $language);
254
-        $table .= $hc->getHtmlTable($table, 'table table-' . $single) . PHP_EOL;
255
-        $div = $hc->getHtmlDiv($table, 'table-responsive') . PHP_EOL;
254
+        $table .= $hc->getHtmlTable($table, 'table table-'.$single).PHP_EOL;
255
+        $div = $hc->getHtmlDiv($table, 'table-responsive').PHP_EOL;
256 256
 
257
-        return $ret/*$hc->getSmartyConditions($tableName, ' > ', '0', $div, false, true)*/ . PHP_EOL;
257
+        return $ret/*$hc->getSmartyConditions($tableName, ' > ', '0', $div, false, true)*/.PHP_EOL;
258 258
     }
259 259
 
260 260
     /**
Please login to merge, or discard this patch.