Commit 73e9e218 authored by Jacob Priddy's avatar Jacob Priddy 👌

fix code styles

parent 834649f0
Pipeline #12443 passed with stages
in 3 minutes and 5 seconds
......@@ -3,7 +3,6 @@
namespace Source\UseCases\Users\UpdateUser;
use Source\Entities\User;
use Source\Entities\Password;
use Source\Authorization\Authorizer;
......@@ -59,7 +58,7 @@ class UpdateCurrentUser implements UpdateUserUseCase
if ($doorcode) {
if ($user->getEmplid()) {
$doorcode = $user->getEmplid() . $doorcode;
} else if (strlen($doorcode) < self::MIN_USER_SET_DOORCODE_LEN) {
} elseif (strlen($doorcode) < self::MIN_USER_SET_DOORCODE_LEN) {
$response->setError('Doorcode must be at least ' .
self::MIN_USER_SET_DOORCODE_LEN .
' digits long since you do not have an emplid');
......
......@@ -37,7 +37,7 @@ class UpdateUserUseCaseServiceProvider extends ServiceProvider implements Deferr
{
return [
UpdateUserUseCase::class,
UpdateCurrentUser::class
UpdateCurrentUser::class,
];
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment