| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 15 | public function findEmailAmountInSetTimespan(string $email, ?int $userId): int |
|
| 28 | { |
||
| 29 | // This service should be called when retrieving ip stats as this class loads the settings it |
||
| 30 | // Stats concerning given email in last timespan |
||
| 31 | 15 | return $this->emailRequestFinderRepository->getLoggedEmailCountInTimespan( |
|
| 32 | 15 | $email, |
|
| 33 | 15 | $this->securitySettings['timespan'], |
|
| 34 | 15 | $userId |
|
| 35 | 15 | ); |
|
| 55 |