Passed
Push — master ( 32c740...f58b8c )
by Michael
34s queued 14s
created
class/Files/Templates/user/PagesList.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
                 }
103 103
             }
104 104
         }
105
-        $ret     .= $hc->getHtmlDiv($retNumb, 'panel-heading');
105
+        $ret .= $hc->getHtmlDiv($retNumb, 'panel-heading');
106 106
         $retElem = '';
107 107
         foreach (array_keys($fields) as $f) {
108 108
             $fieldElement = $fields[$f]->getVar('field_element');
@@ -115,41 +115,41 @@  discard block
 block discarded – undo
115 115
                             $fieldName   = $fields[$f]->getVar('field_name');
116 116
                             $rpFieldName = $this->getRightString($fieldName);
117 117
                             $doubleVar   = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
118
-                            $retElem     .= $hc->getHtmlSpan($doubleVar, 'col-sm-9 justify', "\t");
118
+                            $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-9 justify', "\t");
119 119
                             break;
120 120
                         case 10:
121 121
                             $fieldName   = $fields[$f]->getVar('field_name');
122 122
                             $rpFieldName = $this->getRightString($fieldName);
123 123
                             $singleVar   = $hc->getSmartySingleVar('xoops_icons32_url');
124 124
                             $doubleVar   = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
125
-                            $img         = $hc->getHtmlImage($singleVar . '/' . $doubleVar, (string)$tableName);
126
-                            $retElem     .= $hc->getHtmlSpan($img, 'col-sm-3', "\t");
125
+                            $img         = $hc->getHtmlImage($singleVar.'/'.$doubleVar, (string)$tableName);
126
+                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3', "\t");
127 127
                             unset($img);
128 128
                             break;
129 129
                         case 13:
130 130
                             $fieldName   = $fields[$f]->getVar('field_name');
131 131
                             $rpFieldName = $this->getRightString($fieldName);
132
-                            $singleVar   = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
132
+                            $singleVar   = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
133 133
                             $doubleVar   = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
134
-                            $img         = $hc->getHtmlImage($singleVar . "/images/{$tableName}/" . $doubleVar, (string)$tableName);
135
-                            $retElem     .= $hc->getHtmlSpan($img, 'col-sm-3',"\t");
134
+                            $img         = $hc->getHtmlImage($singleVar."/images/{$tableName}/".$doubleVar, (string)$tableName);
135
+                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3', "\t");
136 136
                             unset($img);
137 137
                             break;
138 138
                     }
139 139
                 }
140 140
             }
141 141
         }
142
-        $ret     .= $hc->getHtmlDiv($retElem, 'panel-body');
142
+        $ret .= $hc->getHtmlDiv($retElem, 'panel-body');
143 143
         $retFoot = '';
144 144
         foreach (array_keys($fields) as $f) {
145 145
             if (1 == $fields[$f]->getVar('field_user')) {
146 146
                 if (1 == $fields[$f]->getVar('field_tfoot')) {
147 147
                     $fieldName   = $fields[$f]->getVar('field_name');
148 148
                     $rpFieldName = $this->getRightString($fieldName);
149
-                    $langConst   = mb_strtoupper($tableSoleName) . '_' . mb_strtoupper($rpFieldName);
149
+                    $langConst   = mb_strtoupper($tableSoleName).'_'.mb_strtoupper($rpFieldName);
150 150
                     $lang        = $hc->getSmartyConst($language, $langConst);
151 151
                     $doubleVar   = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
152
-                    $retFoot     .= $hc->getHtmlSpan($lang . ': ' . $doubleVar, 'block-pie justify',"\t");
152
+                    $retFoot .= $hc->getHtmlSpan($lang.': '.$doubleVar, 'block-pie justify', "\t");
153 153
                 }
154 154
             }
155 155
         }
Please login to merge, or discard this patch.
class/Files/Templates/user/Broken.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -100,10 +100,10 @@  discard block
 block discarded – undo
100 100
             $stuFieldName = mb_strtoupper($fieldName);
101 101
             if ((1 == $tableAutoincrement) || (1 == $fields[$f]->getVar('field_user'))) {
102 102
                 $const = $hc->getSmartyConst($language, $stuFieldName);
103
-                $th    .= $hc->getHtmlTag('th', ['class' => 'center'], $const, '', "\t\t\t");
103
+                $th .= $hc->getHtmlTag('th', ['class' => 'center'], $const, '', "\t\t\t");
104 104
             }
105 105
         }
