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/MyStudentController.php 1 location

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

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