GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 13-15 lines in 2 locations

src/AppBundle/Controller/GroupController.php 1 location

@@ 153-165 (lines=13) @@
150
     * @Route("/seguimiento/informe/{id}", name="admin_group_agreement_report_form", methods={"GET", "POST"})
151
     * @Security("is_granted('AGREEMENT_REPORT', agreement)")
152
     */
153
    public function studentReportAction(Agreement $agreement, Request $request)
154
    {
155
        $breadcrumb = [
156
            ['fixed' => $agreement->getStudent()->getStudentGroup()->getName(), 'path' => 'admin_group_students', 'options' => ['id' => $agreement->getStudent()->getStudentGroup()->getId()]],
157
            ['fixed' => (string) $agreement->getStudent(), 'path' => 'admin_group_student_agreements', 'options' => ['id' => $agreement->getStudent()->getId()]],
158
            ['fixed' => (string) $agreement->getWorkcenter(), 'path' => 'admin_group_student_calendar', 'options' => ['id' => $agreement->getId()]],
159
            ['fixed' => $this->get('translator')->trans('form.report', [], 'student')]
160
        ];
161
162
        $routes = ['admin_group_student_calendar', 'admin_group_agreement_report_download'];
163
164
        return $this->workTutorReportAction($agreement, $request, $breadcrumb, $routes, 'group/report_form.html.twig');
165
    }
166
}
167

src/AppBundle/Controller/TrackingController.php 1 location

@@ 160-174 (lines=15) @@
157
     * @Route("/seguimiento/acuerdo/jornada/{id}", name="admin_group_student_tracking", methods={"GET", "POST"})
158
     * @Security("is_granted('AGREEMENT_ACCESS', workday.getAgreement())")
159
     */
160
    public function studentWorkdayAction(Workday $workday, Request $request)
161
    {
162
        $student = $workday->getAgreement()->getStudent();
163
164
        return $this->baseWorkdayAction($workday, $request, [
165
            'menu_item' => $this->get('app.menu_builders_chain')->getMenuItemByRouteName('admin_tutor_group'),
166
            'breadcrumb' => [
167
                ['fixed' => $student->getStudentGroup()->getName(), 'path' => 'admin_group_students', 'options' => ['id' => $student->getStudentGroup()->getId()]],
168
                ['fixed' => (string) $student, 'path' => 'admin_group_student_agreements', 'options' => ['id' => $student->getId()]],
169
                ['fixed' => (string) $workday->getAgreement()->getWorkcenter(), 'path' => 'admin_group_student_calendar', 'options' => ['id' => $workday->getAgreement()->getId()]],
170
                ['fixed' => $workday->getDate()->format('d/m/Y')]
171
            ],
172
            'back_route_name' => 'admin_group_student_calendar'
173
        ]);
174
    }
175
176
    /**
177
     * @Route("/seguimiento/acuerdo/jornada/modificar/{id}", name="admin_group_student_workday_form", methods={"GET", "POST"})