Code Duplication    Length = 4-4 lines in 2 locations

main/lp/learnpath.class.php 2 locations

@@ 6766-6769 (lines=4) @@
6763
                    $return .= $this->display_manipulate($item_id, $row['item_type']);
6764
                    $return .= $this->display_hotpotatoes_form('edit', $item_id, $row);
6765
                    break;
6766
                case TOOL_STUDENTPUBLICATION:
6767
                    $return .= $this->display_manipulate($item_id, $row['item_type']);
6768
                    $return .= $this->display_student_publication_form('edit', $item_id, $row);
6769
                    break;
6770
                case TOOL_FORUM:
6771
                    $return .= $this->display_manipulate($item_id, $row['item_type']);
6772
                    $return .= $this->display_forum_form('edit', $item_id, $row);
@@ 8950-8953 (lines=4) @@
8947
                    $return .= $this->display_manipulate($item_id, $row['item_type']);
8948
                    $return .= $this->display_quiz_form('move', $item_id, $row);
8949
                    break;
8950
                case TOOL_STUDENTPUBLICATION:
8951
                    $return .= $this->display_manipulate($item_id, $row['item_type']);
8952
                    $return .= $this->display_student_publication_form('move', $item_id, $row);
8953
                    break;
8954
                case TOOL_FORUM:
8955
                    $return .= $this->display_manipulate($item_id, $row['item_type']);
8956
                    $return .= $this->display_forum_form('move', $item_id, $row);