Skip to content

Commit 69dd93a

Browse files
committed
Merge branch 'l7' of github.com:jeremykenedy/laravel2step into l7
2 parents c35948d + 65aaf1c commit 69dd93a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/app/Http/Controllers/TwoStepController.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private function invalidCodeReturnData($errors = null)
8484
*/
8585
public function showVerification()
8686
{
87-
if (!config('laravel2step.laravel2stepEnabled')) {
87+
if (! config('laravel2step.laravel2stepEnabled')) {
8888
abort(404);
8989
}
9090

@@ -112,12 +112,12 @@ public function showVerification()
112112
$now = new Carbon();
113113
$sentTimestamp = $twoStepAuth->requestDate;
114114

115-
if (!$twoStepAuth->authCode) {
115+
if (! $twoStepAuth->authCode) {
116116
$twoStepAuth->authCode = $this->generateCode();
117117
$twoStepAuth->save();
118118
}
119119

120-
if (!$sentTimestamp) {
120+
if (! $sentTimestamp) {
121121
$this->sendVerificationCodeNotification($twoStepAuth);
122122
} else {
123123
$timeBuffer = config('laravel2step.laravel2stepTimeResetBufferSeconds');
@@ -141,7 +141,7 @@ public function showVerification()
141141
*/
142142
public function verify(Request $request)
143143
{
144-
if (!config('laravel2step.laravel2stepEnabled')) {
144+
if (! config('laravel2step.laravel2stepEnabled')) {
145145
abort(404);
146146
}
147147

@@ -162,7 +162,7 @@ public function verify(Request $request)
162162
$code = $request->v_input_1.$request->v_input_2.$request->v_input_3.$request->v_input_4;
163163
$validCode = $this->_twoStepAuth->authCode;
164164

165-
if ($validCode != $code) {
165+
if ($validCode !== $code) {
166166
$returnData = $this->invalidCodeReturnData();
167167

168168
return response()->json($returnData, 418);
@@ -188,7 +188,7 @@ public function verify(Request $request)
188188
*/
189189
public function resend()
190190
{
191-
if (!config('laravel2step.laravel2stepEnabled')) {
191+
if (! config('laravel2step.laravel2stepEnabled')) {
192192
abort(404);
193193
}
194194

src/database/migrations/2017_12_09_070937_create_two_step_auth_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function up()
1919
$table = $twoStepAuth->getTableName();
2020
$tableCheck = Schema::connection($connection)->hasTable($table);
2121

22-
if (!$tableCheck) {
22+
if (! $tableCheck) {
2323
Schema::connection($connection)->create($table, function (Blueprint $table) {
2424
$table->increments('id');
2525
$table->unsignedBigInteger('userId')->unsigned()->index();

0 commit comments

Comments
 (0)