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

src/Services/CrudFields.php 2 locations

@@ 298-314 (lines=17) @@
295
     * @param   MessageBag $errors
296
     * @return  self
297
     */
298
    public function hydrateErrorsFromSession(MessageBag $errors = null)
299
    {
300
        if (!is_null($errors))
301
        {
302
            $this->errors = $errors;
303
            return $this;
304
        }
305
306
        $request = app()->make('request');
307
308
        if ($request->session()->has('errors'))
309
        {
310
            $this->errors = $request->session()->get('errors', MessageBag::class);
311
        }
312
313
        return $this;
314
    }
315
316
    /**
317
     * Hydrates the instance with previous input.
@@ 322-338 (lines=17) @@
319
     * @param   MessageBag $old_input
320
     * @return  self
321
     */
322
    public function hydrateFieldsFromSession(MessageBag $old_input = null)
323
    {
324
        if (!is_null($old_input))
325
        {
326
            $this->old_input = $old_input;
327
            return $this;
328
        }
329
330
        $request = app()->make('request');
331
332
        if ($request->session()->has('_old_input'))
333
        {
334
            $this->old_input = new MessageBag($request->old());
335
        }
336
337
        return $this;
338
    }
339
}
340