Code Duplication    Length = 3-3 lines in 3 locations

src/controllers/TblpropertiesController.php 1 location

@@ 169-171 (lines=3) @@
166
        $ck = $data->getConstraintsWithFields($_REQUEST['table']);
167
168
        // Show comment if any
169
        if (null !== $tdata->fields['relcomment']) {
170
            echo '<p class="comment">', $misc->printVal($tdata->fields['relcomment']), '</p>'.PHP_EOL;
171
        }
172
173
        $columns = [
174
            'column'  => [

src/traits/ViewsMatViewsPropertiesTrait.php 2 locations

@@ 43-45 (lines=3) @@
40
        $attrs = $data->getTableAttributes($_REQUEST[$this->subject]);
41
42
        // Show comment if any
43
        if (null !== $vdata->fields['relcomment']) {
44
            echo '<p class="comment">', $this->misc->printVal($vdata->fields['relcomment']), '</p>'.PHP_EOL;
45
        }
46
47
        $columns = [
48
            'column'  => [
@@ 266-268 (lines=3) @@
263
264
        if ($vdata->RecordCount() > 0) {
265
            // Show comment if any
266
            if (null !== $vdata->fields['relcomment']) {
267
                echo '<p class="comment">', $this->misc->printVal($vdata->fields['relcomment']), '</p>'.PHP_EOL;
268
            }
269
270
            echo '<table style="width: 100%">'.PHP_EOL;
271
            echo "<tr><th class=\"data\">{$this->lang['strdefinition']}</th></tr>".PHP_EOL;