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::buildException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 4
dl 0
loc 4
rs 10
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