106
-        $tr = $hc->getHtmlTableRow($th, 'head',"\t\t");
106
+        $tr = $hc->getHtmlTableRow($th, 'head', "\t\t");
107 107
 
108 108
         return $hc->getHtmlTableThead($tr, 'outer', "\t");
109 109
     }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                 switch ($fieldElement) {
133 133
                     case 9:
134 134
                         $span = $hc->getHtmlSpan("<{\${$moduleDirname}_upload_url}>/images/{$tableName}/<{\${$tableSoleName}.{$rpFieldName}}>", "#<{\${$tableSoleName}.{$rpFieldName}}>");
135
-                        $ret  .= $hc->getHtmlTableData($span, 'center', '', "\t\t\t");
135
+                        $ret .= $hc->getHtmlTableData($span, 'center', '', "\t\t\t");
136 136
                         break;
137 137
                     case 10:
138 138
                         $img = $hc->getHtmlImage("<{xoModuleIcons32}><{\${$tableSoleName}.{$rpFieldName}}>", $tableName);
@@ -140,15 +140,15 @@  discard block
 block discarded – undo
140 140
                         break;
141 141
                     case 13:
142 142
                         $img = $hc->getHtmlImage("<{\${$moduleDirname}_upload_url}>/images/{$tableName}/<{\${$tableSoleName}.{$rpFieldName}}>", $tableName);
143
-                        $ret .= $hc->getHtmlTableData($img, 'center', '', "\t\t\t") ;
143
+                        $ret .= $hc->getHtmlTableData($img, 'center', '', "\t\t\t");
144 144
                         break;
145 145
                     default:
146
-                        $ret .= $hc->getHtmlTableData("<{\${$tableSoleName}.{$rpFieldName}}>", 'center', '', "\t\t\t") ;
146
+                        $ret .= $hc->getHtmlTableData("<{\${$tableSoleName}.{$rpFieldName}}>", 'center', '', "\t\t\t");
147 147
                         break;
148 148
                 }
149 149
             }
150 150
         }
151
-        $row     = $hc->getHtmlTableRow($ret, '<{cycle values="odd, even"}>',"\t\t") ;
151
+        $row     = $hc->getHtmlTableRow($ret, '<{cycle values="odd, even"}>', "\t\t");
152 152
         $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $row, '', '', "\t\t");
153 153
 
154 154
         return $hc->getHtmlTableTbody($foreach, '', "\t");
Please login to merge, or discard this patch.
class/Files/Templates/user/Index.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     {
80 80
         $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
81 81
 
82
-        return $hc->getSmartyIncludeFile($moduleDirname, 'header') . PHP_EOL;
82
+        return $hc->getSmartyIncludeFile($moduleDirname, 'header').PHP_EOL;
83 83
     }
84 84
 
