Code Duplication    Length = 6-6 lines in 2 locations

src/Chamilo/CoreBundle/Framework/PageController.php 2 locations

@@ 130-135 (lines=6) @@
127
                        'title' => get_lang('HistoryTrainingSessions')
128
                    );
129
                }
130
            } else {
131
                $my_account_content[] = array(
132
                    'href'  => api_get_path(WEB_CODE_PATH).'dashboard/index.php',
133
                    'title' => get_lang('Dashboard')
134
                );
135
            }
136
        }
137
138
        $this->show_right_block(get_lang('Courses'), $my_account_content, 'course_block');
@@ 573-578 (lines=6) @@
570
                        'href'  => api_get_path(WEB_CODE_PATH).'auth/courses.php',
571
                        'title' => get_lang('CourseCatalog')
572
                    );
573
                } else {
574
                    $elements[] = array(
575
                        'href'  => api_get_path(WEB_CODE_PATH).'dashboard/index.php',
576
                        'title' => get_lang('Dashboard')
577
                    );
578
                }
579
            }
580
        }
581
        $this->show_right_block(get_lang('Courses'), $elements, 'teacher_block');