Code Duplication    Length = 5-5 lines in 2 locations

class/classifiedstree.php 2 locations

@@ 383-387 (lines=5) @@
380
        if ($count == 0) {
381
            return $parray;
382
        }
383
        while ($row = $this->db->fetchArray($result)) {
384
            $row['prefix'] = $r_prefix . '.';
385
            array_push($parray, $row);
386
            $parray = $this->getChildTreeArray($row[$this->id], $order, $parray, $row['prefix']);
387
        }
388
389
        return $parray;
390
    }
@@ 532-536 (lines=5) @@
529
        if ($count == 0) {
530
            return $parray;
531
        }
532
        while ($row = $xoopsDB->fetchArray($result)) {
533
            $row['prefix'] = $r_prefix . '.';
534
            array_push($parray, $row);
535
            $parray = $this->getChildTreeMapArray($row[$this->id], $order, $parray, $row['prefix']);
536
        }
537
538
        return $parray;
539
    }