85 85
     /**
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
         $hc     = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
96 96
         $single = $hc->getSmartySingleVar('table_type');
97 97
         $table  = $this->getTemplatesUserIndexTableThead($tableName, $language);
98
-        $table  .= $this->getTemplatesUserIndexTableTBody($moduleDirname, $tableName, $tableSoleName, $language);
98
+        $table .= $this->getTemplatesUserIndexTableTBody($moduleDirname, $tableName, $tableSoleName, $language);
99 99
 
100
-        return $hc->getHtmlTable($table, 'table table-' . $single) . PHP_EOL;
100
+        return $hc->getHtmlTable($table, 'table table-'.$single).PHP_EOL;
101 101
     }
102 102
 
103 103
     /**
@@ -112,10 +112,10 @@  discard block
 block discarded – undo
112 112
         $stuTableName = mb_strtoupper($tableName);
113 113
         $lang         = $hc->getSmartyConst($language, $stuTableName);
114 114
         $col          = $hc->getSmartySingleVar('numb_col');
115
-        $th           = $hc->getHtmlTableHead($lang, '', $col) . PHP_EOL;
116
-        $tr           = $hc->getHtmlTableRow($th, 'head') . PHP_EOL;
115
+        $th           = $hc->getHtmlTableHead($lang, '', $col).PHP_EOL;
116
+        $tr           = $hc->getHtmlTableRow($th, 'head').PHP_EOL;
117 117
 
118
-        return $hc->getHtmlTableThead($tr) . PHP_EOL;
118
+        return $hc->getHtmlTableThead($tr).PHP_EOL;
119 119
     }
120 120
 
121 121
     /**
@@ -131,14 +131,14 @@  discard block
 block discarded – undo
131 131
         $hc      = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
132 132
         $type    = $hc->getSmartySingleVar('panel_type');
133 133
         $include = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName);
134
-        $div     = $hc->getHtmlDiv($include, 'panel panel-' . $type);
135
-        $cont    = $hc->getHtmlTableData($div) . PHP_EOL;
136
-        $html    = $hc->getHtmlEmpty('</tr><tr>') . PHP_EOL;
137
-        $cont    .= $hc->getSmartyConditions($tableSoleName . '.count', ' is div by ', '$divideby', $html) . PHP_EOL;
138
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont) . PHP_EOL;
139
-        $tr      = $hc->getHtmlTableRow($foreach) . PHP_EOL;
134
+        $div     = $hc->getHtmlDiv($include, 'panel panel-'.$type);
135
+        $cont    = $hc->getHtmlTableData($div).PHP_EOL;
136
+        $html    = $hc->getHtmlEmpty('</tr><tr>').PHP_EOL;
137
+        $cont .= $hc->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$divideby', $html).PHP_EOL;
138
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont).PHP_EOL;
139
+        $tr      = $hc->getHtmlTableRow($foreach).PHP_EOL;
140 140
 
141
-        return $hc->getHtmlTableTbody($tr) . PHP_EOL;
141
+        return $hc->getHtmlTableTbody($tr).PHP_EOL;
142 142
     }
143 143
 
144 144
     /**
@@ -148,10 +148,10 @@  discard block
 block discarded – undo
148 148
     private function getTemplatesUserIndexTableTfoot()
149 149
     {
150 150
         $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
151
-        $td = $hc->getHtmlTableData('&nbsp;') . PHP_EOL;
152
-        $tr = $hc->getHtmlTableRow($td) . PHP_EOL;
151
+        $td = $hc->getHtmlTableData('&nbsp;').PHP_EOL;
152
+        $tr = $hc->getHtmlTableRow($td).PHP_EOL;
153 153
 
154
-        return $hc->getHtmlTableTfoot($tr) . PHP_EOL;
154
+        return $hc->getHtmlTableTfoot($tr).PHP_EOL;
155 155
     }
156 156
 
157 157
     /**
@@ -179,11 +179,11 @@  discard block
 block discarded – undo
179 179
                 <ul class="menu text-center">
180 180
                     <li><a href="<{\${$moduleDirname}_url}>"><{\$smarty.const.{$language}INDEX}></a></li>\n
181 181
 EOT;
182
-        $tables        = $this->getTableTables($module->getVar('mod_id'), 'table_order');
182
+        $tables = $this->getTableTables($module->getVar('mod_id'), 'table_order');
183 183
         foreach (array_keys($tables) as $i) {
184 184
             $tableName    = $tables[$i]->getVar('table_name');
185 185
             $stuTableName = mb_strtoupper($tableName);
186
-            $ret          .= <<<EOT
186
+            $ret .= <<<EOT
187 187
                     <li><a href="<{\${$moduleDirname}_url}>/{$tableName}.php"><{\$smarty.const.{$language}{$stuTableName}}></a></li>\n
188 188
 EOT;
189 189
         }
@@ -252,10 +252,10 @@  discard block
 block discarded – undo
252 252
         $single       = $hc->getSmartySingleVar('table_type');
253 253
         $table        = $this->getTemplatesUserIndexTableThead($tableName, $language);
254 254
         $table        .= $this->getTemplatesUserIndexTableTBody($moduleDirname, $tableName, $tableSoleName, $language);
255
-        $table        .= $hc->getHtmlTable($table, 'table table-' . $single) . PHP_EOL;
256
-        $div          = $hc->getHtmlDiv($table, 'table-responsive') . PHP_EOL;
255
+        $table        .= $hc->getHtmlTable($table, 'table table-'.$single).PHP_EOL;
256
+        $div          = $hc->getHtmlDiv($table, 'table-responsive').PHP_EOL;
257 257
 
258
-        return $ret/*$hc->getSmartyConditions($tableName, ' > ', '0', $div, false, true)*/ . PHP_EOL;
258
+        return $ret/*$hc->getSmartyConditions($tableName, ' > ', '0', $div, false, true)*/.PHP_EOL;
259 259
     }
260 260
 
