Passed
Pull Request — master (#144)
by Michael
03:10
created
class/Files/Templates/user/CategoriesList.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -247,35 +247,35 @@
 block discarded – undo
247 247
                         case 2:
248 248
                             $rpFieldName = $this->getRightString($fieldName);
249 249
                             $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
250
-                            $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-2') . PHP_EOL;
250
+                            $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-2').PHP_EOL;
251 251
                             break;
252 252
                         case 3:
253 253
                         case 4:
254 254
                             $rpFieldName = $this->getRightString($fieldName);
255 255
                             $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
256
-                            $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-3 justify') . PHP_EOL;
256
+                            $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-3 justify').PHP_EOL;
257 257
                             break;
258 258
                         case 10:
259 259
                             $rpFieldName = $this->getRightString($fieldName);
260 260
                             $singleVar = $hc->getSmartySingleVar('xoops_icons32_url');
261 261
                             $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
262
-                            $img = $hc->getHtmlImage($singleVar . '/' . $doubleVar, (string)$tableName);
263
-                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3') . PHP_EOL;
262
+                            $img = $hc->getHtmlImage($singleVar.'/'.$doubleVar, (string)$tableName);
263
+                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3').PHP_EOL;
264 264
                             unset($img);
265 265
                             break;
266 266
                         case 13:
267 267
                             $rpFieldName = $this->getRightString($fieldName);
268
-                            $singleVar = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
268
+                            $singleVar = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
269 269
                             $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
270
-                            $img = $hc->getHtmlImage($singleVar . "/images/{$tableName}/" . $doubleVar, (string)$tableName);
271
-                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3') . PHP_EOL;
270
+                            $img = $hc->getHtmlImage($singleVar."/images/{$tableName}/".$doubleVar, (string)$tableName);
271
+                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3').PHP_EOL;
272 272
                             unset($img);
273 273
                             break;
274 274
                     }
275 275
                 }
276 276
             }
277 277
         }
278
-        $ret .= $hc->getHtmlDiv($retElem, 'panel-body') . PHP_EOL;
278
+        $ret .= $hc->getHtmlDiv($retElem, 'panel-body').PHP_EOL;
279 279
 
280 280
         return $ret;
281 281
     }
Please login to merge, or discard this patch.
class/Files/Templates/user/Pages.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
78 78
 
79
-        return $hc->getSmartyIncludeFile($moduleDirname, 'header') . PHP_EOL;
79
+        return $hc->getSmartyIncludeFile($moduleDirname, 'header').PHP_EOL;
80 80
     }
81 81
 
