Skip to content

Commit

Permalink
Merge pull request #13 from dvdpzzt-kimia/hotfx/laravel-facades-import
Browse files Browse the repository at this point in the history
Hotfx/laravel facades import
  • Loading branch information
diego-ninja authored Nov 19, 2024
2 parents e2eeeb2 + 7833a43 commit 4873a1c
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/DeviceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Cookie;
use Ninja\DeviceTracker\Contracts\StorableId;
use Ninja\DeviceTracker\Enums\Transport;
use Ninja\DeviceTracker\Events\DeviceAttachedEvent;
Expand Down
1 change: 0 additions & 1 deletion src/Events/DeviceCreatedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Ninja\DeviceTracker\Events;

use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Ninja\DeviceTracker\Models\Device;
Expand Down
2 changes: 0 additions & 2 deletions src/Http/Controllers/SessionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
use Ninja\DeviceTracker\Factories\SessionIdFactory;
use Ninja\DeviceTracker\Http\Resources\SessionResource;
use Ninja\DeviceTracker\Models\Session;
use PragmaRX\Google2FA\Exceptions\InvalidAlgorithmException;
use Ramsey\Uuid\Uuid;

/**
* @authenticated
Expand Down
1 change: 0 additions & 1 deletion src/Http/Middleware/DeviceTracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
use Ninja\DeviceTracker\Contracts\StorableId;
use Ninja\DeviceTracker\Enums\Transport;
use Ninja\DeviceTracker\Exception\DeviceNotFoundException;
use Ninja\DeviceTracker\Exception\FingerprintNotFoundException;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Device.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Ninja\DeviceTracker\Models;

use Carbon\Carbon;
use DB;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Casts\Attribute;
Expand All @@ -13,6 +12,7 @@
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Cookie;
use Illuminate\Support\Facades\DB;
use Ninja\DeviceTracker\Cache\DeviceCache;
use Ninja\DeviceTracker\Contracts\Cacheable;
use Ninja\DeviceTracker\Contracts\StorableId;
Expand Down
1 change: 0 additions & 1 deletion src/Models/Relations/HasManySessions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Support\Facades\Session as SessionFacade;
use Ninja\DeviceTracker\Enums\SessionStatus;
use Ninja\DeviceTracker\Models\Session;

Expand Down
2 changes: 1 addition & 1 deletion src/Models/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Ninja\DeviceTracker\Models;

use App;
use Carbon\Carbon;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Session as SessionFacade;
Expand Down
2 changes: 0 additions & 2 deletions src/Modules/Security/DeviceSecurityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
namespace Ninja\DeviceTracker\Modules\Security;

use Ninja\DeviceTracker\Models\Device;
use Ninja\DeviceTracker\Models\Session;
use Ninja\DeviceTracker\Modules\Security\Context\SecurityContext;
use Ninja\DeviceTracker\Modules\Security\DTO\Risk;
use Ninja\DeviceTracker\Modules\Security\Enums\RiskLevel;

final readonly class DeviceSecurityManager
{
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/Security/Rule/AbstractSecurityRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Ninja\DeviceTracker\Modules\Security\Rule;

use Log;
use Illuminate\Support\Facades\Log;
use Ninja\DeviceTracker\Exception\SessionNotFoundException;
use Ninja\DeviceTracker\Models\Device;
use Ninja\DeviceTracker\Models\Session;
Expand Down

0 comments on commit 4873a1c

Please sign in to comment.