Applied styleci changes

This commit is contained in:
Dan Brown 2021-08-30 21:32:07 +01:00
parent 2740603d99
commit 8f12c8bc99
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
2 changed files with 5 additions and 4 deletions

View File

@ -26,12 +26,12 @@ class CheckEmailConfirmed
$this->confirmationService = $confirmationService; $this->confirmationService = $confirmationService;
} }
/** /**
* Handle an incoming request. * Handle an incoming request.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param \Closure $next * @param \Closure $next
*
* @return mixed * @return mixed
*/ */
public function handle($request, Closure $next) public function handle($request, Closure $next)
@ -40,6 +40,7 @@ class CheckEmailConfirmed
$user = auth()->user(); $user = auth()->user();
if (auth()->check() && !$user->email_confirmed && $this->confirmationService->confirmationRequired()) { if (auth()->check() && !$user->email_confirmed && $this->confirmationService->confirmationRequired()) {
auth()->logout(); auth()->logout();
return redirect()->to('/'); return redirect()->to('/');
} }

View File

@ -470,7 +470,7 @@ class AuthTest extends BrowserKitTest
$this->assertTrue(auth()->check()); $this->assertTrue(auth()->check());
$this->get('/books'); $this->get('/books');
$this->assertRedirectedTo("/"); $this->assertRedirectedTo('/');
$this->assertFalse(auth()->check()); $this->assertFalse(auth()->check());
} }