From 7feb9e9081ec409420f547f523e0ea48f902ed73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Sun, 26 Jul 2020 19:44:28 +0300 Subject: [PATCH] formatting --- app/Listeners/Auth/Login.php | 7 +++---- app/Listeners/Auth/Logout.php | 9 ++++----- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/app/Listeners/Auth/Login.php b/app/Listeners/Auth/Login.php index e73bdd9d0..6a6e8769f 100644 --- a/app/Listeners/Auth/Login.php +++ b/app/Listeners/Auth/Login.php @@ -3,18 +3,17 @@ namespace App\Listeners\Auth; use App\Utilities\Date; -use Illuminate\Auth\Events\Login as ILogin; +use Illuminate\Auth\Events\Login as Event; class Login { - /** * Handle the event. * - * @param ILogin $event + * @param Event $event * @return void */ - public function handle(ILogin $event) + public function handle(Event $event) { // Get first company $company = $event->user->companies()->enabled()->first(); diff --git a/app/Listeners/Auth/Logout.php b/app/Listeners/Auth/Logout.php index 48799f87a..732359997 100644 --- a/app/Listeners/Auth/Logout.php +++ b/app/Listeners/Auth/Logout.php @@ -2,19 +2,18 @@ namespace App\Listeners\Auth; -use Illuminate\Auth\Events\Logout as ILogout; +use Illuminate\Auth\Events\Logout as Event; class Logout { - /** * Handle the event. * - * @param ILogout $event + * @param Event $event * @return void */ - public function handle(ILogout $event) + public function handle(Event $event) { session()->forget('company_id'); } -} \ No newline at end of file +}