Code Duplication    Length = 9-9 lines in 2 locations

services/WordPress/WordPressQueryProvider.php 2 locations

@@ 748-756 (lines=9) @@
745
     * 
746
     * @return array(Object)
747
     */
748
    private function _serializeTags($result)
749
    {
750
        $tags = array();
751
        while ($record = mysql_fetch_array($result, MYSQL_ASSOC)) {         
752
             $tags[] = $this->_serializeTag($record);
753
        }
754
755
        return $tags;
756
    }
757
758
    /**
759
     * Serialize the mysql row into Tag object
@@ 782-790 (lines=9) @@
779
     * 
780
     * @return array(Object)
781
     */
782
    private function _serializeCategories($result)
783
    {
784
        $cats = array();
785
        while ($record = mysql_fetch_array($result, MYSQL_ASSOC)) {         
786
             $cats[] = $this->_serializeCategory($record);
787
        }
788
789
        return $cats;
790
    }
791
792
    /**
793
     * Serialize the mysql row into Category object