261 261
     /**
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
         $moduleDirname = $module->getVar('mod_dirname');
320 320
         $language      = $this->getLanguage($moduleDirname, 'MA');
321 321
         $content       = $this->getTemplateUserIndexHeader($moduleDirname);
322
-        $content       .= $this->getTemplatesUserIndexBodyDefault($module, $table, $language);
322
+        $content .= $this->getTemplatesUserIndexBodyDefault($module, $table, $language);
323 323
         foreach (array_keys($tables) as $t) {
324 324
             $tableName       = $tables[$t]->getVar('table_name');
325 325
             $tableSoleName   = $tables[$t]->getVar('table_solename');
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
                 $content .= $this->getTemplateUserIndexTable($moduleDirname, $tableName, $tableSoleName, $language);
334 334
             }
335 335
         }
336
-        $content  .= $this->getTemplateUserIndexFooter($moduleDirname);
336
+        $content .= $this->getTemplateUserIndexFooter($moduleDirname);
337 337
         $tdmcfile = Tdmcreate\Files\CreateFile::getInstance();
338 338
         $tdmcfile->create($moduleDirname, 'templates', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
339 339
 
Please login to merge, or discard this patch.
class/Files/Templates/user/Pages.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
79 79
 
80
-        return $hc->getSmartyIncludeFile($moduleDirname, 'header', '','','',"\n\n");
80
+        return $hc->getSmartyIncludeFile($moduleDirname, 'header', '', '', '', "\n\n");
81 81
     }
82 82
 
83 83
     /**
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $tbody  .= $this->getTemplatesUserPagesTableTfoot();
97 97
         $single = $hc->getSmartySingleVar('table_type');
98 98
 
99
-        return $hc->getHtmlTable($tbody, 'table table-' . $single, "\t");
99
+        return $hc->getHtmlTable($tbody, 'table table-'.$single, "\t");
100 100
     }
101 101
 
102 102
     /**
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $hc           = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
111 111
         $stuTableName = mb_strtoupper($tableName);
112 112
         $single       = $hc->getSmartySingleVar('divideby');
113
-        $lang         = $hc->getSmartyConst($language, $stuTableName . '_TITLE');
113
+        $lang         = $hc->getSmartyConst($language, $stuTableName.'_TITLE');
114 114
         $th           = $hc->getHtmlTableHead($lang, '', $single, "\t\t\t\t");
115 115
         $tr           = $hc->getHtmlTableRow($th, 'head', "\t\t\t");
116 116
 
@@ -130,14 +130,14 @@  discard block
 block discarded – undo
130 130
         $hc      = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
131 131
         $single  = $hc->getSmartySingleVar('panel_type');
132 132
         $include = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName, "\t\t\t\t\t\t", "\n");
133
-        $div     = $hc->getHtmlDiv($include, 'panel panel-' . $single, "\t\t\t\t\t", "\n");
133
+        $div     = $hc->getHtmlDiv($include, 'panel panel-'.$single, "\t\t\t\t\t", "\n");
134 134
         $cont    = $hc->getHtmlTableData($div, '', '', "\t\t\t\t", "\n", true);
135 135
         $html    = $hc->getHtmlEmpty('</tr><tr>', "\t\t\t\t\t", "\n");
136
-        $cont    .= $hc->getSmartyConditions($tableSoleName . '.count', ' is div by ', '$divideby', $html, '', '', '',"\t\t\t\t");
137
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont,'','',"\t\t\t\t");
138
-        $tr      = $hc->getHtmlTableRow($foreach,'',"\t\t\t");
136
+        $cont .= $hc->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$divideby', $html, '', '', '', "\t\t\t\t");
137
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont, '', '', "\t\t\t\t");
138
+        $tr      = $hc->getHtmlTableRow($foreach, '', "\t\t\t");
139 139
 
140
-        return $hc->getHtmlTableTbody($tr,'',"\t\t");
140
+        return $hc->getHtmlTableTbody($tr, '', "\t\t");
141 141
     }
142 142
 
143 143
     /**
Please login to merge, or discard this patch.
class/Files/Templates/Admin/TemplatesAdminPages.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -94,23 +94,23 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $hc         = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
96 96
         $th         = '';
97
-        $langHeadId = mb_strtoupper($tableSoleName) . '_ID';
97
+        $langHeadId = mb_strtoupper($tableSoleName).'_ID';
98 98
         if (1 == $tableAutoincrement) {
99 99
             $lang = $hc->getSmartyConst($language, $langHeadId);
100
-            $th   .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t");
100
+            $th .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t");
101 101
         }
102 102
         foreach (array_keys($fields) as $f) {
103 103
             $fieldName     = $fields[$f]->getVar('field_name');
104 104
             $rpFieldName   = $this->getRightString($fieldName);
105
-            $langFieldName = mb_strtoupper($tableSoleName) . '_' . mb_strtoupper($rpFieldName);
105
+            $langFieldName = mb_strtoupper($tableSoleName).'_'.mb_strtoupper($rpFieldName);
106 106
             if (1 == $fields[$f]->getVar('field_inlist')) {
107 107
                 $lang = $hc->getSmartyConst($language, $langFieldName);
108
-                $th   .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t");
108
+                $th .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, "\t\t\t\t");
109 109
             }
110 110
         }
111 111
 
112 112
         $lang = $hc->getSmartyConst($language, 'FORM_ACTION');
113
-        $th   .= $hc->getHtmlTag('th', ['class' => 'center width5'], $lang, false, "\t\t\t\t");
113
+        $th .= $hc->getHtmlTag('th', ['class' => 'center width5'], $lang, false, "\t\t\t\t");
114 114
         //$tr   = $hc->getHtmlTag('tr', ['class' => 'head'], $th, false, "\t\t\t");
115 115
         $tr   = $hc->getHtmlTableRow($th, 'head', "\t\t\t");
116 116
         //$ret  = $hc->getHtmlTag('thead', [], $tr, false, "\t\t");
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         if (1 == $tableAutoincrement) {
137 137
             $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
138 138
             //$td     .= $hc->getHtmlTableData($double, 'center');
139
-            $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t\t");
139
+            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t\t");
140 140
         }
141 141
         foreach (array_keys($fields) as $f) {
142 142
             $fieldName    = $fields[$f]->getVar('field_name');
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                         // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">...
154 154
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
155 155
                         $span   = $hc->getHtmlTag('span', [], $double);
156
-                        $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $span, false, "\t\t\t\t");
156
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span, false, "\t\t\t\t");
157 157
                         /*$ret .= <<<EOT
158 158
                     <td class="center"><span style="background-color: #<{\$list.{$rpFieldName}}>;">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>\n
159 159
 EOT;*/
