Code Duplication    Length = 6-6 lines in 2 locations

class/answer.php 1 location

@@ 761-766 (lines=6) @@
758
        if (!$result) {
759
            return $ret;
760
        }
761
        while ($row = $this->db->fetchArray($result)) {
762
            $answer = new sfAnswer();
763
            $answer->assignVars($row);
764
            $ret[$row['faqid']] =& $answer;
765
            unset($answer);
766
        }
767
768
        return $ret;
769
    }

class/faq.php 1 location

@@ 1426-1431 (lines=6) @@
1423
1424
            return $ret;
1425
        }
1426
        while ($row = $this->db->fetchArray($result)) {
1427
            $faq = new sfFaq();
1428
            $faq->assignVars($row);
1429
            $ret[$row['categoryid']] =& $faq;
1430
            unset($faq);
1431
        }
1432
1433
        return $ret;
1434
    }