Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Pull Request — master (#3862)
by
unknown
17:17 queued 02:21
created

ThrottlePasswordRecovery   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildException() 0 4 1
1
<?php
2
3
namespace Backpack\CRUD\app\Http\Middleware;
4
5
use Illuminate\Routing\Middleware\ThrottleRequests;
6
use Illuminate\Validation\ValidationException;
7
8
class ThrottlePasswordRecovery extends ThrottleRequests
9
{
10
    /**
11
     * Return a validation exception with a nice message to the user instead of the big fat app error.
12
     *
13
     * @param  \Illuminate\Http\Request  $request
14
     * @param  string  $key
15
     * @param  int  $maxAttempts
16
     * @param  callable|null  $responseCallback
17
     * @return \Illuminate\Validation\ValidationException
18
     */
19
    protected function buildException($request, $key, $maxAttempts, $responseCallback = null)
20
    {
21
        return ValidationException::withMessages([
22
            'email' => [trans('backpack::passwords.throttled_request')],
23
        ]);
24
    }
25
}
26