@@ -165,15 +165,15 @@  discard block
 block discarded – undo
165 165
                         $td  .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t\t");
166 166
                         break;
167 167
                     case 13:
168
-                        $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
168
+                        $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
169 169
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
170
-                        $img    = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, '', '');
171
-                        $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t\t");
170
+                        $img    = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, '', '');
171
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t\t");
172 172
                         break;
173 173
                     default:
174 174
                         if (0 != $f) {
175 175
                             $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
176
-                            $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t\t");
176
+                            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t\t");
177 177
                         }
178 178
                         break;
179 179
                 }
@@ -182,20 +182,20 @@  discard block
 block discarded – undo
182 182
         $lang    = $hc->getSmartyConst('', '_EDIT');
183 183
         $double  = $hc->getSmartyDoubleVar($tableSoleName, 'id');
184 184
         $src     = $hc->getSmartyNoSimbol('xoModuleIcons16 edit.png');
185
-        $img     = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true,'', '');
186
-        $anchor  = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&amp;{$fieldId}=" . $double, 'title' => $lang], $img, false, "\t\t\t\t\t");
185
+        $img     = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', '');
186
+        $anchor  = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&amp;{$fieldId}=".$double, 'title' => $lang], $img, false, "\t\t\t\t\t");
187 187
         $lang    = $hc->getSmartyConst('', '_DELETE');
188 188
         $double  = $hc->getSmartyDoubleVar($tableSoleName, 'id');
189 189
         $src     = $hc->getSmartyNoSimbol('xoModuleIcons16 delete.png');
190 190
         $img     = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', '');
191
-        $anchor  .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&amp;{$fieldId}=" . $double, 'title' => $lang], $img, false, "\t\t\t\t\t");
192
-        $td      .= $hc->getHtmlTag('td', ['class' => 'center  width5'], "\n" . $anchor . "\t\t\t\t", false, "\t\t\t\t");
191
+        $anchor  .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&amp;{$fieldId}=".$double, 'title' => $lang], $img, false, "\t\t\t\t\t");
192
+        $td      .= $hc->getHtmlTag('td', ['class' => 'center  width5'], "\n".$anchor."\t\t\t\t", false, "\t\t\t\t");
193 193
         $cycle   = $hc->getSmartyNoSimbol('cycle values=\'odd, even\'');
194 194
         $tr      = $hc->getHtmlTableRow($td, $cycle, "\t\t\t");
195
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr, '','', "\t\t\t");
196
-        $tbody   = $hc->getHtmlTableTbody($foreach,'' , "\t\t");
195
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr, '', '', "\t\t\t");
196
+        $tbody   = $hc->getHtmlTableTbody($foreach, '', "\t\t");
197 197
 
