Code Duplication    Length = 8-8 lines in 2 locations

src/controllers/DataexportController.php 2 locations

@@ 323-330 (lines=8) @@
320
        if (!$rs->EOF) {
321
            // Output header row
322
            $j = 0;
323
            foreach ($rs->fields as $k => $v) {
324
                $finfo = $rs->fetchField($j++);
325
                if ($finfo->name == $data->id && !$oids) {
326
                    continue;
327
                }
328
329
                echo "\t\t<th>", $this->misc->printVal($finfo->name, 'verbatim'), "</th>\r\n";
330
            }
331
        }
332
        echo "\t</tr>\r\n";
333
        while (!$rs->EOF) {
@@ 336-343 (lines=8) @@
333
        while (!$rs->EOF) {
334
            echo "\t<tr>\r\n";
335
            $j = 0;
336
            foreach ($rs->fields as $k => $v) {
337
                $finfo = $rs->fetchField($j++);
338
                if ($finfo->name == $data->id && !$oids) {
339
                    continue;
340
                }
341
342
                echo "\t\t<td>", $this->misc->printVal($v, 'verbatim', $finfo->type), "</td>\r\n";
343
            }
344
            echo "\t</tr>\r\n";
345
            $rs->moveNext();
346
        }