Skip to content

Commit cd2ddfb

Browse files
committed
Refactor event listener constructors for consistency and remove unused imports in authentication routes
1 parent 9795ba7 commit cd2ddfb

File tree

7 files changed

+6
-25
lines changed

7 files changed

+6
-25
lines changed

app/Events/Frontend/UserRegistered.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Illuminate\Broadcasting\InteractsWithSockets;
77
use Illuminate\Broadcasting\PrivateChannel;
88
use Illuminate\Foundation\Events\Dispatchable;
9-
109
use Illuminate\Queue\SerializesModels;
1110

1211
class UserRegistered
@@ -24,7 +23,7 @@ public function __construct(User $user)
2423
{
2524
$this->user = $user;
2625
}
27-
26+
2827
/**
2928
* Get the channels the event should broadcast on.
3029
*

app/Listeners/Auth/UpdateLoginData.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class UpdateLoginData
1212
*
1313
* @return void
1414
*/
15-
public function __construct()
16-
{
17-
}
15+
public function __construct() {}
1816

1917
/**
2018
* Handle the event.

app/Listeners/Backend/UserCreated/UserCreatedNotifySuperUser.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class UserCreatedNotifySuperUser implements ShouldQueue
1212
*
1313
* @return void
1414
*/
15-
public function __construct()
16-
{
17-
}
15+
public function __construct() {}
1816

1917
/**
2018
* Handle the event.

app/Listeners/Backend/UserUpdated/UserUpdatedNotifyUser.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class UserUpdatedNotifyUser implements ShouldQueue
1212
*
1313
* @return void
1414
*/
15-
public function __construct()
16-
{
17-
}
15+
public function __construct() {}
1816

1917
/**
2018
* Handle the event.

app/Listeners/Frontend/UserUpdated/UserUpdatedNotifyUser.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class UserUpdatedNotifyUser implements ShouldQueue
1212
*
1313
* @return void
1414
*/
15-
public function __construct()
16-
{
17-
}
15+
public function __construct() {}
1816

1917
/**
2018
* Handle the event.

app/Listeners/Frontend/UserUpdated/UserUpdatedProfileUpdate.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class UserUpdatedProfileUpdate implements ShouldQueue
1212
*
1313
* @return void
1414
*/
15-
public function __construct()
16-
{
17-
}
15+
public function __construct() {}
1816

1917
/**
2018
* Handle the event.

routes/auth.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
<?php
22

3-
use App\Http\Controllers\Auth\AuthenticatedSessionController;
4-
use App\Http\Controllers\Auth\ConfirmablePasswordController;
5-
use App\Http\Controllers\Auth\EmailVerificationNotificationController;
6-
use App\Http\Controllers\Auth\EmailVerificationPromptController;
7-
use App\Http\Controllers\Auth\NewPasswordController;
8-
use App\Http\Controllers\Auth\PasswordController;
9-
use App\Http\Controllers\Auth\PasswordResetLinkController;
10-
use App\Http\Controllers\Auth\RegisteredUserController;
113
use App\Http\Controllers\Auth\SocialLoginController;
124
use App\Http\Controllers\Auth\VerifyEmailController;
135
use App\Livewire\Auth\ConfirmPassword;

0 commit comments

Comments
 (0)