Code Duplication    Length = 6-6 lines in 2 locations

class/answer.php 1 location

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

class/faq.php 1 location

@@ 1438-1443 (lines=6) @@
1435
1436
            return $ret;
1437
        }
1438
        while ($row = $this->db->fetchArray($result)) {
1439
            $faq = new sfFaq();
1440
            $faq->assignVars($row);
1441
            $ret[$row['categoryid']] = &$faq;
1442
            unset($faq);
1443
        }
1444
1445
        return $ret;
1446
    }