Code Duplication    Length = 5-6 lines in 3 locations

src/controllers/AlldbController.php 1 location

@@ 496-500 (lines=5) @@
493
        }
494
495
        // Comments (if available)
496
        if ($data->hasSharedComments()) {
497
            echo "\t<tr>\n\t\t<th class=\"data left\">{$this->lang['strcomment']}</th>".PHP_EOL;
498
            echo "\t\t<td><textarea name=\"formComment\" rows=\"3\" cols=\"32\">",
499
            htmlspecialchars($_POST['formComment']), "</textarea></td>\n\t</tr>".PHP_EOL;
500
        }
501
502
        echo '</table>'.PHP_EOL;
503
        echo '<p><input type="hidden" name="action" value="save_create" />'.PHP_EOL;

src/controllers/TablespacesController.php 2 locations

@@ 208-213 (lines=6) @@
205
                $users->moveNext();
206
            }
207
            echo '</select></td></tr>'.PHP_EOL;
208
            if ($data->hasSharedComments()) {
209
                echo "<tr><th class=\"data left\">{$this->lang['strcomment']}</th>".PHP_EOL;
210
                echo '<td class="data1">';
211
                echo '<textarea rows="3" cols="32" name="comment">',
212
                htmlspecialchars($_POST['comment']), '</textarea></td></tr>'.PHP_EOL;
213
            }
214
            echo '</table>'.PHP_EOL;
215
            echo '<p><input type="hidden" name="action" value="save_edit" />'.PHP_EOL;
216
            echo '<input type="hidden" name="tablespace" value="', htmlspecialchars($_REQUEST['tablespace']), '" />'.PHP_EOL;
@@ 325-329 (lines=5) @@
322
        echo "\t<tr>\n\t\t<th class=\"data left required\">{$this->lang['strlocation']}</th>".PHP_EOL;
323
        echo "\t\t<td class=\"data1\"><input size=\"32\" name=\"formLoc\" value=\"", htmlspecialchars($_POST['formLoc']), "\" /></td>\n\t</tr>".PHP_EOL;
324
        // Comments (if available)
325
        if ($data->hasSharedComments()) {
326
            echo "\t<tr>\n\t\t<th class=\"data left\">{$this->lang['strcomment']}</th>".PHP_EOL;
327
            echo "\t\t<td><textarea name=\"formComment\" rows=\"3\" cols=\"32\">",
328
            htmlspecialchars($_POST['formComment']), "</textarea></td>\n\t</tr>".PHP_EOL;
329
        }
330
        echo '</table>'.PHP_EOL;
331
        echo '<p><input type="hidden" name="action" value="save_create" />'.PHP_EOL;
332
        echo "<input type=\"submit\" value=\"{$this->lang['strcreate']}\" />".PHP_EOL;