EmailVerificationNotificationController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 14
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A store() 0 9 2
1
<?php
2
3
namespace App\Modules\Sellers\Http\Controllers\Auth;
4
5
use App\Modules\Sellers\Http\Controllers\Controller;
6
use Illuminate\Http\RedirectResponse;
7
use Illuminate\Http\Request;
8
9
class EmailVerificationNotificationController extends Controller
10
{
11
    /**
12
     * Send a new email verification notification.
13
     */
14 1
    public function store(Request $request): RedirectResponse
15
    {
16 1
        if ($request->user('seller')->hasVerifiedEmail()) {
17 1
            return redirect()->intended('/seller');
18
        }
19
20 1
        $request->user('seller')->sendEmailVerificationNotification();
21
22 1
        return back()->with('status', 'verification-link-sent');
23
    }
24
}
25