198
-        return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody, '', false, false, "\t\t");
198
+        return $hc->getSmartyConditions($tableName.'_count', '', '', $tbody, '', false, false, "\t\t");
199 199
     }
200 200
 
201 201
     /**
@@ -235,8 +235,8 @@  discard block
 block discarded – undo
235 235
         $single    = $hc->getSmartySingleVar('pagenav');
236 236
         $div       = $hc->getHtmlTag('div', ['class' => 'xo-pagenav floatright'], $single, false, "\t\t");
237 237
         $div       .= $hc->getHtmlTag('div', ['class' => 'clear spacer'], '', false, "\t\t", "\n");
238
-        $htmlTable .= $hc->getSmartyConditions('pagenav', '', '', $div, '', '', '', "\t" );
239
-        $ifList    = $hc->getSmartyConditions($tableName . '_list', '', '', $htmlTable);
238
+        $htmlTable .= $hc->getSmartyConditions('pagenav', '', '', $div, '', '', '', "\t");
239
+        $ifList    = $hc->getSmartyConditions($tableName.'_list', '', '', $htmlTable);
240 240
         $single    = $hc->getSmartySingleVar('form', "\t", "\n");
241 241
         $divComm   = $hc->getHtmlComment('Display navigation');
242 242
         //$divComm .= $hc->getHtmlTag('div', array('class' => 'errorMsg'), $single);
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         $strong = $hc->getHtmlTag('strong', [], $single, false, '', '');
246 246
         $div    = $hc->getHtmlTag('div', ['class' => 'errorMsg'], $strong, false, "\t", "\n");
247 247
         $ifList .= $hc->getSmartyConditions('error', '', '', $div);
248
-        $ifList .= $hc->getHtmlEmpty('', '', "\n");;
248
+        $ifList .= $hc->getHtmlEmpty('', '', "\n"); ;
249 249
 
250 250
         return $ifList;
251 251
     }
Please login to merge, or discard this patch.
class/Files/Templates/Admin/TemplatesAdminHeader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,10 +78,10 @@
 block discarded – undo
78 78
         $moduleDirname = $module->getVar('mod_dirname');
79 79
 
80 80
         $navigation = $hc->getSmartySingleVar('navigation');
81
-        $due        = $hc->getHtmlSpan($navigation, 'left', "\t") ;
81
+        $due        = $hc->getHtmlSpan($navigation, 'left', "\t");
82 82
         $buttons    = $hc->getSmartySingleVar('buttons');
83 83
         $right      = $hc->getHtmlSpan($buttons, 'left', "\t\t", "\n");
84
-        $due        .= $hc->getSmartyConditions('buttons', '', '', $right, '', '', '', "\t", "\n");
84
+        $due .= $hc->getSmartyConditions('buttons', '', '', $right, '', '', '', "\t", "\n");
85 85
         $content    = $hc->getHtmlDiv($due, 'top');
86 86
 
87 87
         $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/Admin/TemplatesAdminFooter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -80,13 +80,13 @@
 block discarded – undo
80 80
         $supportName   = $module->getVar('mod_support_name');
81 81
         $language      = $this->getLanguage($moduleDirname, 'AM');
82 82
         $singleNoVar = $hc->getSmartyNoSimbol('xoModuleIcons32 xoopsmicrobutton.gif');
83
-        $img         = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', true, '','');
84
-        $anchor      = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img) ;
85
-        $content     = $hc->getHtmlTag('div', ['class' => 'center'], "\n\t" . $anchor);
83
+        $img         = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', true, '', '');
84
+        $anchor      = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img);
85
+        $content     = $hc->getHtmlTag('div', ['class' => 'center'], "\n\t".$anchor);
86 86
         $tree        = $hc->getHtmlTag('strong', [], $moduleName, false, '', '');
87 87
         $tree        .= $hc->getSmartyConst($language, 'MAINTAINEDBY');
88
-        $tree        .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit ' . $supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName);
89
-        $content     .= $hc->getHtmlTag('div', ['class' => 'center smallsmall italic pad5'], "\n\t" . $tree);
88
+        $tree        .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit '.$supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName);
89
+        $content     .= $hc->getHtmlTag('div', ['class' => 'center smallsmall italic pad5'], "\n\t".$tree);
90 90
 
91 91
         $this->create($moduleDirname, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED);
92 92
 
Please login to merge, or discard this patch.
class/Files/Templates/Blocks/TemplatesBlocks.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             $fieldName    = $fields[$f]->getVar('field_name');
85 85
             $stuFieldName = mb_strtoupper($fieldName);
86 86
             $lang         = $hc->getSmartyConst($language, $stuFieldName);
87
-            $th           .= $hc->getHtmlTableHead($lang, 'center', '', "\t\t\t");
87
+            $th .= $hc->getHtmlTableHead($lang, 'center', '', "\t\t\t");
88 88
         }
89 89
         $tr = $hc->getHtmlTableRow($th, 'head', "\t\t");
90 90
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $td = '';
109 109
         if (1 == $tableAutoincrement) {
110 110
             $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
111
-            $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $double);
111
+            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double);
112 112
         }
113 113
         $fields = $this->getTableFields($tableMid, $tableId);
114 114
         foreach (array_keys($fields) as $f) {
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                         // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">...
127 127
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
128 128
                         $span   = $hc->getHtmlTag('span', [], $double);
129
-                        $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $span, false, "\t\t\t");
129
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span, false, "\t\t\t");
130 130
                         /*$ret .= <<<EOT
131 131
                     <td class="center"><span style="background-color: #<{\$list.{$rpFieldName}}>;">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>\n
132 132
 EOT;*/