82 82
     /**
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         $tbody .= $this->getTemplatesUserPagesTableTfoot();
96 96
         $single = $hc->getSmartySingleVar('table_type');
97 97
 
98
-        return $hc->getHtmlTable($tbody, 'table table-' . $single) . PHP_EOL;
98
+        return $hc->getHtmlTable($tbody, 'table table-'.$single).PHP_EOL;
99 99
     }
100 100
 
101 101
     /**
@@ -109,11 +109,11 @@  discard block
 block discarded – undo
109 109
         $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
110 110
         $stuTableName = mb_strtoupper($tableName);
111 111
         $single = $hc->getSmartySingleVar('divideby');
112
-        $lang = $hc->getSmartyConst($language, $stuTableName . '_TITLE');
113
-        $th = $hc->getHtmlTableHead($lang, '', $single) . PHP_EOL;
114
-        $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL;
112
+        $lang = $hc->getSmartyConst($language, $stuTableName.'_TITLE');
113
+        $th = $hc->getHtmlTableHead($lang, '', $single).PHP_EOL;
114
+        $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL;
115 115
 
116
-        return $hc->getHtmlTableThead($tr) . PHP_EOL;
116
+        return $hc->getHtmlTableThead($tr).PHP_EOL;
117 117
     }
118 118
 
119 119
     /**
@@ -129,14 +129,14 @@  discard block
 block discarded – undo
129 129
         $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
130 130
         $single = $hc->getSmartySingleVar('panel_type');
131 131
         $include = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName);
132
-        $div = $hc->getHtmlDiv($include, 'panel panel-' . $single);
133
-        $cont = $hc->getHtmlTableData($div) . PHP_EOL;
134
-        $html = $hc->getHtmlEmpty('</tr><tr>') . PHP_EOL;
135
-        $cont .= $hc->getSmartyConditions($tableSoleName . '.count', ' is div by ', '$divideby', $html) . PHP_EOL;
136
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont) . PHP_EOL;
137
-        $tr = $hc->getHtmlTableRow($foreach) . PHP_EOL;
138
-
139
-        return $hc->getHtmlTableTbody($tr) . PHP_EOL;
132
+        $div = $hc->getHtmlDiv($include, 'panel panel-'.$single);
133
+        $cont = $hc->getHtmlTableData($div).PHP_EOL;
134
+        $html = $hc->getHtmlEmpty('</tr><tr>').PHP_EOL;
135
+        $cont .= $hc->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$divideby', $html).PHP_EOL;
136
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont).PHP_EOL;
137
+        $tr = $hc->getHtmlTableRow($foreach).PHP_EOL;
138
+
139
+        return $hc->getHtmlTableTbody($tr).PHP_EOL;
140 140
     }
141 141
 
142 142
     /**
@@ -147,10 +147,10 @@  discard block
 block discarded – undo
147 147
     private function getTemplatesUserPagesTableTfoot()
148 148
     {
149 149
         $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::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
     /**
@@ -164,10 +164,10 @@  discard block
 block discarded – undo
164 164
     private function getTemplatesUserPages($moduleDirname, $tableName, $tableSoleName, $language)
165 165
     {
166 166
         $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
167
-        $table = $this->getTemplatesUserPagesTable($moduleDirname, $tableName, $tableSoleName, $language) . PHP_EOL;
168
-        $div = $hc->getHtmlDiv($table, 'table-responsive') . PHP_EOL;
167
+        $table = $this->getTemplatesUserPagesTable($moduleDirname, $tableName, $tableSoleName, $language).PHP_EOL;
168
+        $div = $hc->getHtmlDiv($table, 'table-responsive').PHP_EOL;
169 169
 
170
-        return $hc->getSmartyConditions($tableName, ' > ', '0', $div, false, true, true) . PHP_EOL;
170
+        return $hc->getSmartyConditions($tableName, ' > ', '0', $div, false, true, true).PHP_EOL;
171 171
     }
172 172
 
173 173
     /**
Please login to merge, or discard this patch.
class/Files/Templates/user/PagesList.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                 }
102 102
             }
103 103
         }
104
-        $ret .= $hc->getHtmlDiv($retNumb, 'panel-heading') . PHP_EOL;
104
+        $ret .= $hc->getHtmlDiv($retNumb, 'panel-heading').PHP_EOL;
105 105
         $retElem = '';
106 106
         foreach (array_keys($fields) as $f) {
107 107
             $fieldElement = $fields[$f]->getVar('field_element');
@@ -114,45 +114,45 @@  discard block
 block discarded – undo
114 114
                             $fieldName = $fields[$f]->getVar('field_name');
115 115
                             $rpFieldName = $this->getRightString($fieldName);
116 116
                             $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
117
-                            $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-9 justify') . PHP_EOL;
117
+                            $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-9 justify').PHP_EOL;
118 118
                             break;
119 119
                         case 10:
120 120
                             $fieldName = $fields[$f]->getVar('field_name');
121 121
                             $rpFieldName = $this->getRightString($fieldName);
122 122
                             $singleVar = $hc->getSmartySingleVar('xoops_icons32_url');
123 123
                             $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
124
-                            $img = $hc->getHtmlImage($singleVar . '/' . $doubleVar, (string)$tableName);
125
-                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3') . PHP_EOL;
124
+                            $img = $hc->getHtmlImage($singleVar.'/'.$doubleVar, (string)$tableName);
125
+                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3').PHP_EOL;
126 126
                             unset($img);
127 127
                             break;
128 128
                         case 13:
129 129
                             $fieldName = $fields[$f]->getVar('field_name');
130 130
                             $rpFieldName = $this->getRightString($fieldName);
131
-                            $singleVar = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
131
+                            $singleVar = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
132 132
                             $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
133
-                            $img = $hc->getHtmlImage($singleVar . "/images/{$tableName}/" . $doubleVar, (string)$tableName);
134
-                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3') . PHP_EOL;
133
+                            $img = $hc->getHtmlImage($singleVar."/images/{$tableName}/".$doubleVar, (string)$tableName);
134
+                            $retElem .= $hc->getHtmlSpan($img, 'col-sm-3').PHP_EOL;
135 135
                             unset($img);
136 136
                             break;
137 137
                     }
138 138
                 }
139 139
             }
140 140
         }
141
-        $ret .= $hc->getHtmlDiv($retElem, 'panel-body') . PHP_EOL;
141
+        $ret .= $hc->getHtmlDiv($retElem, 'panel-body').PHP_EOL;
142 142
         $retFoot = '';
143 143
         foreach (array_keys($fields) as $f) {
144 144
             if (1 == $fields[$f]->getVar('field_user')) {
145 145
                 if (1 == $fields[$f]->getVar('field_tfoot')) {
146 146
                     $fieldName = $fields[$f]->getVar('field_name');
147 147
                     $rpFieldName = $this->getRightString($fieldName);
148
-                    $langConst = mb_strtoupper($tableSoleName) . '_' . mb_strtoupper($rpFieldName);
148
+                    $langConst = mb_strtoupper($tableSoleName).'_'.mb_strtoupper($rpFieldName);
149 149
                     $lang = $hc->getSmartyConst($language, $langConst);
150 150
                     $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
151
-                    $retFoot .= $hc->getHtmlSpan($lang . ': ' . $doubleVar, 'block-pie justify') . PHP_EOL;
151
+                    $retFoot .= $hc->getHtmlSpan($lang.': '.$doubleVar, 'block-pie justify').PHP_EOL;
152 152
                 }
153 153
             }
154 154
         }
155
-        $ret .= $hc->getHtmlDiv($retFoot, 'panel-foot') . PHP_EOL;
155
+        $ret .= $hc->getHtmlDiv($retFoot, 'panel-foot').PHP_EOL;
156 156
 
157 157
         return $ret;
158 158
     }
Please login to merge, or discard this patch.
class/Files/Templates/Admin/TemplatesAdminPages.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     private function getTemplatesAdminPagesHeader($moduleDirname)
76 76
     {
77 77
         $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
78
-        $ret = $hc->getHtmlComment('Header') . PHP_EOL;
78
+        $ret = $hc->getHtmlComment('Header').PHP_EOL;
79 79
         $ret .= $hc->getSmartyIncludeFile($moduleDirname, 'header', true);
80 80
 
81 81
         return $ret;
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     {
94 94
         $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance();
95 95
         $th = '';
96
-        $langHeadId = mb_strtoupper($tableSoleName) . '_ID';
96
+        $langHeadId = mb_strtoupper($tableSoleName).'_ID';
97 97
         if (1 == $tableAutoincrement) {
98 98
             $lang = $hc->getSmartyConst($language, $langHeadId);
99 99
             $th .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, false, "\t\t\t");
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         foreach (array_keys($fields) as $f) {
102 102
             $fieldName = $fields[$f]->getVar('field_name');
103 103
             $rpFieldName = $this->getRightString($fieldName);
104
-            $langFieldName = mb_strtoupper($tableSoleName) . '_' . mb_strtoupper($rpFieldName);
104
+            $langFieldName = mb_strtoupper($tableSoleName).'_'.mb_strtoupper($rpFieldName);
105 105
             if (1 == $fields[$f]->getVar('field_inlist')) {
106 106
                 $lang = $hc->getSmartyConst($language, $langFieldName);
107 107
                 $th .= $hc->getHtmlTag('th', ['class' => 'center'], $lang, false, false, "\t\t\t");
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
         $lang = $hc->getSmartyConst($language, 'FORM_ACTION');
112 112
         $th .= $hc->getHtmlTag('th', ['class' => 'center width5'], $lang, false, false, "\t\t\t");
113
-        $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th) . PHP_EOL;
113
+        $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th).PHP_EOL;
114 114
         $ret = $hc->getHtmlTag('thead', [], $tr);
115 115
 
116 116
         return $ret;
@@ -158,12 +158,12 @@  discard block
 block discarded – undo
158 158
                         $src = $hc->getSmartyNoSimbol('xoModuleIcons32');
159 159
                         $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
160 160
                         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false);
161
-                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n\t" . $img);
161
+                        $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n\t".$img);
162 162
                         break;
163 163
                     case 13:
164
-                        $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
164
+                        $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
165 165
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
166
-                        $img = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, false);
166
+                        $img = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, false);
167 167
                         $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, false, "\t\t");
168 168
                         break;
169 169
                     default:
@@ -179,19 +179,19 @@  discard block
 block discarded – undo
179 179
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
180 180
         $src = $hc->getSmartyNoSimbol('xoModuleIcons16 edit.png');
181 181
         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false);
182
-        $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&amp;{$fieldId}=" . $double, 'title' => $lang], "\n\t" . $img);
182
+        $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&amp;{$fieldId}=".$double, 'title' => $lang], "\n\t".$img);
183 183
         $lang = $hc->getSmartyConst('', '_DELETE');
184 184
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
185 185
         $src = $hc->getSmartyNoSimbol('xoModuleIcons16 delete.png');
186 186
         $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false);
187
-        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&amp;{$fieldId}=" . $double, 'title' => $lang], "\n\t" . $img);
188
-        $td .= $hc->getHtmlTag('td', ['class' => 'center  width5'], "\n" . $anchor);
187
+        $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&amp;{$fieldId}=".$double, 'title' => $lang], "\n\t".$img);
188
+        $td .= $hc->getHtmlTag('td', ['class' => 'center  width5'], "\n".$anchor);
189 189
         $cycle = $hc->getSmartyNoSimbol('cycle values=\'odd, even\'');
190 190
         $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td);
191
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr);
191
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr);
192 192
         $tbody = $hc->getHtmlTag('tbody', [], $foreach);
193 193
 
194
-        return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody);
194
+        return $hc->getSmartyConditions($tableName.'_count', '', '', $tbody);
195 195
     }
196 196
 
197 197
     /**
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
         $div = $hc->getHtmlTag('div', ['class' => 'xo-pagenav floatright'], $single);
233 233
         $div .= $hc->getHtmlTag('div', ['class' => 'clear spacer'], '');
234 234
         $htmlTable .= $hc->getSmartyConditions('pagenav', '', '', $div);
235
-        $ifList = $hc->getSmartyConditions($tableName . '_list', '', '', $htmlTable);
235
+        $ifList = $hc->getSmartyConditions($tableName.'_list', '', '', $htmlTable);
236 236
         $single = $hc->getSmartySingleVar('form');
237 237
         $divComm = $hc->getHtmlComment('Display navigation');
238 238
         //$divComm .= $hc->getHtmlTag('div', array('class' => 'errorMsg'), $single);
Please login to merge, or discard this patch.
class/Files/Admin/AdminIndex.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -93,18 +93,18 @@  discard block
 block discarded – undo
93 93
         $ret .= $pc->getPhpCodeCommentLine('Template Index');
94 94
         $ret .= $axc->getAdminTemplateMain((string)$moduleDirname, 'index');
95 95
         $ret .= $pc->getPhpCodeCommentLine('InfoBox Statistics');
96
-        $ret .= $axc->getAxcAddInfoBox($language . 'STATISTICS');
96
+        $ret .= $axc->getAxcAddInfoBox($language.'STATISTICS');
97 97
         $ret .= $pc->getPhpCodeCommentLine('Info elements');
98 98
         foreach (array_keys($tables) as $i) {
99 99
             $tableName = $tables[$i]->getVar('table_name');
100 100
             $tableInstall[] = $tables[$i]->getVar('table_install');
101
-            $stuTableName = $languageThereAre . mb_strtoupper($tableName);
101
+            $stuTableName = $languageThereAre.mb_strtoupper($tableName);
102 102
             $ucfTableName = ucfirst($tableName);
103
-            $ret .= $axc->getAxcAddInfoBoxLine($language . 'STATISTICS', $stuTableName, "\$count{$ucfTableName}");
103
+            $ret .= $axc->getAxcAddInfoBoxLine($language.'STATISTICS', $stuTableName, "\$count{$ucfTableName}");
104 104
         }
105 105
 
106 106
         if (null === $tableName) {
107
-            $ret .= $axc->getAxcAddInfoBoxLine($language . 'STATISTICS', 'No statistics', '0');
107
+            $ret .= $axc->getAxcAddInfoBoxLine($language.'STATISTICS', 'No statistics', '0');
108 108
         }
109 109
         if (is_array($tables) && in_array(1, $tableInstall)) {
110 110
             $ret .= $pc->getPhpCodeCommentLine('Upload Folders');
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             $ret .= $pc->getPhpCodeCommentLine('Uploads Folders Created');
122 122
             $boxLine = $axc->getAxcAddConfigBoxLine('$folder[$i]', 'folder', '', "\t");
123 123
             $boxLine .= $axc->getAxcAddConfigBoxLine("array(\$folder[\$i], '777')", 'chmod', '', "\t");
124
-            $ret .= $pc->getPhpCodeForeach('folder', true, false, 'i', $boxLine, '') . PHP_EOL;
124
+            $ret .= $pc->getPhpCodeForeach('folder', true, false, 'i', $boxLine, '').PHP_EOL;
125 125
         }
126 126
         $ret .= $pc->getPhpCodeCommentLine('Render Index');
127 127
         $ret .= $xc->getXcTplAssign('navigation', "\$adminObject->displayNavigation('index.php')");
Please login to merge, or discard this patch.
class/Files/CreateXoopsCode.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
         $pTopic = Tdmcreate\Files\CreatePhpCode::getInstance();
478 478
         $ret = $pTopic->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t);
479 479
         $fieldParent = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, '');
480
-        $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic . 'Handler', false, $t);
480
+        $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic.'Handler', false, $t);
481 481
         $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t);
482 482
 
483 483
         return $ret;
@@ -498,8 +498,8 @@  discard block
 block discarded – undo
498 498
     public function getXcParentTopicGetVar($moduleDirname, $lpFieldName, $rpFieldName, $tableName, $tableSoleNameTopic, $tableNameTopic, $fieldNameParent, $t = '')
499 499
     {
500 500
         $pParentTopic = Tdmcreate\Files\CreatePhpCode::getInstance();
501
-        $parentTopic = $pParentTopic->getPhpCodeCommentLine('Get', $tableNameTopic . ' Handler', $t . "\t");
502
-        $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t . "\t");
501
+        $parentTopic = $pParentTopic->getPhpCodeCommentLine('Get', $tableNameTopic.' Handler', $t."\t");
502
+        $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t."\t");
503 503
         $elseGroups = $this->getXcEqualsOperator('$groups', 'XOOPS_GROUP_ANONYMOUS');
504 504
         $ret = $pParentTopic->getPhpCodeConditions("!isset(\${$tableNameTopic}Handler", '', '', $parentTopic, $elseGroups);
505 505
         $ret .= $this->getXcGetVarFromID("\${$lpFieldName}['{$rpFieldName}']", $tableNameTopic, $tableSoleNameTopic, $tableName, $fieldNameParent, $t);
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
         $pVarFromID = Tdmcreate\Files\CreatePhpCode::getInstance();
523 523
         $ret = $pVarFromID->getPhpCodeCommentLine('Get Var', $fieldName, $t);
524 524
         $getVarFromID = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldName, true, '');
525
-        $rightGet = $this->getXcAnchorFunction($anchor . 'Handler', 'get' . $var . 'FromId', $getVarFromID);
525
+        $rightGet = $this->getXcAnchorFunction($anchor.'Handler', 'get'.$var.'FromId', $getVarFromID);
526 526
         $ret .= $this->getXcEqualsOperator($left, $rightGet, null, false, $t);
527 527
 
528 528
         return $ret;
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
         $phpCodeTextArea = Tdmcreate\Files\CreatePhpCode::getInstance();
575 575
         $getVar = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldName, true, '');
576 576
 
577
-        return $t . $phpCodeTextArea->getPhpCodeStripTags("{$lpFieldName}['{$rpFieldName}']", $getVar, false, $t);
577
+        return $t.$phpCodeTextArea->getPhpCodeStripTags("{$lpFieldName}['{$rpFieldName}']", $getVar, false, $t);
578 578
     }
579 579
 
580 580
     /**
@@ -783,9 +783,9 @@  discard block
 block discarded – undo
783 783
     {
784 784
         $assign = "{$t}\$GLOBALS['xoopsTpl']->assign(";
785 785
         if (false === $leftIsString) {
786
-            $ret = $assign . "{$tplString}, {$phpRender});\n";
786
+            $ret = $assign."{$tplString}, {$phpRender});\n";
787 787
         } else {
788
-            $ret = $assign . "'{$tplString}', {$phpRender});\n";
788
+            $ret = $assign."'{$tplString}', {$phpRender});\n";
789 789
         }
790 790
 
791 791
         return $ret;
@@ -854,7 +854,7 @@  discard block
 block discarded – undo
854 854
             return "{$t}\$GLOBALS['xoopsTpl']->display(\"db:{$displayTpl}\");\n";
855 855
         }
856 856
 
857
-        return "{$t}\$GLOBALS['xoopsTpl']->display('db:" . $displayTpl . "');\n";
857
+        return "{$t}\$GLOBALS['xoopsTpl']->display('db:".$displayTpl."');\n";
858 858
     }
859 859
 
860 860
     /**
@@ -1095,10 +1095,10 @@  discard block
 block discarded – undo
1095 1095
         $phpCodeSecurity = Tdmcreate\Files\CreatePhpCode::getInstance();
1096 1096
         $securityError = $this->getXcSecurityErrors();
1097 1097
         $implode = $phpCodeSecurity->getPhpCodeImplode(',', $securityError);
1098
-        $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '', 3, $implode, $t);
1098
+        $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '', 3, $implode, $t);
1099 1099
         $securityCheck = $this->getXcSecurityCheck();
1100 1100
 
1101
-        return $phpCodeSecurity->getPhpCodeConditions('!' . $securityCheck, '', '', $content, $t);
1101
+        return $phpCodeSecurity->getPhpCodeConditions('!'.$securityCheck, '', '', $content, $t);
1102 1102
     }
1103 1103
 
1104 1104
     /**
@@ -1111,7 +1111,7 @@  discard block
 block discarded – undo
1111 1111
     public function getXcInsertData($tableName, $language, $t = '')
1112 1112
     {
1113 1113
         $phpCodeInsertData = Tdmcreate\Files\CreatePhpCode::getInstance();
1114
-        $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK");
1114
+        $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK");
1115 1115
         $handlerInsert = $this->getXcHandler($tableName, $tableName, false, true, false, 'Obj');
1116 1116
 
1117 1117
         return $phpCodeInsertData->getPhpCodeConditions($handlerInsert, '', '', $content, $t);
@@ -1158,8 +1158,8 @@  discard block
 block discarded – undo
1158 1158
         $phpXoopsConfirm = Tdmcreate\Files\CreatePhpCode::getInstance();
1159 1159
         $array = "array('ok' => 1, '{$fieldId}' => \${$ccFieldId}, 'op' => '{$options}')";
1160 1160
         $server = $phpXoopsConfirm->getPhpCodeGlobalsVariables('REQUEST_URI', 'SERVER');
1161
-        $getVar = $this->getXcGetVar('', $tableName . 'Obj', $fieldMain, true, '');
1162
-        $sprintf = $phpXoopsConfirm->getPhpCodeSprintf($language . 'FORM_SURE_' . $stuOptions, $getVar);
1161
+        $getVar = $this->getXcGetVar('', $tableName.'Obj', $fieldMain, true, '');
1162
+        $sprintf = $phpXoopsConfirm->getPhpCodeSprintf($language.'FORM_SURE_'.$stuOptions, $getVar);
1163 1163
         $ret = "{$t}xoops_confirm({$array}, {$server}, {$sprintf});\n";
1164 1164
 
1165 1165
         return $ret;
@@ -1331,7 +1331,7 @@  discard block
 block discarded – undo
1331 1331
     {
1332 1332
         $ret = Tdmcreate\Files\CreatePhpCode::getInstance()->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t);
1333 1333
         $paramGet = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, '');
1334
-        $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic . 'Handler', false, $t);
1334
+        $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic.'Handler', false, $t);
1335 1335
         $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t);
1336 1336
 
1337 1337
         return $ret;
@@ -1419,18 +1419,18 @@  discard block
 block discarded – undo
1419 1419
                 $fieldMain = $fieldName;
1420 1420
             }
1421 1421
             if ((5 == $fieldElement) || (6 == $fieldElement)) {
1422
-                $ret .= $t . $this->getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName);
1422
+                $ret .= $t.$this->getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName);
1423 1423
             } elseif (13 == $fieldElement) {
1424 1424
                 $ret .= $axCodeSaveElements->getAxcUploadImageSetVar($moduleDirname, $tableName, $fieldName, $fieldMain);
1425 1425
             } elseif (14 == $fieldElement) {
1426 1426
                 $ret .= $axCodeSaveElements->getAxcUploadFileSetVar($moduleDirname, $tableName, $fieldName);
1427 1427
             } elseif (15 == $fieldElement) {
1428
-                $ret .= $t . $this->getXcTextDateSelectSetVar($tableName, $tableSoleName, $fieldName);
1428
+                $ret .= $t.$this->getXcTextDateSelectSetVar($tableName, $tableSoleName, $fieldName);
1429 1429
             } else {
1430 1430
                 if ((0 != $f) && 1 == $tableAutoincrement) {
1431
-                    $ret .= $t . $this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1431
+                    $ret .= $t.$this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1432 1432
                 } elseif ((0 == $f) && 0 == $tableAutoincrement) {
1433
-                    $ret .= $t . $this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1433
+                    $ret .= $t.$this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']");
1434 1434
                 }
1435 1435
             }
1436 1436
         }
@@ -1450,9 +1450,9 @@  discard block
 block discarded – undo
1450 1450
         $phpCodePageNav = Tdmcreate\Files\CreatePhpCode::getInstance();
1451 1451
         $classXCode = Tdmcreate\Files\Classes\ClassXoopsCode::getInstance();
1452 1452
         $ret = $phpCodePageNav->getPhpCodeCommentLine('Display Navigation', null, $t);
1453
-        $condition = $phpCodePageNav->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/pagenav', true, false, 'include', $t . "\t");
1454
-        $condition .= $classXCode->getClassXoopsPageNav('pagenav', $tableName . 'Count', 'limit', 'start', 'start', "'op=list&limit=' . \$limit", false, $t . "\t");
1455
-        $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t . "\t");
1453
+        $condition = $phpCodePageNav->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/pagenav', true, false, 'include', $t."\t");
1454
+        $condition .= $classXCode->getClassXoopsPageNav('pagenav', $tableName.'Count', 'limit', 'start', 'start', "'op=list&limit=' . \$limit", false, $t."\t");
1455
+        $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t."\t");
1456 1456
         $ret .= $phpCodePageNav->getPhpCodeConditions("\${$tableName}Count", ' > ', '$limit', $condition, false, $t);
1457 1457
 
1458 1458
         return $ret;
Please login to merge, or discard this patch.
class/Files/Classes/ClassXoopsCode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,8 +74,8 @@
 block discarded – undo
74 74
      */
