Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 353-357 (lines=5) @@
350
    } else {
351
        $parent_element = "";
352
    }
353
    if (sizeof($element_pile) >= 3) {
354
        $grant_parent_element = $element_pile[sizeof($element_pile) - 3];
355
    } else {
356
        $grant_parent_element = "";
357
    }
358
359
    if ($record_item_body) {
360
@@ 534-538 (lines=5) @@
531
    } else {
532
        $parent_element = "";
533
    }
534
    if (sizeof($element_pile) >= 3) {
535
        $grant_parent_element = $element_pile[sizeof($element_pile) - 3];
536
    } else {
537
        $grant_parent_element = "";
538
    }
539
540
    //treat the record of the full content of itembody tag (needed for question statment and/or FIB text:
541