Code Duplication    Length = 5-5 lines in 2 locations

class/classifiedstree.php 2 locations

@@ 388-392 (lines=5) @@
385
        if ($count == 0) {
386
            return $parray;
387
        }
388
        while ($row = $this->db->fetchArray($result)) {
389
            $row['prefix'] = $r_prefix . '.';
390
            array_push($parray, $row);
391
            $parray = $this->getChildTreeArray($row[$this->id], $order, $parray, $row['prefix']);
392
        }
393
394
        return $parray;
395
    }
@@ 537-541 (lines=5) @@
534
        if ($count == 0) {
535
            return $parray;
536
        }
537
        while ($row = $xoopsDB->fetchArray($result)) {
538
            $row['prefix'] = $r_prefix . '.';
539
            array_push($parray, $row);
540
            $parray = $this->getChildTreeMapArray($row[$this->id], $order, $parray, $row['prefix']);
541
        }
542
543
        return $parray;
544
    }