Code Duplication    Length = 4-12 lines in 2 locations

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

@@ 815-826 (lines=12) @@
812
                                        api_get_self().'?action=stats'.$my_url_suffix.'&session_id='.$session_id.'&lp_item_id='.$my_id.'#'.$linkId,
813
                                        ['id' => $linkId]
814
                                    );
815
                                } else {
816
                                    $correct_test_link = Display::url(
817
                                        Display::return_icon(
818
                                            'view_more_stats.gif',
819
                                            get_lang(
820
                                                'ShowAllAttemptsByExercise'
821
                                            )
822
                                        ),
823
                                        api_get_self().'?action=stats&extend_attempt=1'.$my_url_suffix.'&session_id='.$session_id.'&lp_item_id='.$my_id.'#'.$linkId,
824
                                        ['id' => $linkId]
825
                                    );
826
                                }
827
                            }
828
                        }
829
@@ 4739-4742 (lines=4) @@
4736
                    ) {
4737
                        $html .= '<a href="#course_session_header">';
4738
                        $html .= Display::return_icon('2rightarrow_na.png', get_lang('Details'));
4739
                    } else {
4740
                        $html .= '<a href="'.api_get_self().'?course='.$course_code.$extra_params.'#course_session_header">';
4741
                        $html .= Display::return_icon('2rightarrow.png', get_lang('Details'));
4742
                    }
4743
                    $html .= '</a>';
4744
                    $html .= '</td></tr>';
4745
                }