mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-02 00:10:02 -05:00
refactor: simplify pointless boolean expressions in ifs
This commit is contained in:
@@ -28,7 +28,7 @@ class ForgotPasswordController extends Controller
|
||||
|
||||
protected function validateEmail(Request $request): void
|
||||
{
|
||||
if (\config('captcha.enabled') == false) {
|
||||
if (!\config('captcha.enabled')) {
|
||||
$request->validate(['email' => 'required|email']);
|
||||
} else {
|
||||
$request->validate([
|
||||
|
||||
Reference in New Issue
Block a user