Code Duplication    Length = 6-6 lines in 2 locations

class/answer.php 1 location

@@ 715-720 (lines=6) @@
712
        if (!$result) {
713
            return $ret;
714
        }
715
        while ($row = $this->db->fetchArray($result)) {
716
            $answer = new sfAnswer();
717
            $answer->assignVars($row);
718
            $ret[$row['faqid']] =& $answer;
719
            unset($answer);
720
        }
721
722
        return $ret;
723
    }

class/faq.php 1 location

@@ 1399-1404 (lines=6) @@
1396
1397
            return $ret;
1398
        }
1399
        while ($row = $this->db->fetchArray($result)) {
1400
            $faq = new sfFaq();
1401
            $faq->assignVars($row);
1402
            $ret[$row['categoryid']] = &$faq;
1403
            unset($faq);
1404
        }
1405
1406
        return $ret;
1407
    }