@@ -106,7 +106,7 @@ |
||
106 | 106 | $startTime = (int) ceil($this->timeProvider->now()) - $this->timeLimit; |
107 | 107 | |
108 | 108 | // Clear all entries older than the window front-edge |
109 | - $relevantTimestamps = array_filter(array_keys($this->hitCountMapping), function ($key) use ($startTime) { |
|
109 | + $relevantTimestamps = array_filter(array_keys($this->hitCountMapping), function($key) use ($startTime) { |
|
110 | 110 | return $startTime <= $key; |
111 | 111 | }); |
112 | 112 |
@@ -102,7 +102,7 @@ |
||
102 | 102 | */ |
103 | 103 | public function check(): bool |
104 | 104 | { |
105 | - return (! $this->throttlerCache->isExpired($this->data->getKey())) |
|
105 | + return (!$this->throttlerCache->isExpired($this->data->getKey())) |
|
106 | 106 | && ($this->throttlerCache->count($this->data->getKey()) < $this->settings->getLimit()); |
107 | 107 | } |
108 | 108 | } |