Skip to content

Commit 670efa3

Browse files
committed
styleci tweaks
1 parent ace58dd commit 670efa3

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

app/Http/Controllers/Admin/Settings/MailController.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@
33
namespace Pterodactyl\Http\Controllers\Admin\Settings;
44

55
use Exception;
6-
use Illuminate\Http\Request;
7-
use Illuminate\Support\Facades\Notification;
6+
7+
88
use Illuminate\View\View;
9+
use Illuminate\Http\Request;
910
use Illuminate\Http\RedirectResponse;
1011
use Prologue\Alerts\AlertsMessageBag;
1112
use Illuminate\Contracts\Console\Kernel;
13+
use Pterodactyl\Notifications\MailTested;
14+
use Illuminate\Support\Facades\Notification;
1215
use Pterodactyl\Exceptions\DisplayException;
1316
use Pterodactyl\Http\Controllers\Controller;
1417
use Illuminate\Contracts\Encryption\Encrypter;
15-
use Pterodactyl\Notifications\MailTested;
1618
use Pterodactyl\Providers\SettingsServiceProvider;
1719
use Illuminate\Contracts\Config\Repository as ConfigRepository;
1820
use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface;
@@ -129,10 +131,12 @@ public function test(Request $request): RedirectResponse
129131
->notify(new MailTested($request->user()));
130132
} catch (Exception $exception) {
131133
$this->alert->danger(trans('base.mail.test_failed'))->flash();
134+
132135
return redirect()->route('admin.settings.mail');
133136
}
134137

135138
$this->alert->success(trans('base.mail.test_succeeded'))->flash();
139+
136140
return redirect()->route('admin.settings.mail');
137141
}
138142
}

app/Notifications/MailTested.php

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

33
namespace Pterodactyl\Notifications;
44

5-
use Illuminate\Notifications\Messages\MailMessage;
6-
use Illuminate\Notifications\Notification;
75
use Pterodactyl\Models\User;
6+
use Illuminate\Notifications\Notification;
7+
use Illuminate\Notifications\Messages\MailMessage;
88

99
class MailTested extends Notification
1010
{
@@ -13,7 +13,8 @@ class MailTested extends Notification
1313
*/
1414
private $user;
1515

16-
public function __construct(User $user) {
16+
public function __construct(User $user)
17+
{
1718
$this->user = $user;
1819
}
1920

0 commit comments

Comments
 (0)