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 = 10-11 lines in 2 locations

src/AppBundle/Controller/TrackingController.php 1 location

@@ 96-105 (lines=10) @@
93
        if ($request->request->has('delete')) {
94
            return $this->deleteWorkdayAction($agreement, $request);
95
        }
96
        if ($request->request->has('week_lock') || $request->request->has('week_lock_print') || ($request->request->has('week_unlock'))) {
97
            $this->lockWeekHelper($agreement, $request, !$request->request->has('week_unlock'));
98
            if ($request->request->has('week_lock_print')) {
99
                $data = $request->request->get('week_lock_print');
100
                $week = $data % 100;
101
                $year = intdiv($data, 100);
102
                return $this->redirectToRoute('my_student_weekly_report_download', ['id' => $agreement->getId(), 'week' => $week, 'year' => $year]);
103
            }
104
            return $this->redirectToRoute('admin_group_student_calendar', ['id' => $agreement->getId()]);
105
        }
106
        return $this->lockWorkdayAction($agreement, $request, $request->request->has('lock'), 'admin_group_student_calendar');
107
    }
108

src/AppBundle/Controller/MyStudentController.php 1 location

@@ 117-127 (lines=11) @@
114
     */
115
    public function operationWorkdayAction(Agreement $agreement, Request $request)
116
    {
117
        if ($request->request->has('week_lock') || $request->request->has('week_lock_print') || ($request->request->has('week_unlock'))) {
118
            $this->lockWeekHelper($agreement, $request, !$request->request->has('week_unlock'));
119
120
            if ($request->request->has('week_lock_print')) {
121
                $data = $request->request->get('week_lock_print');
122
                $week = $data % 100;
123
                $year = intdiv($data, 100);
124
                return $this->redirectToRoute('my_student_weekly_report_download', ['id' => $agreement->getId(), 'week' => $week, 'year' => $year]);
125
            }
126
            $this->redirectToRoute('my_student_agreement_calendar', ['id' => $agreement->getId()]);
127
        }
128
        return $this->lockWorkdayAction($agreement, $request, $request->request->has('lock'), 'my_student_agreement_calendar');
129
    }
130
    /**