mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-08-19 00:03:25 +00:00
use empty string comparison instead of strlen call
This commit is contained in:
@@ -239,7 +239,7 @@ class TwoFactorAuth
|
||||
|
||||
private function base32Decode(string $value): string
|
||||
{
|
||||
if (strlen($value) == 0) {
|
||||
if ($value === '') {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user