@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare (strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace think\middleware; |
6 | 6 | |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | $now = time(); |
124 | 124 | |
125 | 125 | // 移除过期的请求的记录 |
126 | - $history = array_values(array_filter($history, function ($val) use ($now, $duration) { |
|
126 | + $history = array_values(array_filter($history, function($val) use ($now, $duration) { |
|
127 | 127 | return $val >= $now - $duration; |
128 | 128 | })); |
129 | 129 |