@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | { |
29 | 29 | $this->middleware('auth'); |
30 | 30 | |
31 | - $this->middleware(function ($request, $next) { |
|
31 | + $this->middleware(function($request, $next) { |
|
32 | 32 | $this->setUser2StepData(); |
33 | 33 | |
34 | 34 | return $next($request); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | public function showVerification() |
86 | 86 | { |
87 | - if (! config('laravel2step.laravel2stepEnabled')) { |
|
87 | + if (!config('laravel2step.laravel2stepEnabled')) { |
|
88 | 88 | abort(404); |
89 | 89 | } |
90 | 90 | |
@@ -112,12 +112,12 @@ discard block |
||
112 | 112 | $now = new Carbon(); |
113 | 113 | $sentTimestamp = $twoStepAuth->requestDate; |
114 | 114 | |
115 | - if (! $twoStepAuth->authCode) { |
|
115 | + if (!$twoStepAuth->authCode) { |
|
116 | 116 | $twoStepAuth->authCode = $this->generateCode(); |
117 | 117 | $twoStepAuth->save(); |
118 | 118 | } |
119 | 119 | |
120 | - if (! $sentTimestamp) { |
|
120 | + if (!$sentTimestamp) { |
|
121 | 121 | $this->sendVerificationCodeNotification($twoStepAuth); |
122 | 122 | } else { |
123 | 123 | $timeBuffer = config('laravel2step.laravel2stepTimeResetBufferSeconds'); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | */ |
142 | 142 | public function verify(Request $request) |
143 | 143 | { |
144 | - if (! config('laravel2step.laravel2stepEnabled')) { |
|
144 | + if (!config('laravel2step.laravel2stepEnabled')) { |
|
145 | 145 | abort(404); |
146 | 146 | } |
147 | 147 | |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | */ |
189 | 189 | public function resend() |
190 | 190 | { |
191 | - if (! config('laravel2step.laravel2stepEnabled')) { |
|
191 | + if (!config('laravel2step.laravel2stepEnabled')) { |
|
192 | 192 | abort(404); |
193 | 193 | } |
194 | 194 |
@@ -19,8 +19,8 @@ |
||
19 | 19 | $table = $twoStepAuth->getTableName(); |
20 | 20 | $tableCheck = Schema::connection($connection)->hasTable($table); |
21 | 21 | |
22 | - if (! $tableCheck) { |
|
23 | - Schema::connection($connection)->create($table, function (Blueprint $table) { |
|
22 | + if (!$tableCheck) { |
|
23 | + Schema::connection($connection)->create($table, function(Blueprint $table) { |
|
24 | 24 | $table->increments('id'); |
25 | 25 | $table->unsignedBigInteger('userId')->unsigned()->index(); |
26 | 26 | $table->foreign('userId')->references('id')->on('users')->onDelete('cascade'); |