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

src/Http/Controllers/AdminController.php 2 locations

@@ 168-187 (lines=20) @@
165
166
        $backUrl = $this->getBackUrl($request);
167
168
        if ($createForm instanceof FormInterface) {
169
            try {
170
                $createForm->validateForm($request, $model);
171
172
                if ($createForm->saveForm($request, $model) === false) {
173
                    return redirect()->back()->with([
174
                        '_redirectBack' => $backUrl,
175
                        'sleeping_owl_tab_id' => $request->get('sleeping_owl_tab_id') ?: null,
176
                    ]);
177
                }
178
            } catch (ValidationException $exception) {
179
                return redirect()->back()
180
                    ->withErrors($exception->validator)
181
                    ->withInput()
182
                    ->with([
183
                        '_redirectBack' => $backUrl,
184
                        'sleeping_owl_tab_id' => $request->get('sleeping_owl_tab_id') ?: null,
185
                    ]);
186
            }
187
        }
188
189
        if ($nextAction == 'save_and_continue') {
190
            $newModel = $createForm->getModel();
@@ 268-287 (lines=20) @@
265
266
        $backUrl = $this->getBackUrl($request);
267
268
        if ($editForm instanceof FormInterface) {
269
            try {
270
                $editForm->validateForm($request, $model);
271
272
                if ($editForm->saveForm($request, $model) === false) {
273
                    return redirect()->back()->with([
274
                        '_redirectBack' => $backUrl,
275
                        'sleeping_owl_tab_id' => $request->get('sleeping_owl_tab_id') ?: null,
276
                    ]);
277
                }
278
            } catch (ValidationException $exception) {
279
                return redirect()->back()
280
                    ->withErrors($exception->validator)
281
                    ->withInput()
282
                    ->with([
283
                        '_redirectBack' => $backUrl,
284
                        'sleeping_owl_tab_id' => $request->get('sleeping_owl_tab_id') ?: null,
285
                    ]);
286
            }
287
        }
288
289
        $redirectPolicy = $model->getRedirect();
290