Code Duplication    Length = 5-5 lines in 2 locations

include/functions.php 2 locations

@@ 615-619 (lines=5) @@
612
    // Creating category objects
613
    $categoriesObj = $publisher->getHandler('category')->getCategories(0, 0, $parentcategory);
614
615
    if (count($categoriesObj) > 0) {
616
        foreach ($categoriesObj as $catID => $categoryObj) {
617
            $ret .= publisherAddCategoryOption($categoryObj, $selectedid);
618
        }
619
    }
620
    $ret .= '</select>';
621
622
    return $ret;
@@ 643-647 (lines=5) @@
640
641
    // Creating category objects
642
    $categoriesObj = $publisher->getHandler('category')->getCategories(0, 0, $parentcategory);
643
    if (count($categoriesObj) > 0) {
644
        foreach ($categoriesObj as $catID => $categoryObj) {
645
            $ret .= publisherAddCategoryOption($categoryObj, $selectedid);
646
        }
647
    }
648
649
    return $ret;
650
}