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

Code Duplication    Length = 12-12 lines in 2 locations

src/app/Library/Auth/ResetsPasswords.php 1 location

@@ 154-165 (lines=12) @@
151
     * @param  string  $response
152
     * @return \Illuminate\Http\RedirectResponse|\Illuminate\Http\JsonResponse
153
     */
154
    protected function sendResetFailedResponse(Request $request, $response)
155
    {
156
        if ($request->wantsJson()) {
157
            throw ValidationException::withMessages([
158
                'email' => [trans($response)],
159
            ]);
160
        }
161
162
        return redirect()->back()
163
                    ->withInput($request->only('email'))
164
                    ->withErrors(['email' => trans($response)]);
165
    }
166
167
    /**
168
     * Get the broker to be used during password reset.

src/app/Library/Auth/SendsPasswordResetEmails.php 1 location

@@ 87-98 (lines=12) @@
84
     * @param  string  $response
85
     * @return \Illuminate\Http\RedirectResponse|\Illuminate\Http\JsonResponse
86
     */
87
    protected function sendResetLinkFailedResponse(Request $request, $response)
88
    {
89
        if ($request->wantsJson()) {
90
            throw ValidationException::withMessages([
91
                'email' => [trans($response)],
92
            ]);
93
        }
94
95
        return back()
96
                ->withInput($request->only('email'))
97
                ->withErrors(['email' => trans($response)]);
98
    }
99
100
    /**
101
     * Get the broker to be used during password reset.