Code Duplication    Length = 9-9 lines in 2 locations

main/inc/lib/fileUpload.lib.php 2 locations

@@ 508-516 (lines=9) @@
505
                            // If the file is in a folder, we need to update all parent folders
506
                            item_property_update_on_folder($courseInfo, $uploadPath, $userId);
507
                            // Display success message to user
508
                            if ($output) {
509
                                Display::addFlash(
510
                                    Display::return_message(
511
                                        get_lang('UplUploadSucceeded').'<br /> '.$documentTitle,
512
                                        'confirmation',
513
                                        false
514
                                    )
515
                                );
516
                            }
517
518
                            return $filePath;
519
                        }
@@ 681-689 (lines=9) @@
678
                            );
679
680
                            // Display success message to user
681
                            if ($output) {
682
                                Display::addFlash(
683
                                    Display::return_message(
684
                                        get_lang('UplUploadSucceeded').'<br /> '.$documentTitle,
685
                                        'confirmation',
686
                                        false
687
                                    )
688
                                );
689
                            }
690
691
                            return $filePath;
692
                        } else {