]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Middleware/ThrottleApiRequests.php
respective book and chapter structure added.
[bookstack] / app / Http / Middleware / ThrottleApiRequests.php
index 4e03aed58d50113236f5fef509a89c43101efa8b..cef2d3906ef3915850154110982166a577c7c552 100644 (file)
@@ -6,11 +6,10 @@ use Illuminate\Routing\Middleware\ThrottleRequests as Middleware;
 
 class ThrottleApiRequests extends Middleware
 {
-
     /**
      * Resolve the number of attempts if the user is authenticated or not.
      */
-    protected function resolveMaxAttempts($request, $maxAttempts)
+    protected function resolveMaxAttempts($request, $maxAttempts): int
     {
         return (int) config('api.requests_per_minute');
     }