1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Apply fixes from StyleCI

This commit is contained in:
Dan Brown
2021-08-21 14:49:40 +00:00
committed by StyleCI Bot
parent cac31b2074
commit 64785ed9da
31 changed files with 173 additions and 161 deletions

View File

@ -45,6 +45,7 @@ class ResetMfa extends Command
$email = $this->option('email');
if (!$id && !$email) {
$this->error('Either a --id=<number> or --email=<email> option must be provided.');
return 1;
}
@ -57,6 +58,7 @@ class ResetMfa extends Command
if (!$user) {
$this->error("A user where {$field}={$value} could not be found.");
return 1;
}
@ -66,6 +68,7 @@ class ResetMfa extends Command
if ($confirm) {
$user->mfaValues()->delete();
$this->info('User MFA methods have been reset.');
return 0;
}