Code Duplication    Length = 5-5 lines in 2 locations

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

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