refactor: if / else / elseif statements

- Change If Else Value Assign To Early Return
- Change Nested Ifs To Early Return
- Remove Always Else
This commit is contained in:
HDVinnie
2020-02-12 12:34:34 -05:00
parent 8607387023
commit 611fcd6bc1
57 changed files with 1065 additions and 1341 deletions
@@ -43,9 +43,8 @@ class ActivationController extends Controller
return redirect()->route('login')
->withSuccess(trans('auth.activation-success'));
} else {
return redirect()->route('login')
->withErrors(trans('auth.activation-error'));
}
return redirect()->route('login')
->withErrors(trans('auth.activation-error'));
}
}