Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 324-328 (lines=5) @@
321
    } else {
322
        $parent_element = "";
323
    }
324
    if (sizeof($element_pile) >= 3) {
325
        $grant_parent_element = $element_pile[sizeof($element_pile) - 3];
326
    } else {
327
        $grant_parent_element = "";
328
    }
329
330
    if ($record_item_body) {
331
@@ 504-508 (lines=5) @@
501
    } else {
502
        $parent_element = "";
503
    }
504
    if (sizeof($element_pile) >= 3) {
505
        $grant_parent_element = $element_pile[sizeof($element_pile) - 3];
506
    } else {
507
        $grant_parent_element = "";
508
    }
509
510
    //treat the record of the full content of itembody tag (needed for question statment and/or FIB text:
511