Code Duplication    Length = 5-5 lines in 2 locations

class/utility.php 2 locations

@@ 940-944 (lines=5) @@
937
        // Creating category objects
938
        $categoriesObj = $publisher->getHandler('category')->getCategories(0, 0, $parentcategory);
939
940
        if (count($categoriesObj) > 0) {
941
            foreach ($categoriesObj as $catID => $categoryObj) {
942
                $ret .= static::addCategoryOption($categoryObj, $selectedid);
943
            }
944
        }
945
        $ret .= '</select>';
946
947
        return $ret;
@@ 968-972 (lines=5) @@
965
966
        // Creating category objects
967
        $categoriesObj = $publisher->getHandler('category')->getCategories(0, 0, $parentcategory);
968
        if (count($categoriesObj) > 0) {
969
            foreach ($categoriesObj as $catID => $categoryObj) {
970
                $ret .= static::addCategoryOption($categoryObj, $selectedid);
971
            }
972
        }
973
974
        return $ret;
975
    }