Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 346-350 (lines=5) @@
343
    } else {
344
        $parent_element = "";
345
    }
346
    if (sizeof($element_pile) >= 3) {
347
        $grant_parent_element = $element_pile[sizeof($element_pile) - 3];
348
    } else {
349
        $grant_parent_element = "";
350
    }
351
352
    if ($record_item_body) {
353
@@ 526-530 (lines=5) @@
523
    } else {
524
        $parent_element = "";
525
    }
526
    if (sizeof($element_pile) >= 3) {
527
        $grant_parent_element = $element_pile[sizeof($element_pile) - 3];
528
    } else {
529
        $grant_parent_element = "";
530
    }
531
532
    //treat the record of the full content of itembody tag (needed for question statment and/or FIB text:
533