75 75
     public function getClassCriteria($var, $param1, $param2 = '', $param3 = '', $isParam = false, $t = '')
76 76
     {
77
-        $params = ('' != $param2) ? ', ' . $param2 : '';
78
-        $params .= ('' != $param3) ? ', ' . $param3 : '';
77
+        $params = ('' != $param2) ? ', '.$param2 : '';
78
+        $params .= ('' != $param3) ? ', '.$param3 : '';
79 79
 
80 80
         if (false === $isParam) {
81 81
             $ret = "{$t}\${$var} = new \Criteria( {$param1}{$params} );\n";
Please login to merge, or discard this patch.
class/Files/Classes/ClassFiles.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
         $ucfModuleDirname = ucfirst($moduleDirname);
173 173
         $ucfTableName = ucfirst($tableName);
174 174
         $ret = $pc->getPhpCodeDefined();
175
-        $ret .= $pc->getPhpCodeCommentMultiLine(['Class Object' => $ucfModuleDirname . $ucfTableName]);
175
+        $ret .= $pc->getPhpCodeCommentMultiLine(['Class Object' => $ucfModuleDirname.$ucfTableName]);
176 176
         $cCl = '';
177 177
 
178 178
         $fieldInForm = [];
@@ -187,9 +187,9 @@  discard block
 block discarded – undo
187 187
             $rpFieldName = $this->getRightString($fieldName);
188 188
             if (in_array(5, $fieldElementId)) {
189 189
                 if (count($rpFieldName) % 5) {
190
-                    $optionsFieldName[] = "'" . $rpFieldName . "'";
190
+                    $optionsFieldName[] = "'".$rpFieldName."'";
191 191
                 } else {
192
-                    $optionsFieldName[] = "'" . $rpFieldName . "'\n";
192
+                    $optionsFieldName[] = "'".$rpFieldName."'\n";
193 193
                 }
194 194
             }
195 195
             if ((0 == $f) && (1 == $table->getVar('table_autoincrement'))) {
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         }
225 225
         unset($fieldElementId);
226 226
 
227
-        $ret .= $pc->getPhpCodeClass($ucfModuleDirname . $ucfTableName, $cCl, 'XoopsObject');
227
+        $ret .= $pc->getPhpCodeClass($ucfModuleDirname.$ucfTableName, $cCl, 'XoopsObject');
228 228
 
229 229
         return $ret;
230 230
     }
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
         $getInsertedId = $xc->getXcEqualsOperator('$newInsertedId', "\$GLOBALS['xoopsDB']->getInsertId()", null, false, "\t\t");
247 247
         $getInsertedId .= $this->getSimpleString('return $newInsertedId;', "\t\t");
248 248
 
249
-        $ret .= $pc->getPhpCodeFunction('getNewInsertedId' . $ucfTableName, '', $getInsertedId, 'public ', false, "\t");
249
+        $ret .= $pc->getPhpCodeFunction('getNewInsertedId'.$ucfTableName, '', $getInsertedId, 'public ', false, "\t");
250 250
 
251 251
         return $ret;
252 252
     }
