@@ -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 | |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | */ |
| 137 | 137 | private function getHitsCacheKey() |
| 138 | 138 | { |
| 139 | - return $this->key . self::CACHE_KEY_HITS; |
|
| 139 | + return $this->key.self::CACHE_KEY_HITS; |
|
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | /** |
@@ -144,6 +144,6 @@ discard block |
||
| 144 | 144 | */ |
| 145 | 145 | private function getTimeCacheKey() |
| 146 | 146 | { |
| 147 | - return $this->key . self::CACHE_KEY_TIME; |
|
| 147 | + return $this->key.self::CACHE_KEY_TIME; |
|
| 148 | 148 | } |
| 149 | 149 | } |