File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public function generateResetToken(object $user): ResetPasswordToken
64
64
{
65
65
$ this ->resetPasswordCleaner ->handleGarbageCollection ();
66
66
67
- if ($ this ->hasUserHisThrottling ($ user )) {
67
+ if ($ this ->hasUserHitThrottling ($ user )) {
68
68
throw new TooManyPasswordRequestsException ();
69
69
}
70
70
@@ -158,7 +158,7 @@ private function findResetPasswordRequest(string $token): ?ResetPasswordRequestI
158
158
return $ this ->repository ->findResetPasswordRequest ($ selector );
159
159
}
160
160
161
- private function hasUserHisThrottling (object $ user ): bool
161
+ private function hasUserHitThrottling (object $ user ): bool
162
162
{
163
163
$ lastRequestDate = $ this ->repository ->getMostRecentNonExpiredRequestDate ($ user );
164
164
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ protected function setUp(): void
65
65
}
66
66
67
67
/**
68
- * @covers \SymfonyCasts\Bundle\ResetPassword\ResetPasswordHelper::hasUserHisThrottling
68
+ * @covers \SymfonyCasts\Bundle\ResetPassword\ResetPasswordHelper::hasUserHitThrottling
69
69
*/
70
70
public function testHasUserThrottlingReturnsFalseWithNoLastRequestDate (): void
71
71
{
@@ -92,7 +92,7 @@ public function testHasUserThrottlingReturnsFalseWithNoLastRequestDate(): void
92
92
}
93
93
94
94
/**
95
- * @covers \SymfonyCasts\Bundle\ResetPassword\ResetPasswordHelper::hasUserHisThrottling
95
+ * @covers \SymfonyCasts\Bundle\ResetPassword\ResetPasswordHelper::hasUserHitThrottling
96
96
*/
97
97
public function testHasUserThrottlingReturnsFalseIfNotBeforeThrottleTime (): void
98
98
{
You can’t perform that action at this time.
0 commit comments