Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
HDVinnie
2020-01-08 16:28:32 +00:00
committed by StyleCI Bot
parent 5745283f62
commit 9a893662de
215 changed files with 1252 additions and 961 deletions
@@ -93,12 +93,13 @@ class TwoStepController extends Controller
/**
* Show the twostep verification form.
*
* @return \Illuminate\Http\Response
* @throws \Exception
*
* @return \Illuminate\Http\Response
*/
public function showVerification()
{
if (! config('auth.TwoStepEnabled')) {
if (!config('auth.TwoStepEnabled')) {
abort(404);
}
@@ -126,12 +127,12 @@ class TwoStepController extends Controller
$now = new Carbon();
$sentTimestamp = $twoStepAuth->requestDate;
if (! $twoStepAuth->authCode) {
if (!$twoStepAuth->authCode) {
$twoStepAuth->authCode = $this->generateCode();
$twoStepAuth->save();
}
if (! $sentTimestamp) {
if (!$sentTimestamp) {
$this->sendVerificationCodeNotification($twoStepAuth);
} else {
$timeBuffer = config('laravel2step.laravel2stepTimeResetBufferSeconds');
@@ -155,7 +156,7 @@ class TwoStepController extends Controller
*/
public function verify(Request $request)
{
if (! config('auth.TwoStepEnabled')) {
if (!config('auth.TwoStepEnabled')) {
abort(404);
}
@@ -202,7 +203,7 @@ class TwoStepController extends Controller
*/
public function resend()
{
if (! config('auth.TwoStepEnabled')) {
if (!config('auth.TwoStepEnabled')) {
abort(404);
}