Total Complexity | 4 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class ThrottleRequests extends \Illuminate\Routing\Middleware\ThrottleRequests |
||
12 | { |
||
13 | private Repository $config; |
||
14 | |||
15 | public function __construct(RateLimiter $limiter, Repository $config) |
||
16 | { |
||
17 | parent::__construct($limiter); |
||
18 | |||
19 | $this->config = $config; |
||
20 | } |
||
21 | |||
22 | public function handle($request, Closure $next, $maxAttempts = 60, $decayMinutes = 1, $prefix = '') |
||
29 | } |
||
30 | |||
31 | private function isEnabled(): bool |
||
34 | } |
||
35 | } |
||
36 |