use empty string comparison instead of strlen call

This commit is contained in:
Mark Magyar
2023-05-27 21:18:06 +02:00
parent 2fd60fad5e
commit 8bf8800523
+1 -1
View File
@@ -239,7 +239,7 @@ class TwoFactorAuth
private function base32Decode(string $value): string
{
if (strlen($value) == 0) {
if ($value === '') {
return '';
}