Code Duplication    Length = 5-5 lines in 2 locations

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

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