Skip to content

Commit b8b6855

Browse files
committed
refactor: rename variable name
1 parent d750603 commit b8b6855

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/Traits/Resettable.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ trait Resettable
1919
*/
2020
public function requiresPasswordReset(): bool
2121
{
22-
$identity_model = model(UserIdentityModel::class);
23-
$identity = $identity_model->getIdentityByType($this, Session::ID_TYPE_EMAIL_PASSWORD);
22+
$identityModel = model(UserIdentityModel::class);
23+
$identity = $identityModel->getIdentityByType($this, Session::ID_TYPE_EMAIL_PASSWORD);
2424

2525
return $identity->force_reset;
2626
}
@@ -36,10 +36,10 @@ public function forcePasswordReset(): void
3636
}
3737

3838
// Set force_reset to true
39-
$identity_model = model(UserIdentityModel::class);
40-
$identity_model->set('force_reset', 1);
41-
$identity_model->where(['user_id' => $this->id, 'type' => Session::ID_TYPE_EMAIL_PASSWORD]);
42-
$identity_model->update();
39+
$identityModel = model(UserIdentityModel::class);
40+
$identityModel->set('force_reset', 1);
41+
$identityModel->where(['user_id' => $this->id, 'type' => Session::ID_TYPE_EMAIL_PASSWORD]);
42+
$identityModel->update();
4343
}
4444

4545
/**
@@ -53,9 +53,9 @@ public function undoForcePasswordReset(): void
5353
}
5454

5555
// Set force_reset to false
56-
$identity_model = model(UserIdentityModel::class);
57-
$identity_model->set('force_reset', 0);
58-
$identity_model->where(['user_id' => $this->id, 'type' => Session::ID_TYPE_EMAIL_PASSWORD]);
59-
$identity_model->update();
56+
$identityModel = model(UserIdentityModel::class);
57+
$identityModel->set('force_reset', 0);
58+
$identityModel->where(['user_id' => $this->id, 'type' => Session::ID_TYPE_EMAIL_PASSWORD]);
59+
$identityModel->update();
6060
}
6161
}

0 commit comments

Comments
 (0)