Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 319-323 (lines=5) @@
316
317
    array_push($element_pile, $name);
318
    $current_element = end($element_pile);
319
    if (sizeof($element_pile) >= 2) {
320
        $parent_element = $element_pile[sizeof($element_pile) - 2];
321
    } else {
322
        $parent_element = "";
323
    }
324
    if (sizeof($element_pile) >= 3) {
325
        $grant_parent_element = $element_pile[sizeof($element_pile) - 3];
326
    } else {
@@ 499-503 (lines=5) @@
496
    global $cardinality;
497
498
    $current_element = end($element_pile);
499
    if (sizeof($element_pile) >= 2) {
500
        $parent_element = $element_pile[sizeof($element_pile) - 2];
501
    } else {
502
        $parent_element = "";
503
    }
504
    if (sizeof($element_pile) >= 3) {
505
        $grant_parent_element = $element_pile[sizeof($element_pile) - 3];
506
    } else {