Code Duplication    Length = 5-5 lines in 2 locations

class/Utility.php 2 locations

@@ 950-954 (lines=5) @@
947
        // Creating category objects
948
        $categoriesObj = $helper->getHandler('category')->getCategories(0, 0, $parentcategory);
949
950
        if (count($categoriesObj) > 0) {
951
            foreach ($categoriesObj as $catID => $categoryObj) {
952
                $ret .= static::addCategoryOption($categoryObj, $selectedid);
953
            }
954
        }
955
        $ret .= '</select>';
956
957
        return $ret;
@@ 978-982 (lines=5) @@
975
976
        // Creating category objects
977
        $categoriesObj = $helper->getHandler('category')->getCategories(0, 0, $parentcategory);
978
        if (count($categoriesObj) > 0) {
979
            foreach ($categoriesObj as $catID => $categoryObj) {
980
                $ret .= static::addCategoryOption($categoryObj, $selectedid);
981
            }
982
        }
983
984
        return $ret;
985
    }