diff --git a/src/Illuminate/Routing/Middleware/ThrottleRequestsWithRedis.php b/src/Illuminate/Routing/Middleware/ThrottleRequestsWithRedis.php index 65e723d6e4d8..369a78706466 100644 --- a/src/Illuminate/Routing/Middleware/ThrottleRequestsWithRedis.php +++ b/src/Illuminate/Routing/Middleware/ThrottleRequestsWithRedis.php @@ -211,6 +211,6 @@ protected function tooManyAttempts($key, $maxAttempts, $decayMinutes) $this->remaining = $limiter->remaining; - return !$attempt; + return ! $attempt; } } diff --git a/tests/Integration/Http/ThrottleRequestsTest.php b/tests/Integration/Http/ThrottleRequestsTest.php index 251c78e81150..eb8af3a9bf59 100644 --- a/tests/Integration/Http/ThrottleRequestsTest.php +++ b/tests/Integration/Http/ThrottleRequestsTest.php @@ -27,7 +27,7 @@ public function setup() public function test_lock_opens_immediately_after_decay() { Carbon::setTestNow(null); - + Route::get('/', function () { return 'yes'; })->middleware(ThrottleRequests::class.':2,1');