Code Duplication    Length = 9-10 lines in 2 locations

src/stubs/ForgotPasswordController.php 1 location

@@ 54-62 (lines=9) @@
51
     * @param  string  $response
52
     * @return mixed
53
     */
54
    protected function sendResetLinkResponse(Request $request, $response)
55
    {
56
        if ($request->expectsJson()) {
57
            return response()->json([
58
                'status' => trans($response)
59
            ]);
60
        }
61
        return back()->with('status', trans($response));
62
    }
63
64
    /**
65
     * Get the response for a failed password reset link.

src/stubs/ResetPasswordController.php 1 location

@@ 60-69 (lines=10) @@
57
     * @param  string  $response
58
     * @return \Illuminate\Http\RedirectResponse
59
     */
60
    protected function sendResetResponse(Request $request,$response)
61
    {
62
        if ($request->expectsJson()) {
63
            return response()->json([
64
                'status' => trans($response)
65
            ]);
66
        }
67
        return redirect($this->redirectPath())
68
            ->with('status', trans($response));
69
    }
70
71
    /**
72
     * Get the response for a failed password reset.