Code Duplication    Length = 5-5 lines in 2 locations

class/classifiedstree.php 2 locations

@@ 375-379 (lines=5) @@
372
        if ($count == 0) {
373
            return $parray;
374
        }
375
        while ($row = $this->db->fetchArray($result)) {
376
            $row['prefix'] = $r_prefix . '.';
377
            array_push($parray, $row);
378
            $parray = $this->getChildTreeArray($row[$this->id], $order, $parray, $row['prefix']);
379
        }
380
381
        return $parray;
382
    }
@@ 508-512 (lines=5) @@
505
        if (0 == $count) {
506
            return $parray;
507
        }
508
        while ($row = $xoopsDB->fetchArray($result)) {
509
            $row['prefix'] = $r_prefix . '.';
510
            array_push($parray, $row);
511
            $parray = $this->getChildTreeMapArray($row[$this->id], $order, $parray, $row['prefix']);
512
        }
513
514
        return $parray;
515
    }