@@ -106,7 +106,7 @@ |
||
106 | 106 | $timestamps = array_filter(explode(',', $history)); |
107 | 107 | |
108 | 108 | // Filter events within our time window. |
109 | - $filter = fn (string $x): bool => (int) $x >= $this->now - $seconds && (int) $x <= $this->now; |
|
109 | + $filter = fn(string $x): bool => (int) $x >= $this->now - $seconds && (int) $x <= $this->now; |
|
110 | 110 | $in_window = array_filter($timestamps, $filter); |
111 | 111 | |
112 | 112 | if (count($in_window) >= $num) { |