Passed
Push — master ( dc1f79...43726e )
by Goffy
02:26
created
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.
class/files/templates/admin/TemplatesAdminFooter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,12 +78,12 @@
 block discarded – undo
78 78
         $language = $this->getLanguage($moduleDirname, 'AM');
79 79
 
80 80
         $singleNoVar = $hc->getSmartyNoSimbol('xoModuleIcons32 xoopsmicrobutton.gif');
81
-        $img = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', true) . PHP_EOL;
82
-        $anchor = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img) . PHP_EOL;
83
-        $content = $hc->getHtmlTag('div', ['class' => 'center'], $anchor) . PHP_EOL;
81
+        $img = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', true).PHP_EOL;
82
+        $anchor = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img).PHP_EOL;
83
+        $content = $hc->getHtmlTag('div', ['class' => 'center'], $anchor).PHP_EOL;
84 84
         $tree = $hc->getHtmlTag('strong', [], $moduleName);
85 85
         $tree .= $hc->getSmartyConst($language, 'MAINTAINEDBY').PHP_EOL;
86
-        $tree .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit ' . $supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName);
86
+        $tree .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit '.$supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName);
87 87
         $content .= $hc->getHtmlTag('div', ['class' => 'center smallsmall italic pad5'], $tree);
88 88
 
89 89
         $this->create($moduleDirname, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
Please login to merge, or discard this patch.
class/files/templates/blocks/TemplatesBlocks.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
             $fieldName    = $fields[$f]->getVar('field_name');
82 82
             $stuFieldName = strtoupper($fieldName);
83 83
             $lang         = $hc->getSmartyConst($language, $stuFieldName);
84
-            $th .= $hc->getHtmlTableHead($lang, 'center') . PHP_EOL;
84
+            $th .= $hc->getHtmlTableHead($lang, 'center').PHP_EOL;
85 85
         }
86
-        $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL;
86
+        $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL;
87 87
 
88
-        return $hc->getHtmlTableThead($tr) . PHP_EOL;
88
+        return $hc->getHtmlTableThead($tr).PHP_EOL;
89 89
     }
90 90
 
91 91
     /**
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $td = '';
106 106
         if (1 == $tableAutoincrement) {
107 107
             $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
108
-            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double) . PHP_EOL;
108
+            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double).PHP_EOL;
109 109
         }
110 110
         $fields = $this->getTableFields($tableMid, $tableId);
111 111
         foreach (array_keys($fields) as $f) {
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                         // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">...
124 124
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
125 125
                         $span   = $hc->getHtmlTag('span', [], $double);
126
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span) . PHP_EOL;
126
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span).PHP_EOL;
127 127
                         /*$ret .= <<<EOT
128 128
                     <td class="center"><span style="background-color: #<{\$list.{$rpFieldName}}>;">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>\n
129 129
 EOT;*/
@@ -132,18 +132,18 @@  discard block
 block discarded – undo
132 132
                         $src = $hc->getSmartyNoSimbol('xoModuleIcons32');
133 133
                         $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
134 134
                         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true);
135
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img) . PHP_EOL;
135
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img).PHP_EOL;
136 136
                         break;
137 137
                     case 13:
138
-                        $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
138
+                        $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
139 139
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
140
-                        $img    = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName], '', true);
141
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img) . PHP_EOL;
140
+                        $img    = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName], '', true);
141
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img).PHP_EOL;
142 142
                         break;
143 143
                     default:
144 144
                         if (0 != $f) {
145 145
                             $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
146
-                            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double) . PHP_EOL;
146
+                            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double).PHP_EOL;
147 147
                         }
148 148
                         break;
149 149
                 }
@@ -153,19 +153,19 @@  discard block
 block discarded – undo
153 153
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
154 154
         $src    = $hc->getSmartyNoSimbol('xoModuleIcons32 edit.png');
155 155
         $img    = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true);
156
-        $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&amp;{$fieldId}=" . $double, 'title' => $lang], $img) . PHP_EOL;
156
+        $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&amp;{$fieldId}=".$double, 'title' => $lang], $img).PHP_EOL;
157 157
         $lang   = $hc->getSmartyConst('', '_DELETE');
158 158
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
159 159
         $src    = $hc->getSmartyNoSimbol('xoModuleIcons32 delete.png');
160
-        $img    = $hc->getHtmlTag('img', ['src' => $src . $double, 'alt' => $tableName], '', true);
161
-        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&amp;{$fieldId}=" . $double, 'title' => $lang], $img) . PHP_EOL;
162
-        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n" . $anchor) . PHP_EOL;
160
+        $img    = $hc->getHtmlTag('img', ['src' => $src.$double, 'alt' => $tableName], '', true);
161
+        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&amp;{$fieldId}=".$double, 'title' => $lang], $img).PHP_EOL;
162
+        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n".$anchor).PHP_EOL;
163 163
         $cycle   = $hc->getSmartyNoSimbol('cycle values="odd, even"');
164
-        $tr      = $hc->getHtmlTag('tr', ['class' => $cycle], $td) . PHP_EOL;
165
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr) . PHP_EOL;
166
-        $tbody   = $hc->getHtmlTag('tbody', [], $foreach) . PHP_EOL;
164
+        $tr      = $hc->getHtmlTag('tr', ['class' => $cycle], $td).PHP_EOL;
165
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr).PHP_EOL;
166
+        $tbody   = $hc->getHtmlTag('tbody', [], $foreach).PHP_EOL;
167 167
 
168
-        return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody) . PHP_EOL;
168
+        return $hc->getSmartyConditions($tableName.'_count', '', '', $tbody).PHP_EOL;
169 169
     }
170 170
 
171 171
     /**
@@ -175,10 +175,10 @@  discard block
 block discarded – undo
175 175
     private function getTemplatesBlocksTableTfoot()
176 176
     {
177 177
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
178
-        $td = $hc->getHtmlTag('td', [], '&nbsp;') . PHP_EOL;
179
-        $tr = $hc->getHtmlTag('tr', [], $td) . PHP_EOL;
178
+        $td = $hc->getHtmlTag('td', [], '&nbsp;').PHP_EOL;
179
+        $tr = $hc->getHtmlTag('tr', [], $td).PHP_EOL;
180 180
 
181
-        return $hc->getHtmlTag('tfoot', [], $tr) . PHP_EOL;
181
+        return $hc->getHtmlTag('tfoot', [], $tr).PHP_EOL;
182 182
     }
183 183
 
184 184
     /**
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         $tbody .= $this->getTemplatesBlocksTableTfoot();
201 201
         $single = $hc->getSmartySingleVar('table_type');
202 202
 
203
-        return $hc->getHtmlTable($tbody, 'table table-' . $single) . PHP_EOL;
203
+        return $hc->getHtmlTable($tbody, 'table table-'.$single).PHP_EOL;
204 204
     }
205 205
 
206 206
     /**
Please login to merge, or discard this patch.