Completed
Pull Request — 6.0 (#2048)
by
unknown
11:49 queued 06:27
created
src/think/middleware/Throttle.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.