Skip to content

Commit 8bf8800

Browse files
committed
use empty string comparison instead of strlen call
1 parent 2fd60fa commit 8bf8800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/TwoFactorAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ private function getTimeSlice(?int $time = null, int $offset = 0): int
239239

240240
private function base32Decode(string $value): string
241241
{
242-
if (strlen($value) == 0) {
242+
if ($value === '') {
243243
return '';
244244
}
245245

0 commit comments

Comments
 (0)