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

@@ 335-351 (lines=17) @@
332
     * @param   MessageBag $errors
333
     * @return  self
334
     */
335
    public function hydrateErrorsFromSession(MessageBag $errors = null)
336
    {
337
        if (!is_null($errors))
338
        {
339
            $this->errors = $errors;
340
            return $this;
341
        }
342
343
        $request = app()->make('request');
344
345
        if ($request->session()->has('errors'))
346
        {
347
            $this->errors = $request->session()->get('errors', MessageBag::class);
348
        }
349
350
        return $this;
351
    }
352
353
    /**
354
     * Hydrates the instance with previous input.
@@ 359-375 (lines=17) @@
356
     * @param   MessageBag $old_input
357
     * @return  self
358
     */
359
    public function hydrateFieldsFromSession(MessageBag $old_input = null)
360
    {
361
        if (!is_null($old_input))
362
        {
363
            $this->old_input = $old_input;
364
            return $this;
365
        }
366
367
        $request = app()->make('request');
368
369
        if ($request->session()->has('_old_input'))
370
        {
371
            $this->old_input = new MessageBag($request->old());
372
        }
373
374
        return $this;
375
    }
376
}
377