Code Duplication    Length = 3-4 lines in 2 locations

main/inc/lib/MoodleImport.class.php 2 locations

@@ 436-439 (lines=4) @@
433
                            break;
434
                        }
435
436
                        if ($isThisItemThatIWant && $item->nodeName == 'mimetype' && $item->nodeValue !== 'document/unknown') {
437
                            $currentItem['mimetype'] = $item->nodeValue;
438
                            break 2;
439
                        }
440
                    }
441
                }
442
            }
@@ 912-914 (lines=3) @@
909
                            $thisIsAnInvalidItem = true;
910
                        }
911
912
                        if ($item->nodeName == 'mimetype' && $item->nodeValue !== 'document/unknown') {
913
                            $currentItem['mimetype'] = $item->nodeValue;
914
                        }
915
                    }
916
                }
917