Skip to content

Commit fedd74c

Browse files
committed
build: minor adjustments.
1 parent 7940127 commit fedd74c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/OTP.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,11 @@ public function get()
164164
*/
165165
public function verify($generatedOTP)
166166
{
167-
for ($i = 0; $i < $this->maxVerificationNumber; $i++) {
167+
for ($x = 0; $x < $this->maxVerificationNumber; $x++) {
168168

169169
$this->generate();
170170

171-
if ($this->get() == $generatedOTP) {
172-
return true;
173-
}
171+
if ($this->get() === $generatedOTP) { return true; }
174172

175173
$this->counter++;
176174
}

0 commit comments

Comments
 (0)