Code Duplication    Length = 5-5 lines in 2 locations

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

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