Passed
Branch main (591c6a)
by Asiadev
10:15
created
Category
src/RateLimiterMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@
 block discarded – undo
40 40
 
41 41
     public function __invoke(callable $handler)
42 42
     {
43
-        return function (RequestInterface $request, array $options) use ($handler) {
44
-            return $this->rateLimiter->handle(function () use ($request, $handler, $options) {
43
+        return function(RequestInterface $request, array $options) use ($handler) {
44
+            return $this->rateLimiter->handle(function() use ($request, $handler, $options) {
45 45
                 return $handler($request, $options);
46 46
             });
47 47
         };
Please login to merge, or discard this patch.
src/RateLimiter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
         $requestsInCurrentTimeFrame = array_values(array_filter(
55 55
             $this->store->get(),
56
-            function (int $timestamp) use ($currentTimeFrameStart) {
56
+            function(int $timestamp) use ($currentTimeFrameStart) {
57 57
                 return $timestamp >= $currentTimeFrameStart;
58 58
             }
59 59
         ));
Please login to merge, or discard this patch.