Code Duplication    Length = 5-5 lines in 2 locations

main/exercise/export/exercise_import.inc.php 2 locations

@@ 315-319 (lines=5) @@
312
313
    array_push($element_pile, $name);
314
    $current_element = end($element_pile);
315
    if (sizeof($element_pile) >= 2) {
316
        $parent_element = $element_pile[sizeof($element_pile) - 2];
317
    } else {
318
        $parent_element = "";
319
    }
320
    if (sizeof($element_pile) >= 3) {
321
        $grant_parent_element = $element_pile[sizeof($element_pile) - 3];
322
    } else {
@@ 496-500 (lines=5) @@
493
    global $cardinality;
494
495
    $current_element = end($element_pile);
496
    if (sizeof($element_pile) >= 2) {
497
        $parent_element = $element_pile[sizeof($element_pile) - 2];
498
    } else {
499
        $parent_element = "";
500
    }
501
    if (sizeof($element_pile) >= 3) {
502
        $grant_parent_element = $element_pile[sizeof($element_pile) - 3];
503
    } else {