Skip to content

Commit 2985af9

Browse files
committed
Merge branch 'main' of github.com:always-open/laravel-auth-notifications into main
2 parents f610cd0 + 817707d commit 2985af9

File tree

7 files changed

+14
-23
lines changed

7 files changed

+14
-23
lines changed

src/AuthNotificationsServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Spatie\LaravelPackageTools\Package;
66
use Spatie\LaravelPackageTools\PackageServiceProvider;
7-
use AlwaysOpen\AuthNotifications\Commands\AuthNotificationsCommand;
87

98
class AuthNotificationsServiceProvider extends PackageServiceProvider
109
{

src/Events/LoginWasChanged.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@
22

33
namespace AlwaysOpen\AuthNotifications\Events;
44

5-
use Illuminate\Broadcasting\Channel;
65
use Illuminate\Broadcasting\InteractsWithSockets;
7-
use Illuminate\Broadcasting\PresenceChannel;
8-
use Illuminate\Broadcasting\PrivateChannel;
9-
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
106
use Illuminate\Foundation\Events\Dispatchable;
117
use Illuminate\Queue\SerializesModels;
128

139
class LoginWasChanged
1410
{
15-
use Dispatchable, InteractsWithSockets, SerializesModels;
11+
use Dispatchable;
12+
use InteractsWithSockets;
13+
use SerializesModels;
1614

1715
public function __construct(public $user)
1816
{

src/Events/PasswordWasChanged.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22

33
namespace AlwaysOpen\AuthNotifications\Events;
44

5-
use Illuminate\Broadcasting\Channel;
65
use Illuminate\Broadcasting\InteractsWithSockets;
7-
use Illuminate\Broadcasting\PresenceChannel;
86
use Illuminate\Broadcasting\PrivateChannel;
9-
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
107
use Illuminate\Foundation\Events\Dispatchable;
118
use Illuminate\Queue\SerializesModels;
129

1310
class PasswordWasChanged
1411
{
15-
use Dispatchable, InteractsWithSockets, SerializesModels;
12+
use Dispatchable;
13+
use InteractsWithSockets;
14+
use SerializesModels;
1615

1716
/**
1817
* Create a new event instance.

src/Events/TwoFactorWasDisabled.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22

33
namespace AlwaysOpen\AuthNotifications\Events;
44

5-
use Illuminate\Broadcasting\Channel;
65
use Illuminate\Broadcasting\InteractsWithSockets;
7-
use Illuminate\Broadcasting\PresenceChannel;
86
use Illuminate\Broadcasting\PrivateChannel;
9-
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
107
use Illuminate\Foundation\Events\Dispatchable;
118
use Illuminate\Queue\SerializesModels;
129

1310
class TwoFactorWasDisabled
1411
{
15-
use Dispatchable, InteractsWithSockets, SerializesModels;
12+
use Dispatchable;
13+
use InteractsWithSockets;
14+
use SerializesModels;
1615

1716
/**
1817
* Create a new event instance.

src/Events/TwoFactorWasEnabled.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22

33
namespace AlwaysOpen\AuthNotifications\Events;
44

5-
use Illuminate\Broadcasting\Channel;
65
use Illuminate\Broadcasting\InteractsWithSockets;
7-
use Illuminate\Broadcasting\PresenceChannel;
86
use Illuminate\Broadcasting\PrivateChannel;
9-
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
107
use Illuminate\Foundation\Events\Dispatchable;
118
use Illuminate\Queue\SerializesModels;
129

1310
class TwoFactorWasEnabled
1411
{
15-
use Dispatchable, InteractsWithSockets, SerializesModels;
12+
use Dispatchable;
13+
use InteractsWithSockets;
14+
use SerializesModels;
1615

1716
/**
1817
* Create a new event instance.

src/Listeners/AuthEventSubscriber.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@
77
use AlwaysOpen\AuthNotifications\Events\TwoFactorWasEnabled;
88
use Illuminate\Auth\Events\Failed;
99
use Illuminate\Auth\Events\Lockout;
10-
use Illuminate\Auth\Events\Login;
1110
use Illuminate\Auth\Events\Validated;
1211
use Illuminate\Contracts\Events\Dispatcher;
13-
use Illuminate\Contracts\Queue\ShouldQueue;
14-
use Illuminate\Queue\InteractsWithQueue;
1512
use Illuminate\Support\Str;
1613

1714
class AuthEventSubscriber
@@ -53,7 +50,7 @@ public function handleTwoFactorWasDisabled(TwoFactorWasDisabled $event): void
5350

5451
public function subscribe(Dispatcher $events): void
5552
{
56-
collect(config('auth-notifications.listen_to'))->each(function($item) use($events) {
53+
collect(config('auth-notifications.listen_to'))->each(function ($item) use ($events) {
5754
$events->listen(
5855
$item,
5956
[

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace AlwaysOpen\AuthNotifications\Tests;
44

5+
use AlwaysOpen\AuthNotifications\AuthNotificationsServiceProvider;
56
use Illuminate\Database\Eloquent\Factories\Factory;
67
use Orchestra\Testbench\TestCase as Orchestra;
7-
use AlwaysOpen\AuthNotifications\AuthNotificationsServiceProvider;
88

99
class TestCase extends Orchestra
1010
{

0 commit comments

Comments
 (0)