@@ -287,12 +287,12 @@  discard block
 block discarded – undo
287 287
         if (1 != $tableCategory/* && (1 == $tablePermissions)*/) {
288 288
             $getForm .= $pc->getPhpCodeCommentLine('Permissions for', 'uploader', "\t\t");
289 289
             $getForm .= $xc->getXcEqualsOperator('$gpermHandler', "xoops_getHandler('groupperm')", null, true, "\t\t");
290
-            $getForm .= $pc->getPhpCodeTernaryOperator('groups', 'is_object(' . $xUser . ')', $xUser . '->getGroups()', 'XOOPS_GROUP_ANONYMOUS', "\t\t");
291
-            $checkRight = $xc->getXcCheckRight('$gpermHandler', $permString = '', 32, '$groups', $xModule . '->getVar(\'mid\')', true);
290
+            $getForm .= $pc->getPhpCodeTernaryOperator('groups', 'is_object('.$xUser.')', $xUser.'->getGroups()', 'XOOPS_GROUP_ANONYMOUS', "\t\t");
291
+            $checkRight = $xc->getXcCheckRight('$gpermHandler', $permString = '', 32, '$groups', $xModule.'->getVar(\'mid\')', true);
292 292
             $ternaryOperator = $pc->getPhpCodeTernaryOperator('permissionUpload', $checkRight, 'true', 'false', "\t\t\t\t");
293 293
             $permissionUpload = $xc->getXcEqualsOperator('$permissionUpload', 'true', null, false, "\t\t\t\t");
294 294
             $ternOperator = $pc->getPhpCodeRemoveCarriageReturn($ternaryOperator, '', "\r");
295
-            $if = $pc->getPhpCodeConditions('!' . $xUser . '->isAdmin(' . $xModule . '->mid())', '', '', $ternaryOperator, $permissionUpload, "\t\t\t");
295
+            $if = $pc->getPhpCodeConditions('!'.$xUser.'->isAdmin('.$xModule.'->mid())', '', '', $ternaryOperator, $permissionUpload, "\t\t\t");
296 296
             $getForm .= $pc->getPhpCodeConditions($xUser, '', '', $if, $ternOperator, "\t\t");
297 297
         }
