fix: resolve PHPStan static analysis warnings

This commit is contained in:
xboard committed 2025-04-14 02:12:42 +08:00
1 parent 9e2f46c688
commit b885e644a8
84 files changed
+2330 -1190

No files matched your search

@@ -58,11 +58,13 @@ class UserController extends Controller
if (!$user) {
return $this->fail([400, __('The user does not exist')]);
}
if (!Helper::multiPasswordVerify(
$user->password_algo,
$user->password_salt,
$request->input('old_password'),
$user->password)
if (
!Helper::multiPasswordVerify(
$user->password_algo,
$user->password_salt,
$request->input('old_password'),
$user->password
)
) {
return $this->fail([400, __('The old password is wrong')]);
}