@@ -134,19 +134,19 @@  discard block
 block discarded – undo
134 134
                     case 10:
135 135
                         $src = $hc->getSmartyNoSimbol('xoModuleIcons32');
136 136
                         $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
137
-                        $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true,'','');
137
+                        $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', '');
138 138
                         $td  .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t");
139 139
                         break;
140 140
                     case 13:
141
-                        $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
141
+                        $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
142 142
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
143
-                        $img    = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName], '', true, '', '');
144
-                        $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t");
143
+                        $img    = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName], '', true, '', '');
144
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, "\t\t\t");
145 145
                         break;
146 146
                     default:
147 147
                         if (0 != $f) {
148 148
                             $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
149
-                            $td     .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t");
149
+                            $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double, false, "\t\t\t");
150 150
                         }
151 151
                         break;
152 152
                 }
@@ -156,18 +156,18 @@  discard block
 block discarded – undo
156 156
         $double  = $hc->getSmartyDoubleVar($tableSoleName, 'id');
157 157
         $src     = $hc->getSmartyNoSimbol('xoModuleIcons32 edit.png');
158 158
         $img     = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, '', '');
159
-        $anchor  = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&amp;{$fieldId}=" . $double, 'title' => $lang], $img, false, "\t\t\t\t");
159
+        $anchor  = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&amp;{$fieldId}=".$double, 'title' => $lang], $img, false, "\t\t\t\t");
160 160
         $lang    = $hc->getSmartyConst('', '_DELETE');
161 161
         $double  = $hc->getSmartyDoubleVar($tableSoleName, 'id');
162 162
         $src     = $hc->getSmartyNoSimbol('xoModuleIcons32 delete.png');
163
-        $img     = $hc->getHtmlTag('img', ['src' => $src . $double, 'alt' => $tableName], '', true, '', '');
164
-        $anchor  .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&amp;{$fieldId}=" . $double, 'title' => $lang], $img, false, "\t\t\t\t");
165
-        $td      .= $hc->getHtmlTag('td', ['class' => 'center'], "\n" . $anchor . "\t\t\t", false, "\t\t\t");
163
+        $img     = $hc->getHtmlTag('img', ['src' => $src.$double, 'alt' => $tableName], '', true, '', '');
164
+        $anchor  .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&amp;{$fieldId}=".$double, 'title' => $lang], $img, false, "\t\t\t\t");
165
+        $td      .= $hc->getHtmlTag('td', ['class' => 'center'], "\n".$anchor."\t\t\t", false, "\t\t\t");
166 166
         $cycle   = $hc->getSmartyNoSimbol('cycle values="odd, even"');
167
-        $tr      = $hc->getHtmlTag('tr', ['class' => $cycle], $td. "\t\t", false, "\t\t");
167
+        $tr      = $hc->getHtmlTag('tr', ['class' => $cycle], $td."\t\t", false, "\t\t");
168 168
         //$foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr) . PHP_EOL;
169
-        $foreach = $hc->getSmartyForeach($tableSoleName, 'block', $tr, '','', "\t\t");
170
-        $tbody   = $hc->getHtmlTableTbody($foreach,'' , "\t");
169
+        $foreach = $hc->getSmartyForeach($tableSoleName, 'block', $tr, '', '', "\t\t");
170
+        $tbody   = $hc->getHtmlTableTbody($foreach, '', "\t");
171 171
 
172 172
         //return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody) . PHP_EOL;
173 173
         return $hc->getSmartyConditions("block", '', '', $tbody, false, true, true, "\t");
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         $tbody  .= $this->getTemplatesBlocksTableTfoot();
206 206
         $single = $hc->getSmartySingleVar('table_type');
207 207
 
208
-        return $hc->getHtmlTable($tbody, 'table table-' . $single);
208
+        return $hc->getHtmlTable($tbody, 'table table-'.$single);
209 209
     }
210 210
 
211 211
     /**
Please login to merge, or discard this patch.
class/Files/CreateHtmlSmartyCodes.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $str = '';
93 93
         foreach ($attributes as $name => $value) {
94 94
             if ('_' !== $name) {
95
-                $str .= ' ' . $name . '="' . $value . '"';
95
+                $str .= ' '.$name.'="'.$value.'"';
96 96
             }
97 97
         }
98 98
 
@@ -177,11 +177,11 @@  discard block
 block discarded – undo
177 177
         $rDivClass = ('' != $divClass) ? " class='{$divClass}'" : '';
178 178
 
179 179
         if ($split) {
180
-            $ret       = "{$t}<div{$rDivClass}>{$n}";
180
+            $ret = "{$t}<div{$rDivClass}>{$n}";
181 181
             $ret       .= "{$content}";
182 182
             $ret       .= "{$t}</div>{$n}";
183 183
         } else {
184
-            $ret       = "{$t}<div{$rDivClass}>{$content}</div>{$n}";
184
+            $ret = "{$t}<div{$rDivClass}>{$content}</div>{$n}";
185 185
         }
186 186
 
187 187
         return $ret;
@@ -307,15 +307,15 @@  discard block
 block discarded – undo
307 307
      * @param bool $split
308 308
      * @return string
309 309
      */
310
-    public function getHtmlLi($content = '', $liClass = '', $t = '', $n = "\n",  $split = false)
310
+    public function getHtmlLi($content = '', $liClass = '', $t = '', $n = "\n", $split = false)
311 311
     {
312 312
         $rLiClass = ('' != $liClass) ? " class='{$liClass}'" : '';
313 313
         if ($split) {
314
-            $ret       = "{$t}<li{$rLiClass}>{$n}";
314
+            $ret = "{$t}<li{$rLiClass}>{$n}";
315 315
             $ret       .= "{$content}";
316 316
             $ret       .= "{$t}</li>{$n}";
317 317
         } else {
318
-            $ret       = "{$t}<li{$rLiClass}>{$content}</li>{$n}";
318
+            $ret = "{$t}<li{$rLiClass}>{$content}</li>{$n}";
319 319
         }
320 320
 
321 321
         return $ret;
@@ -447,11 +447,11 @@  discard block
 block discarded – undo
447 447
     {
448 448
         $rTfootClass = ('' != $tfootClass) ? " class='{$tfootClass}'" : '';
449 449
         if ($split) {
450
-            $ret         = "{$t}<tfoot{$rTfootClass}>{$n}";
450
+            $ret = "{$t}<tfoot{$rTfootClass}>{$n}";
451 451
             $ret         .= "{$content}";
452 452
             $ret         .= "{$t}</tfoot>{$n}";
453 453
         } else {
454
-            $ret         = "{$t}<tfoot{$rTfootClass}>{$content}</tfoot>{$n}";
454
+            $ret = "{$t}<tfoot{$rTfootClass}>{$content}</tfoot>{$n}";
455 455
         }
456 456
 
457 457
         return $ret;
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
         $rThClass = ('' != $thClass) ? " class='{$thClass}'" : '';
493 493
         $colspan  = ('' != $colspan) ? " colspan='{$colspan}'" : '';
494 494
         if ($split) {
495
-            $ret      = "{$t}<th{$colspan}{$rThClass}>{$n}";
495
+            $ret = "{$t}<th{$colspan}{$rThClass}>{$n}";
496 496
             $ret      .= "{$content}";
497 497
             $ret      .= "{$t}</th>{$n}";
498 498
         } else {
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
         $rTdClass = ('' != $tdClass) ? " class='{$tdClass}'" : '';
518 518
         $colspan  = ('' != $colspan) ? " colspan='{$colspan}'" : '';
519 519
         if ($split) {
520
-            $ret      = "{$t}<td{$colspan}{$rTdClass}>{$n}";
520
+            $ret = "{$t}<td{$colspan}{$rTdClass}>{$n}";
521 521
             $ret      .= "{$content}";
522 522
             $ret      .= "{$t}</td>{$n}";
523 523
         } else {
Please login to merge, or discard this patch.