Fixed some inspection issues.

This commit is contained in:
Jan Böhmer 2022-08-14 19:32:53 +02:00
parent eef26f7ae6
commit 639829f5c5
97 changed files with 305 additions and 185 deletions

View file

@ -518,8 +518,6 @@ class PermissionsEmbed
$mask = 0b11 << $n; //Mask all bits that should be written
$newval = $new << $n; //The new value.
$data = ($data & ~$mask) | ($newval & $mask);
return $data;
return ($data & ~$mask) | ($newval & $mask);
}
}

View file

@ -721,7 +721,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
*/
public function isGoogleAuthenticatorEnabled(): bool
{
return $this->googleAuthenticatorSecret ? true : false;
return (bool)$this->googleAuthenticatorSecret;
}
/**