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

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