298 298
         $getForm .= $pc->getPhpCodeCommentLine('Title', '', "\t\t");
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
         $getForm .= $cc->getClassAddElement('form', "new \XoopsFormButtonTray('', _SUBMIT, 'submit', '', false)");
316 316
         $getForm .= $this->getSimpleString('return $form;', "\t\t");
317 317
 
318
-        $ret .= $pc->getPhpCodeFunction('getForm' . $ucfTableName, '$action = false', $getForm, 'public ', false, "\t");
318
+        $ret .= $pc->getPhpCodeFunction('getForm'.$ucfTableName, '$action = false', $getForm, 'public ', false, "\t");
319 319
 
320 320
         return $ret;
321 321
     }
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
         }
437 437
         $getValues .= $this->getSimpleString('return $ret;', "\t\t");
438 438
 
439
-        $ret .= $pc->getPhpCodeFunction('getValues' . $ucfTableName, '$keys = null, $format = null, $maxDepth = null', $getValues, 'public ', false, "\t");
439
+        $ret .= $pc->getPhpCodeFunction('getValues'.$ucfTableName, '$keys = null, $format = null, $maxDepth = null', $getValues, 'public ', false, "\t");
440 440
 
441 441
         return $ret;
442 442
     }
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
         $getToArray .= $pc->getPhpCodeForeach('vars', true, false, 'var', $foreach, "\t\t");
