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

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