Code Duplication    Length = 5-5 lines in 2 locations

main/newscorm/learnpath.class.php 2 locations

@@ 9344-9348 (lines=5) @@
9341
                                        $my_dep_file->setAttribute('href', 'document/'.$file_path);
9342
                                        $my_dep->setAttribute('xml:base', '');
9343
                                    }
9344
                                } else {
9345
                                    $zip_files[] = $my_sub_dir.'/'.$doc_info[0];
9346
                                    $my_dep_file->setAttribute('href', $doc_info[0]);
9347
                                    $my_dep->setAttribute('xml:base', $my_xml_sub_dir);
9348
                                }
9349
                                break;
9350
                            default:
9351
                                $my_dep_file->setAttribute('href', $doc_info[0]);
@@ 9617-9621 (lines=5) @@
9614
                                                $my_dep_file->setAttribute('href', 'document/'.$file_path);
9615
                                                $my_dep->setAttribute('xml:base', '');
9616
                                            }
9617
                                        } else {
9618
                                            $zip_files[] = $my_sub_dir.'/'.$doc_info[0];
9619
                                            $my_dep_file->setAttribute('href', $doc_info[0]);
9620
                                            $my_dep->setAttribute('xml:base', $my_xml_sub_dir);
9621
                                        }
9622
                                        break;
9623
                                    default:
9624
                                        $my_dep_file->setAttribute('href', $doc_info[0]); // ../../courses/