464 464
         $getToArray .= $this->getSimpleString('return $ret;', "\t\t");
465 465
 
466
-        $ret .= $pc->getPhpCodeFunction('toArray' . $ucfTableName, '', $getToArray, 'public ', false, "\t");
466
+        $ret .= $pc->getPhpCodeFunction('toArray'.$ucfTableName, '', $getToArray, 'public ', false, "\t");
467 467
 
468 468
         return $ret;
469 469
     }
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
 
501 501
         $getOptions .= $this->getSimpleString('return $ret;', "\t\t");
502 502
 
503
-        $ret .= $pc->getPhpCodeFunction('getOptions' . $ucfTableName, '', $getOptions, 'public ', false, "\t");
503
+        $ret .= $pc->getPhpCodeFunction('getOptions'.$ucfTableName, '', $getOptions, 'public ', false, "\t");
504 504
 
505 505
         return $ret;
506 506
     }
@@ -529,8 +529,8 @@  discard block
 block discarded – undo
529 529
         $ucfModuleDirname = ucfirst($moduleDirname);
530 530
         $ucfTableName = ucfirst($tableName);
531 531
         $ucfTableSoleName = ucfirst($tableSoleName);
532
-        $ucfModuleTable = $ucfModuleDirname . $ucfTableName;
533
-        $multiLineCom = ['Class Object Handler' => $ucfModuleDirname . $ucfTableName];
532
+        $ucfModuleTable = $ucfModuleDirname.$ucfTableName;
533
+        $multiLineCom = ['Class Object Handler' => $ucfModuleDirname.$ucfTableName];
534 534
         $ret = $pc->getPhpCodeCommentMultiLine($multiLineCom);
