]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Middleware/ThrottleApiRequests.php
respective book and chapter structure added.
[bookstack] / app / Http / Middleware / ThrottleApiRequests.php
index d08840cd1f857415e76a2496b200c22873c30d9f..cef2d3906ef3915850154110982166a577c7c552 100644 (file)
@@ -6,13 +6,11 @@ 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');
     }
-
-}
\ No newline at end of file
+}