Skip to content

Commit 73f0ee7

Browse files
authored
Merge pull request #99 from vendi-advertising/cjh-typo-his
Fix typo hasUserHisThrottling to hasUserHitThrottling (his/hit)
2 parents 262db21 + 8d1dc7f commit 73f0ee7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ResetPasswordHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function generateResetToken(object $user): ResetPasswordToken
6464
{
6565
$this->resetPasswordCleaner->handleGarbageCollection();
6666

67-
if ($this->hasUserHisThrottling($user)) {
67+
if ($this->hasUserHitThrottling($user)) {
6868
throw new TooManyPasswordRequestsException();
6969
}
7070

@@ -158,7 +158,7 @@ private function findResetPasswordRequest(string $token): ?ResetPasswordRequestI
158158
return $this->repository->findResetPasswordRequest($selector);
159159
}
160160

161-
private function hasUserHisThrottling(object $user): bool
161+
private function hasUserHitThrottling(object $user): bool
162162
{
163163
$lastRequestDate = $this->repository->getMostRecentNonExpiredRequestDate($user);
164164

tests/UnitTests/ResetPasswordHelperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected function setUp(): void
6565
}
6666

6767
/**
68-
* @covers \SymfonyCasts\Bundle\ResetPassword\ResetPasswordHelper::hasUserHisThrottling
68+
* @covers \SymfonyCasts\Bundle\ResetPassword\ResetPasswordHelper::hasUserHitThrottling
6969
*/
7070
public function testHasUserThrottlingReturnsFalseWithNoLastRequestDate(): void
7171
{
@@ -92,7 +92,7 @@ public function testHasUserThrottlingReturnsFalseWithNoLastRequestDate(): void
9292
}
9393

9494
/**
95-
* @covers \SymfonyCasts\Bundle\ResetPassword\ResetPasswordHelper::hasUserHisThrottling
95+
* @covers \SymfonyCasts\Bundle\ResetPassword\ResetPasswordHelper::hasUserHitThrottling
9696
*/
9797
public function testHasUserThrottlingReturnsFalseIfNotBeforeThrottleTime(): void
9898
{

0 commit comments

Comments
 (0)