Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Oct 17, 2023
1 parent 05f4ec1 commit 502d3f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Services/BackupCodeGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected function generateSingleCode()

protected function saveBackupCodesToDatabase(User $user, array $codes, bool $alreadyHashed = false)
{
if (!$alreadyHashed) {
if (! $alreadyHashed) {
// Hash each backup code
$hashedCodes = array_map(function ($code) {
return $this->hash->make($code);
Expand Down Expand Up @@ -82,6 +82,7 @@ public function getRemainingBackupCodes(User $user): int
}

$hashedBackupCodes = json_decode($twoFactor->backup_codes, true);

return count($hashedBackupCodes);
}
}

0 comments on commit 502d3f3

Please sign in to comment.