mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-18 21:34:35 -04:00
PHPStan level 6 for all PDO and Exception classes (#5239)
* PHPStan level 6 for all PDO and Exception classes Contributes to https://github.com/FreshRSS/FreshRSS/issues/4112 * Fix type * Now also our remaining own librairies * Motivation for a few more files * A few more DAO classes * Last interface
This commit is contained in:
committed by
GitHub
parent
c9d5fe2da1
commit
288ed04ccc
@@ -431,11 +431,13 @@ class FreshRSS_user_Controller extends FreshRSS_ActionController {
|
||||
} elseif (FreshRSS_Auth::hasAccess()) {
|
||||
$user_config = FreshRSS_Context::$user_conf;
|
||||
} else {
|
||||
return Minz_Error::error(403);
|
||||
Minz_Error::error(403);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!FreshRSS_UserDAO::exists($username) || $user_config === null) {
|
||||
return Minz_Error::error(404);
|
||||
Minz_Error::error(404);
|
||||
return;
|
||||
}
|
||||
|
||||
if ($user_config->email_validation_token === '') {
|
||||
|
||||
Reference in New Issue
Block a user