Skip to content

Commit 49887d9

Browse files
authored
Merge pull request #588 from datamweb/refactor-ratelimiting-filter
refactor: remove unused `Auth::class`
2 parents df45877 + 16f57d3 commit 49887d9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Filters/AuthRates.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use CodeIgniter\HTTP\RequestInterface;
1111
use CodeIgniter\HTTP\Response;
1212
use CodeIgniter\HTTP\ResponseInterface;
13-
use CodeIgniter\Shield\Auth;
1413

1514
/**
1615
* Auth Rate-Limiting Filter.
@@ -43,7 +42,7 @@ public function before(RequestInterface $request, $arguments = null)
4342
if ($throttler->check(md5($request->getIPAddress()), 10, MINUTE, 1) === false) {
4443
return service('response')->setStatusCode(
4544
429,
46-
$message = lang('Auth.throttled', [$throttler->getTokenTime()])
45+
lang('Auth.throttled', [$throttler->getTokenTime()]) // message
4746
);
4847
}
4948
}

src/Filters/ChainAuth.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use CodeIgniter\HTTP\RequestInterface;
1111
use CodeIgniter\HTTP\Response;
1212
use CodeIgniter\HTTP\ResponseInterface;
13-
use CodeIgniter\Shield\Auth;
1413

1514
/**
1615
* Chain Authentication Filter.

0 commit comments

Comments
 (0)