Skip to content

Commit

Permalink
Missing Class
Browse files Browse the repository at this point in the history
  • Loading branch information
mchev committed Feb 21, 2023
1 parent 2d1aa87 commit bb2960e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/IP.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Mchev\Banhammer;

use Illuminate\Support\Facades\Cache;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Facades\Cache;
use Mchev\Banhammer\Models\Ban;

class IP
Expand Down Expand Up @@ -44,7 +44,7 @@ public static function banned(): Builder
->groupBy('ip');
}

public static function getBannedIPsFromCache(): Array
public static function getBannedIPsFromCache(): array
{
return Cache::has('banned-ips')
? Cache::get('banned-ips')
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/IPBanned.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Mchev\Banhammer\Middleware;

use Closure;
use Illuminate\Support\Facades\Cache;
use Mchev\Banhammer\IP;
use Symfony\Component\HttpFoundation\Response;

class IPBanned
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/LogoutBanned.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Mchev\Banhammer\Middleware;

use Closure;
use Illuminate\Support\Facades\Cache;
use Mchev\Banhammer\IP;
use Symfony\Component\HttpFoundation\Response;

class LogoutBanned
Expand Down

0 comments on commit bb2960e

Please sign in to comment.