535 535
 
536 536
         $cClh = $pc->getPhpCodeCommentMultiLine(['Constructor' => '', '' => '', '@param' => 'null|XoopsDatabase $db'], "\t");
@@ -616,15 +616,15 @@  discard block
 block discarded – undo
616 616
         $xc = Tdmcreate\Files\CreateXoopsCode::getInstance();
617 617
         $cc = Tdmcreate\Files\Classes\ClassXoopsCode::getInstance();
618 618
         $ucfTableName = ucfirst($tableName);
619
-        $ret = $pc->getPhpCodeCommentMultiLine(['Get Count ' . $ucfTableName => 'in the database', '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t");
619
+        $ret = $pc->getPhpCodeCommentMultiLine(['Get Count '.$ucfTableName => 'in the database', '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t");
620 620
 
621
-        $critCount = $cc->getClassCriteriaCompo('crCount' . $ucfTableName, "\t\t");
621
+        $critCount = $cc->getClassCriteriaCompo('crCount'.$ucfTableName, "\t\t");
622 622
         $paramsCrit = "\$this->get{$ucfTableName}Criteria(\$crCount{$ucfTableName}, \$start, \$limit, \$sort, \$order)";
623
-        $critCount .= $xc->getXcEqualsOperator('$crCount' . $ucfTableName, $paramsCrit, null, false, "\t\t");
623
+        $critCount .= $xc->getXcEqualsOperator('$crCount'.$ucfTableName, $paramsCrit, null, false, "\t\t");
624 624
         $critCount .= $this->getSimpleString("return parent::getCount(\$crCount{$ucfTableName});", "\t\t");
625 625
         $params = "\$start = 0, \$limit = 0, \$sort = '{$fieldId} ASC, {$fieldMain}', \$order = 'ASC'";
626 626
 
627
-        $ret .= $pc->getPhpCodeFunction('getCount' . $ucfTableName, $params, $critCount, 'public ', false, "\t");
627
+        $ret .= $pc->getPhpCodeFunction('getCount'.$ucfTableName, $params, $critCount, 'public ', false, "\t");
628 628
 
629 629
         return $ret;
630 630
     }
@@ -644,15 +644,15 @@  discard block
 block discarded – undo
644 644
         $xc = Tdmcreate\Files\CreateXoopsCode::getInstance();
645 645
         $cc = Tdmcreate\Files\Classes\ClassXoopsCode::getInstance();
646 646
         $ucfTableName = ucfirst($tableName);
647
-        $ret = $pc->getPhpCodeCommentMultiLine(['Get All ' . $ucfTableName => 'in the database', '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'array'], "\t");
647
+        $ret = $pc->getPhpCodeCommentMultiLine(['Get All '.$ucfTableName => 'in the database', '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'array'], "\t");
648 648
 
649
-        $critAll = $cc->getClassCriteriaCompo('crAll' . $ucfTableName, "\t\t");
649
+        $critAll = $cc->getClassCriteriaCompo('crAll'.$ucfTableName, "\t\t");
650 650
         $paramsCrit = "\$this->get{$ucfTableName}Criteria(\$crAll{$ucfTableName}, \$start, \$limit, \$sort, \$order)";
651
-        $critAll .= $xc->getXcEqualsOperator('$crAll' . $ucfTableName, $paramsCrit, null, false, "\t\t");
651
+        $critAll .= $xc->getXcEqualsOperator('$crAll'.$ucfTableName, $paramsCrit, null, false, "\t\t");
652 652
         $critAll .= $this->getSimpleString("return parent::getAll(\$crAll{$ucfTableName});", "\t\t");
653 653
         $params = "\$start = 0, \$limit = 0, \$sort = '{$fieldId} ASC, {$fieldMain}', \$order = 'ASC'";
654 654
 
655
-        $ret .= $pc->getPhpCodeFunction('getAll' . $ucfTableName, $params, $critAll, 'public ', false, "\t");
655
+        $ret .= $pc->getPhpCodeFunction('getAll'.$ucfTableName, $params, $critAll, 'public ', false, "\t");
656 656
 
657 657
         return $ret;
658 658
     }
@@ -693,19 +693,19 @@  discard block
 block discarded – undo
693 693
         $param2 = "\$GLOBALS['xoopsUser']->getGroups()";
694 694
         $param3 = "\$GLOBALS['xoopsModule']->getVar('mid')";
695 695
         $critAll .= $xc->getXcGetItemIds($lcfTopicTableName, 'gpermHandler', $param1, $param2, $param3, "\t\t");
696
-        $critAll .= $cc->getClassCriteriaCompo('crAll' . $ucfTableName, "\t\t");
696
+        $critAll .= $cc->getClassCriteriaCompo('crAll'.$ucfTableName, "\t\t");
697 697
 
698 698
         if (false !== mb_strpos($fieldName, 'status')) {
699 699
             $crit = $cc->getClassCriteria('', "'{$fieldName}'", '0', "'!='", true);
700
-            $critAll .= $cc->getClassAdd('crAll' . $ucfTableName, $crit, "\t\t");
700
+            $critAll .= $cc->getClassAdd('crAll'.$ucfTableName, $crit, "\t\t");
701 701
         }
702 702
         $paramsCritAll = "\$this->get{$ucfTableName}Criteria(\$crAll{$ucfTableName}, \$start, \$limit, \$sort, \$order)";
703
-        $critAll .= $xc->getXcEqualsOperator('$crAll' . $ucfTableName, $paramsCritAll, null, false, "\t\t");
703
+        $critAll .= $xc->getXcEqualsOperator('$crAll'.$ucfTableName, $paramsCritAll, null, false, "\t\t");
704 704
 
705 705
         $critAll .= $this->getSimpleString("return parent::getAll(\$crAll{$ucfTableName});", "\t\t");
706 706
         $params = "\${$tableFieldName}Id, \$start = 0, \$limit = 0, \$sort = '{$fieldId} ASC, {$fieldMain}', \$order = 'ASC'";
707 707
 
708
-        $ret .= $pc->getPhpCodeFunction("getAll{$ucfTableName}By{$fieldNameDesc}Id" . $ucfTableName, $params, $critAll, 'public ', false, "\t");
708
+        $ret .= $pc->getPhpCodeFunction("getAll{$ucfTableName}By{$fieldNameDesc}Id".$ucfTableName, $params, $critAll, 'public ', false, "\t");
709 709
 
710 710
         return $ret;
711 711
     }
@@ -721,14 +721,14 @@  discard block
 block discarded – undo
721 721
         $pc = Tdmcreate\Files\CreatePhpCode::getInstance();
722 722
         $cc = Tdmcreate\Files\Classes\ClassXoopsCode::getInstance();
723 723
         $ucfTableName = ucfirst($tableName);
724
-        $ret = $pc->getPhpCodeCommentMultiLine(['Get' => 'Criteria ' . $ucfTableName, '@param       ' => "\$cr{$ucfTableName}", '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t");
724
+        $ret = $pc->getPhpCodeCommentMultiLine(['Get' => 'Criteria '.$ucfTableName, '@param       ' => "\$cr{$ucfTableName}", '@param int    $start' => '', '@param int    $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t");
725 725
 
726 726
         $paramsAllCriteria = "\$cr{$ucfTableName}, \$start, \$limit, \$sort, \$order";
727 727
 
728
-        $critSets = $cc->getClassSetStart('cr' . $ucfTableName, 'start', "\t\t");
729
-        $critSets .= $cc->getClassSetLimit('cr' . $ucfTableName, 'limit', "\t\t");
730
-        $critSets .= $cc->getClassSetSort('cr' . $ucfTableName, 'sort', "\t\t");
731
-        $critSets .= $cc->getClassSetOrder('cr' . $ucfTableName, 'order', "\t\t");
728
+        $critSets = $cc->getClassSetStart('cr'.$ucfTableName, 'start', "\t\t");
729
+        $critSets .= $cc->getClassSetLimit('cr'.$ucfTableName, 'limit', "\t\t");
730
+        $critSets .= $cc->getClassSetSort('cr'.$ucfTableName, 'sort', "\t\t");
731
+        $critSets .= $cc->getClassSetOrder('cr'.$ucfTableName, 'order', "\t\t");
732 732
         $critSets .= $this->getSimpleString("return \$cr{$ucfTableName};", "\t\t");
733 733
 
734 734
         $ret .= $pc->getPhpCodeFunction("get{$ucfTableName}Criteria", $paramsAllCriteria, $critSets, 'private ', false, "\t");
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
         $tableSoleName = $table->getVar('table_solename');
754 754
         $ucfTableSoleName = ucfirst($tableSoleName);
755 755
         $ccTableSoleName = $this->getCamelCase($tableSoleName, true);
756
-        $ret = $pc->getPhpCodeCommentMultiLine(['Returns the' => $ucfTableSoleName . ' from id', '' => '', '@return' => 'string'], "\t");
756
+        $ret = $pc->getPhpCodeCommentMultiLine(['Returns the' => $ucfTableSoleName.' from id', '' => '', '@return' => 'string'], "\t");
757 757
         $soleName = $xc->getXcEqualsOperator("\${$tableSoleName}Id", "(int)( \${$tableSoleName}Id )", null, false, "\t\t");
758 758
         $soleName .= $xc->getXcEqualsOperator("\${$tableSoleName}", "''", null, false, "\t\t");
759 759
 
Please login to merge, or discard this patch.
class/Files/Includes/IncludeCommon.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,8 +132,8 @@
 block discarded – undo
132 132
         $htmlCode = Tdmcreate\Files\CreateHtmlCode::getInstance();
133 133
         $img = $htmlCode->getHtmlImage('".$localLogo."', $moduleAuthorWebsiteName);
134 134
         $anchor = $htmlCode->getHtmlAnchor($moduleAuthorWebsiteUrl, $img, $moduleAuthorWebsiteName, '_blank');
135
-        $replace = $xc->getXcEqualsOperator('$copyright', '"' . $anchor . '"');
136
-        $ret .= str_replace("\n", '', $replace) . PHP_EOL;
135
+        $replace = $xc->getXcEqualsOperator('$copyright', '"'.$anchor.'"');
136
+        $ret .= str_replace("\n", '', $replace).PHP_EOL;
137 137
         $ret .= $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/xoopsrequest', true);
138 138
         $ret .= $pc->getPhpCodeIncludeDir("{$stuModuleDirname}_PATH", 'class/helper', true);
139 139
         $ret .= $pc->getPhpCodeIncludeDir("{$stuModuleDirname}_PATH", 'include/functions', true);
Please login to merge, or discard this patch.